spec/dummy/log/test.log in cadenero-0.0.2.b8 vs spec/dummy/log/test.log in cadenero-0.0.2.b10

- old
+ new

@@ -142201,5 +142201,11318 @@ Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 333 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 333 Cadenero::V1::Account Load (14.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 333 Completed 200 OK in 204ms (Views: 160.2ms | ActiveRecord: 41.9ms)  (37.7ms) ROLLBACK +Connecting to database specified by database.yml +Connecting to database specified by database.yml +Connecting to database specified by database.yml +  (13.2ms) BEGIN +  (13.6ms) COMMIT +  (0.1ms) BEGIN +  (1.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (5.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (13.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:41 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$3C8ri3EOseUeqosIsUDY/eVEQiNVF758M.g2V2NgJvyn4ffK95OiC"], ["updated_at", Thu, 18 Jul 2013 03:55:41 UTC +00:00]] + SQL (2.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:41 UTC +00:00], ["name", "Testy"], ["owner_id", 336], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 03:55:41 UTC +00:00]] + Cadenero::V1::Account Load (6.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '8CULbGjXxNub1WRqQSUA' LIMIT 1 +  (1.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 336, "created_at" = '2013-07-18 03:55:41.753235', "updated_at" = '2013-07-18 03:55:41.753235', "auth_token" = '8CULbGjXxNub1WRqQSUA' WHERE "public"."cadenero_accounts"."id" = 270 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 22:55:41 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (2.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (7.9ms) ROLLBACK TO SAVEPOINT active_record_1 + CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 193ms (Views: 0.4ms | ActiveRecord: 11.2ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (0.8ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 22:55:42 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (4.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$IyAcOaSRuGrGlQkBtINW1eQSX5Ye1JgQ763DELLzcG9FQdm5XD6Nu"], ["updated_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00], ["name", "Testy"], ["owner_id", 337], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00]] + Cadenero::V1::Account Load (10.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xkyjLbisxpUp7aonGRWq' LIMIT 1 +  (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 337, "created_at" = '2013-07-18 03:55:42.244588', "updated_at" = '2013-07-18 03:55:42.244588', "auth_token" = 'xkyjLbisxpUp7aonGRWq' WHERE "public"."cadenero_accounts"."id" = 271 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (1.1ms) SAVEPOINT active_record_1 + SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 271], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00], ["user_id", 337]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3sBppfv7cMg4fE4PiLjJ' LIMIT 1 +  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 271, "user_id" = 337, "created_at" = '2013-07-18 03:55:42.383613', "updated_at" = '2013-07-18 03:55:42.383613', "auth_token" = '3sBppfv7cMg4fE4PiLjJ' WHERE "public"."cadenero_members"."id" = 336 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) CREATE SCHEMA "test" +  (9.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (7.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (7.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (5.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (11.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (4.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (8.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (5.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 271) LIMIT 1 +Completed 201 Created in 500ms (Views: 1.9ms | ActiveRecord: 125.2ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (4.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (1.3ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$iYTmneWvfEaULlv1nGceI.qSSHQErtrFUxvPzIXiXM.BmdJo292Hi"], ["updated_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00]] + SQL (1.2ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00], ["name", "Test Account"], ["owner_id", 338], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00]] + Cadenero::V1::Account Load (5.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'oxJYupp4kbEtz3swWEH7' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 338, "created_at" = '2013-07-18 03:55:42.724150', "updated_at" = '2013-07-18 03:55:42.724150', "auth_token" = 'oxJYupp4kbEtz3swWEH7' WHERE "public"."cadenero_accounts"."id" = 272 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 272], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:42 UTC +00:00], ["user_id", 338]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zy6nzdESJV9haqpqcqJk' LIMIT 1 +  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 272, "user_id" = 338, "created_at" = '2013-07-18 03:55:42.736098', "updated_at" = '2013-07-18 03:55:42.736098', "auth_token" = 'zy6nzdESJV9haqpqcqJk' WHERE "public"."cadenero_members"."id" = 337 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test" +  (7.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (9.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (10.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (9.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (4.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (5.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (2.5ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') + Cadenero::User Load (2.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 272 LIMIT 1 +  (7.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.1ms) ROLLBACK +  (6.6ms) BEGIN +  (2.8ms) COMMIT +  (7.2ms) BEGIN + Cadenero::V1::Account Exists (3.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (1.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (7.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account"}} +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} +Completed 201 Created in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) +  (6.8ms) ROLLBACK +  (19.5ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (10.1ms) SAVEPOINT active_record_1 + SQL (10.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$m1w0bcOm2Z3ciJfq08oqFexvyv4Npniy1PM7UVnBumyAELo7FM7iO"], ["updated_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (8.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + SQL (2.2ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 339], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '59RZyEjFfxpkGKa18zyE' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 339, "created_at" = '2013-07-18 03:55:43.574480', "updated_at" = '2013-07-18 03:55:43.574480', "auth_token" = '59RZyEjFfxpkGKa18zyE' WHERE "public"."cadenero_accounts"."id" = 273 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 273], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00], ["user_id", 339]] + Cadenero::Member Load (2.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WnpRBpFLHUdZa1yZ4tNi' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 273, "user_id" = 339, "created_at" = '2013-07-18 03:55:43.581876', "updated_at" = '2013-07-18 03:55:43.581876', "auth_token" = 'WnpRBpFLHUdZa1yZ4tNi' WHERE "public"."cadenero_members"."id" = 338 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test1" +  (5.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (5.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 22:55:43 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$qOCUnmBLeLpmP.E5OnhjLOBda0cZap5mW6NbA8e4N1KOBXfX6lWCa"], ["updated_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 273], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00], ["user_id", 340]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VsDqvF9pcAMr5p485KpL' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 273, "user_id" = 340, "created_at" = '2013-07-18 03:55:43.752936', "updated_at" = '2013-07-18 03:55:43.752936', "auth_token" = 'VsDqvF9pcAMr5p485KpL' WHERE "public"."cadenero_members"."id" = 339 +  (10.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 340 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 340 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 340 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 340 +Completed 201 Created in 165ms (Views: 34.0ms | ActiveRecord: 14.7ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/340" for 127.0.0.1 at 2013-07-17 22:55:43 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"340"} + Cadenero::V1::Account Load (12.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 273 AND "public"."cadenero_users"."id" = 340 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 340 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 340 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 340 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 340 +Completed 200 OK in 25ms (Views: 5.9ms | ActiveRecord: 14.1ms) + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + SQL (10.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 340], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00]] + Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'VpeQxxqVLNbhgXu8yN9s' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 340, "created_at" = '2013-07-18 03:55:43.930978', "updated_at" = '2013-07-18 03:55:43.930978', "auth_token" = 'VpeQxxqVLNbhgXu8yN9s' WHERE "public"."cadenero_accounts"."id" = 274 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 274], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:43 UTC +00:00], ["user_id", 340]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NqGzezcwzedsrgCt2rJE' LIMIT 1 +  (3.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 274, "user_id" = 340, "created_at" = '2013-07-18 03:55:43.949683', "updated_at" = '2013-07-18 03:55:43.949683', "auth_token" = 'NqGzezcwzedsrgCt2rJE' WHERE "public"."cadenero_members"."id" = 340 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test2" +  (17.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (2.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (10.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (2.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (9.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (3.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 22:55:44 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 +  (0.8ms) SAVEPOINT active_record_1 + SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$UEwJEgYKMxmX/8/mYPKxcOhrkf9CvMLSVpEKxliE/yiZAmzdHXMLG"], ["updated_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00]] + SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 274], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["user_id", 341]] + Cadenero::Member Load (3.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'eDJ7JCyb1zLtm8sFAJJz' LIMIT 1 +  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 274, "user_id" = 341, "created_at" = '2013-07-18 03:55:44.222615', "updated_at" = '2013-07-18 03:55:44.222615', "auth_token" = 'eDJ7JCyb1zLtm8sFAJJz' WHERE "public"."cadenero_members"."id" = 341 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 341 LIMIT 1 + Cadenero::Member Load (9.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 341 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 341 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 341 +Completed 201 Created in 206ms (Views: 6.5ms | ActiveRecord: 18.5ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/341" for 127.0.0.1 at 2013-07-17 22:55:44 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"341"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 274 AND "public"."cadenero_users"."id" = 341 LIMIT 1 + Cadenero::User Load (5.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 341 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 341 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 341 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 341 +Completed 200 OK in 17ms (Views: 6.6ms | ActiveRecord: 7.0ms) +Started GET "/v1/users/340" for 127.0.0.1 at 2013-07-17 22:55:44 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"340"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 273 AND "public"."cadenero_users"."id" = 340 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 340 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 340 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 340 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 340 +Completed 200 OK in 11ms (Views: 6.3ms | ActiveRecord: 1.7ms) +Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 22:55:44 -0500 +Processing by Cadenero::V1::Account::UsersController#index as HTML + Parameters: {"default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 273 + Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 340 LIMIT 1 + Cadenero::Member Load (1.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 340 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 340 + Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 340 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 339 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 339 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 339 +Completed 200 OK in 22ms (Views: 12.2ms | ActiveRecord: 8.0ms) +  (9.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (6.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$No3UKGzDXkhdhBYpBM/WEOjp4WbTm7zlDgwKV7cZMofdAjzSNfQiu"], ["updated_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 342], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'anBZdA9YpVPowm6DTjme' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 342, "created_at" = '2013-07-18 03:55:44.520810', "updated_at" = '2013-07-18 03:55:44.520810', "auth_token" = 'anBZdA9YpVPowm6DTjme' WHERE "public"."cadenero_accounts"."id" = 275 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 275], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["user_id", 342]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Xsme71qp9LUsVRKsXss5' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 275, "user_id" = 342, "created_at" = '2013-07-18 03:55:44.527409', "updated_at" = '2013-07-18 03:55:44.527409', "auth_token" = 'Xsme71qp9LUsVRKsXss5' WHERE "public"."cadenero_members"."id" = 342 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test3" +  (7.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (3.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (3.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (2.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (14.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 22:55:44 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (5.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$vJTYnQX6GVmvu/UZ/nocVuJodoSMLDj/lKRXSOxYQmP4J1jPhW2Jq"], ["updated_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00]] + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 275], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["user_id", 343]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kUzkKyLP3N3yqXYyQiMz' LIMIT 1 +  (0.9ms) UPDATE "public"."cadenero_members" SET "account_id" = 275, "user_id" = 343, "created_at" = '2013-07-18 03:55:44.733261', "updated_at" = '2013-07-18 03:55:44.733261', "auth_token" = 'kUzkKyLP3N3yqXYyQiMz' WHERE "public"."cadenero_members"."id" = 343 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (11.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 343 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 343 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 343 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 343 +Completed 201 Created in 154ms (Views: 6.1ms | ActiveRecord: 20.6ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/343" for 127.0.0.1 at 2013-07-17 22:55:44 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"343"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 275 AND "public"."cadenero_users"."id" = 343 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 343 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 343 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 343 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 343 +Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.8ms) +  (7.1ms) ROLLBACK +  (3.4ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.7ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:44 UTC +00:00], ["user_id", 101]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'V56w9Dyz4Ls6eCu5vyTi' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 03:55:44.938240', "updated_at" = '2013-07-18 03:55:44.938240', "auth_token" = 'V56w9Dyz4Ls6eCu5vyTi' WHERE "public"."cadenero_members"."id" = 344 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (3.9ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (4.3ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$e1pkYz6CdH6oIus1ViPQC.PKQ6xfi4BkxM0ax9Kc1KPGwcD4/u95a"], ["updated_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 344], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00]] + Cadenero::V1::Account Load (6.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ZywdGjsVDZnGr5WuWj8L' LIMIT 1 +  (3.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 344, "created_at" = '2013-07-18 03:55:45.120920', "updated_at" = '2013-07-18 03:55:45.120920', "auth_token" = 'ZywdGjsVDZnGr5WuWj8L' WHERE "public"."cadenero_accounts"."id" = 276 +  (3.9ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 276], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["user_id", 344]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SFDcXzRPFXvahezyWQCz' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 276, "user_id" = 344, "created_at" = '2013-07-18 03:55:45.140750', "updated_at" = '2013-07-18 03:55:45.140750', "auth_token" = 'SFDcXzRPFXvahezyWQCz' WHERE "public"."cadenero_members"."id" = 345 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test4" +  (7.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (3.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (7.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (8.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (5.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (6.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (5.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (9.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:45 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (8.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 344 +Started GET "/v1?auth_token[]=SFDcXzRPFXvahezyWQCz" for 127.0.0.1 at 2013-07-17 22:55:45 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["SFDcXzRPFXvahezyWQCz"], "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 276 AND "public"."cadenero_members"."auth_token" IN ('SFDcXzRPFXvahezyWQCz') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 344 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 344 LIMIT 1 +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms) +Started GET "/v1/users/344" for 127.0.0.1 at 2013-07-17 22:55:45 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"344"} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started GET "/v1/users/344?auth_token[]=SFDcXzRPFXvahezyWQCz" for 127.0.0.1 at 2013-07-17 22:55:45 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"auth_token"=>["SFDcXzRPFXvahezyWQCz"], "default"=>:json, "id"=>"344"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 + Cadenero::Member Load (1.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 276 AND "public"."cadenero_members"."auth_token" IN ('SFDcXzRPFXvahezyWQCz') LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 344 LIMIT 1 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + Cadenero::User Load (3.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 276 AND "public"."cadenero_users"."id" = 344 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 344 LIMIT 1 + Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 344 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 344 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 344 +Completed 200 OK in 31ms (Views: 13.2ms | ActiveRecord: 7.4ms) +  (7.2ms) ROLLBACK +  (4.4ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$pTTlffpbZQbLYtSmiauuHuErfQNYOkfvk440cdT.nguZS8u82fxB2"], ["updated_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 345], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '7eZdffzM16gKeTXiGdqU' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 345, "created_at" = '2013-07-18 03:55:45.503817', "updated_at" = '2013-07-18 03:55:45.503817', "auth_token" = '7eZdffzM16gKeTXiGdqU' WHERE "public"."cadenero_accounts"."id" = 277 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 277], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["user_id", 345]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JUn48f4vLTH4zwsJSSxA' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 277, "user_id" = 345, "created_at" = '2013-07-18 03:55:45.509113', "updated_at" = '2013-07-18 03:55:45.509113', "auth_token" = 'JUn48f4vLTH4zwsJSSxA' WHERE "public"."cadenero_members"."id" = 346 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test5" +  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (17.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (3.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (7.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (6.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (15.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (4.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (14.4ms) SAVEPOINT active_record_1 + SQL (1.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$G28iDAvvXDEe7Tm09m8yi.5EjUm7uNfSoypDGwphUjmVDq5KzZ9de"], ["updated_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00]] +  (7.7ms) RELEASE SAVEPOINT active_record_1 +  (3.7ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + SQL (4.1ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 346], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'EdinxqqWAwNW4ZawPKrN' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 346, "created_at" = '2013-07-18 03:55:45.760767', "updated_at" = '2013-07-18 03:55:45.760767', "auth_token" = 'EdinxqqWAwNW4ZawPKrN' WHERE "public"."cadenero_accounts"."id" = 278 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 278], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:45 UTC +00:00], ["user_id", 346]] + Cadenero::Member Load (5.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iSe79E43fs765k1deV2G' LIMIT 1 +  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 278, "user_id" = 346, "created_at" = '2013-07-18 03:55:45.769972', "updated_at" = '2013-07-18 03:55:45.769972', "auth_token" = 'iSe79E43fs765k1deV2G' WHERE "public"."cadenero_members"."id" = 347 +  (4.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test6" +  (6.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (2.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (9.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (15.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (14.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (4.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (3.7ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:45 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 346 +Started GET "/v1?auth_token[]=iSe79E43fs765k1deV2G" for 127.0.0.1 at 2013-07-17 22:55:45 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["iSe79E43fs765k1deV2G"], "default"=>:json} + Cadenero::V1::Account Load (4.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 277 AND "public"."cadenero_members"."auth_token" IN ('iSe79E43fs765k1deV2G') LIMIT 1 +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 4.9ms) +  (10.8ms) ROLLBACK +  (1.0ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (4.5ms) SAVEPOINT active_record_1 + SQL (9.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$kQhFonGfPmXE6syRklggE.HapfQslnxQ7MTLwWfkfHiRe7am.uoNq"], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (1.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 347], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '3xamw1yq9KxkYxgDERbe' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 347, "created_at" = '2013-07-18 03:55:46.050540', "updated_at" = '2013-07-18 03:55:46.050540', "auth_token" = '3xamw1yq9KxkYxgDERbe' WHERE "public"."cadenero_accounts"."id" = 279 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 279], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["user_id", 347]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'K8hMqrkSGQrVrrsaAUNm' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 279, "user_id" = 347, "created_at" = '2013-07-18 03:55:46.057252', "updated_at" = '2013-07-18 03:55:46.057252', "auth_token" = 'K8hMqrkSGQrVrrsaAUNm' WHERE "public"."cadenero_members"."id" = 348 +  (3.7ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test7" +  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (4.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (3.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (7.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (2.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:46 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 347 +Started GET "/v1?auth_token[]=K8hMqrkSGQrVrrsaAUNm" for 127.0.0.1 at 2013-07-17 22:55:46 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["K8hMqrkSGQrVrrsaAUNm"], "default"=>:json} + Cadenero::V1::Account Load (2.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 279 AND "public"."cadenero_members"."auth_token" IN ('K8hMqrkSGQrVrrsaAUNm') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 347 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 347 LIMIT 1 +Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 3.3ms) +  (7.9ms) ROLLBACK +  (8.5ms) BEGIN +  (1.4ms) COMMIT +  (1.4ms) BEGIN +  (1.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$kbCAOifTj/Xdm5hlaOI.h.Lv4z9iAUgWZB3.UyCzB7e8MGyr7B1Ku"], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 348], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'deq91M4DWeWo54cgcg4B' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 348, "created_at" = '2013-07-18 03:55:46.339622', "updated_at" = '2013-07-18 03:55:46.339622', "auth_token" = 'deq91M4DWeWo54cgcg4B' WHERE "public"."cadenero_accounts"."id" = 280 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 280], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["user_id", 348]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VqYRyvY4E9zynvx2pizN' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 280, "user_id" = 348, "created_at" = '2013-07-18 03:55:46.344988', "updated_at" = '2013-07-18 03:55:46.344988', "auth_token" = 'VqYRyvY4E9zynvx2pizN' WHERE "public"."cadenero_members"."id" = 349 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test8" +  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (3.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (7.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (3.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (7.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (3.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:46 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 22:55:46 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (7.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Hj3bdtRgWPjKOeLjFNRraeCFIE0kIh2PioBezsTTod4MeHugj0Obi"], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00]] + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 280], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["user_id", 349]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZYyWppzPxcHsRUV8sd9s' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 280, "user_id" = 349, "created_at" = '2013-07-18 03:55:46.601267', "updated_at" = '2013-07-18 03:55:46.601267', "auth_token" = 'ZYyWppzPxcHsRUV8sd9s' WHERE "public"."cadenero_members"."id" = 350 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (3.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 349 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 349 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 349 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 349 +Completed 201 Created in 165ms (Views: 8.5ms | ActiveRecord: 14.8ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/349" for 127.0.0.1 at 2013-07-17 22:55:46 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"349"} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 280 AND "public"."cadenero_users"."id" = 349 LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 349 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 349 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 349 + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 349 +Completed 200 OK in 17ms (Views: 10.1ms | ActiveRecord: 2.2ms) + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 348 +Started GET "/v1?auth_token[]=VqYRyvY4E9zynvx2pizN" for 127.0.0.1 at 2013-07-17 22:55:46 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["VqYRyvY4E9zynvx2pizN"], "default"=>:json} + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 280 AND "public"."cadenero_members"."auth_token" IN ('VqYRyvY4E9zynvx2pizN') LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 348 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 348 LIMIT 1 +Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.1ms) + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 349 +Started GET "/v1?auth_token[]=ZYyWppzPxcHsRUV8sd9s" for 127.0.0.1 at 2013-07-17 22:55:46 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["ZYyWppzPxcHsRUV8sd9s"], "default"=>:json} + Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 280 AND "public"."cadenero_members"."auth_token" IN ('ZYyWppzPxcHsRUV8sd9s') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 349 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 349 LIMIT 1 +Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.3ms) +  (4.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$DpHLtWxqUvFo1gqnyewPwOLnN30ByMjbUwyQsUxrhT2iw/CKAyOIK"], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 350], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 's48sCUpDz5sToqqqCXAU' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 350, "created_at" = '2013-07-18 03:55:46.783871', "updated_at" = '2013-07-18 03:55:46.783871', "auth_token" = 's48sCUpDz5sToqqqCXAU' WHERE "public"."cadenero_accounts"."id" = 281 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 281], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:46 UTC +00:00], ["user_id", 350]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vyeVzUdgRGktyzHsf1kb' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 281, "user_id" = 350, "created_at" = '2013-07-18 03:55:46.846557', "updated_at" = '2013-07-18 03:55:46.846557', "auth_token" = 'vyeVzUdgRGktyzHsf1kb' WHERE "public"."cadenero_members"."id" = 351 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test9" +  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:46 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 281 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 350 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 350 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 350 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 350 +Completed 201 Created in 113ms (Views: 5.9ms | ActiveRecord: 2.2ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 350 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"350", "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 350 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Az/cySbY/Uxi/V1OiKxFduIeB8xk6NdaKtnI7tlKzGCbUesNqKkBu"], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 281], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["user_id", 351]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6VAy8zqYvg1hUxAGxsJv' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 281, "user_id" = 351, "created_at" = '2013-07-18 03:55:47.131666', "updated_at" = '2013-07-18 03:55:47.131666', "auth_token" = '6VAy8zqYvg1hUxAGxsJv' WHERE "public"."cadenero_members"."id" = 352 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 351 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 351 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 351 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 351 +Completed 201 Created in 114ms (Views: 6.0ms | ActiveRecord: 3.3ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/351" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"351"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 281 AND "public"."cadenero_users"."id" = 351 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 351 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 351 + Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 351 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 351 +Completed 200 OK in 16ms (Views: 7.5ms | ActiveRecord: 3.6ms) + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 351 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 351 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 351 + Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 351 +Completed 201 Created in 11ms (Views: 7.5ms | ActiveRecord: 1.8ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (10.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$b8Nw1sxuZFBnbNVwQClxT.REhyAooqeyCGfvxbtvk50zh/MCXNwbG"], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 352], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '2seHJzRM8yqY95qs2z9H' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 352, "created_at" = '2013-07-18 03:55:47.319830', "updated_at" = '2013-07-18 03:55:47.319830', "auth_token" = '2seHJzRM8yqY95qs2z9H' WHERE "public"."cadenero_accounts"."id" = 282 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 282], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["user_id", 352]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MeG1nrjpjk7PC5WLwMHz' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 282, "user_id" = 352, "created_at" = '2013-07-18 03:55:47.325352', "updated_at" = '2013-07-18 03:55:47.325352', "auth_token" = 'MeG1nrjpjk7PC5WLwMHz' WHERE "public"."cadenero_members"."id" = 353 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test10" +  (6.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 282 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 352 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 352 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 352 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 352 +Completed 201 Created in 106ms (Views: 5.2ms | ActiveRecord: 2.1ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 352 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"352", "default"=>:json} + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 352 LIMIT 1 +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (3.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$nJiez.VmwoI7A5U26NMS4.4zKSpgrxM.vmiEfShzpVw/1aBMjzFqu"], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 353], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'tG5kLKeihWVUyuys8si8' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 353, "created_at" = '2013-07-18 03:55:47.606908', "updated_at" = '2013-07-18 03:55:47.606908', "auth_token" = 'tG5kLKeihWVUyuys8si8' WHERE "public"."cadenero_accounts"."id" = 283 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 283], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["user_id", 353]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vxhpe5gTpZVup7ZQZ2PP' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 283, "user_id" = 353, "created_at" = '2013-07-18 03:55:47.612271', "updated_at" = '2013-07-18 03:55:47.612271', "auth_token" = 'vxhpe5gTpZVup7ZQZ2PP' WHERE "public"."cadenero_members"."id" = 354 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test11" +  (5.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user10@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 283 AND "public"."cadenero_users"."email" = 'user10@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 353 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 353 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 353 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 353 +Completed 201 Created in 108ms (Views: 5.3ms | ActiveRecord: 2.2ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 353 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 353 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (4.9ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$sZySmiNuCBKeXJwYPLzbDuO/lISU3mZy3AQ3IsbWzbOmZxkT6BybC"], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 354], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'niNDUk99drnQx1ajGMq1' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 354, "created_at" = '2013-07-18 03:55:47.892980', "updated_at" = '2013-07-18 03:55:47.892980', "auth_token" = 'niNDUk99drnQx1ajGMq1' WHERE "public"."cadenero_accounts"."id" = 284 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 284], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:47 UTC +00:00], ["user_id", 354]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ox4Zq37VuPLMg9zy7wN7' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 284, "user_id" = 354, "created_at" = '2013-07-18 03:55:47.898483', "updated_at" = '2013-07-18 03:55:47.898483', "auth_token" = 'ox4Zq37VuPLMg9zy7wN7' WHERE "public"."cadenero_members"."id" = 355 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test12" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 22:55:47 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Fcq5ebW46aiT2N80PIuO3ukdKeMPe79uSOSBICHMreErIA84GIcH6"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 284], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["user_id", 355]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'z5rnVigaif7RszuWpGzu' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 284, "user_id" = 355, "created_at" = '2013-07-18 03:55:48.049122', "updated_at" = '2013-07-18 03:55:48.049122', "auth_token" = 'z5rnVigaif7RszuWpGzu' WHERE "public"."cadenero_members"."id" = 356 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 355 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 355 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 355 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 355 +Completed 201 Created in 112ms (Views: 5.4ms | ActiveRecord: 3.5ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/355" for 127.0.0.1 at 2013-07-17 22:55:48 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"355"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 284 AND "public"."cadenero_users"."id" = 355 LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 355 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 355 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 355 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 355 +Completed 200 OK in 11ms (Views: 6.1ms | ActiveRecord: 1.8ms) + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:48 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 355 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 355 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 355 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 355 +Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:48 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 355 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (5.0ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$zQeqo8yIqAaIz.tFkIcXGextvbzT1kVVaZ/AFJjR8WurZLLQir5bq"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 356], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Y1QmnKUrHgqvaQFVqT9w' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 356, "created_at" = '2013-07-18 03:55:48.205091', "updated_at" = '2013-07-18 03:55:48.205091', "auth_token" = 'Y1QmnKUrHgqvaQFVqT9w' WHERE "public"."cadenero_accounts"."id" = 285 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 285], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["user_id", 356]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ojkx3Q3reD5yH5WWg6Jq' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 285, "user_id" = 356, "created_at" = '2013-07-18 03:55:48.210726', "updated_at" = '2013-07-18 03:55:48.210726', "auth_token" = 'ojkx3Q3reD5yH5WWg6Jq' WHERE "public"."cadenero_members"."id" = 357 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test13" +  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.5ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:48 -0500 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (2.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$AHSkytt/AYcPT.kF5P20U.8Z5AzH1gaj/bMmy4d0S3pebTY7PanSO"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 357], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'EKsxULhyeNcBKqCPyis5' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 357, "created_at" = '2013-07-18 03:55:48.370805', "updated_at" = '2013-07-18 03:55:48.370805', "auth_token" = 'EKsxULhyeNcBKqCPyis5' WHERE "public"."cadenero_accounts"."id" = 286 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 286], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["user_id", 357]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FzQ3GZxWB6Qa7tMdnJWD' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 286, "user_id" = 357, "created_at" = '2013-07-18 03:55:48.376422', "updated_at" = '2013-07-18 03:55:48.376422', "auth_token" = 'FzQ3GZxWB6Qa7tMdnJWD' WHERE "public"."cadenero_members"."id" = 358 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test14" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$49jdwCtnMFl8c64CK1GjGeWYTHmVlGOs5DOvAwT7o10eRCSe6cvxi"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 358], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'FCHuHy8CRBugSpEPN2Bq' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 358, "created_at" = '2013-07-18 03:55:48.556271', "updated_at" = '2013-07-18 03:55:48.556271', "auth_token" = 'FCHuHy8CRBugSpEPN2Bq' WHERE "public"."cadenero_accounts"."id" = 287 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 287], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["user_id", 358]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rftE4JWLdU9kUbhcyzvg' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 287, "user_id" = 358, "created_at" = '2013-07-18 03:55:48.561697', "updated_at" = '2013-07-18 03:55:48.561697', "auth_token" = 'rftE4JWLdU9kUbhcyzvg' WHERE "public"."cadenero_members"."id" = 359 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:48 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:48 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user14@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 286 AND "public"."cadenero_users"."email" = 'user14@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 0.8ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (3.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$UNo5p.TC4sQY1s8nDP0Z4.33scoGZgwV7nEFqi.CGY162IUJVF/sq"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 359], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'W4yuyYpwaBDRMFmUfD4M' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 359, "created_at" = '2013-07-18 03:55:48.689551', "updated_at" = '2013-07-18 03:55:48.689551', "auth_token" = 'W4yuyYpwaBDRMFmUfD4M' WHERE "public"."cadenero_accounts"."id" = 288 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 288], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["user_id", 359]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8JFNSJVK8UVz7PDaGp1p' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 288, "user_id" = 359, "created_at" = '2013-07-18 03:55:48.695233', "updated_at" = '2013-07-18 03:55:48.695233', "auth_token" = '8JFNSJVK8UVz7PDaGp1p' WHERE "public"."cadenero_members"."id" = 360 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test16" +  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:48 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:48 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 288 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (2.9ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$V486BZXyjZNiLFR2mnJfN.jsq0fw5nB58MCJLzhoF2TrUoEA7YgtS"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 360], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'BycH9ja3VGiQbKd6yPCZ' LIMIT 1 +  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 360, "created_at" = '2013-07-18 03:55:48.864880', "updated_at" = '2013-07-18 03:55:48.864880', "auth_token" = 'BycH9ja3VGiQbKd6yPCZ' WHERE "public"."cadenero_accounts"."id" = 289 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 289], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:48 UTC +00:00], ["user_id", 360]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'f1syqDj7znCZp9Jmfz67' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 289, "user_id" = 360, "created_at" = '2013-07-18 03:55:48.925999', "updated_at" = '2013-07-18 03:55:48.925999', "auth_token" = 'f1syqDj7znCZp9Jmfz67' WHERE "public"."cadenero_members"."id" = 361 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test17" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 22:55:48 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 22:55:48 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 289 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (4.6ms) ROLLBACK +  (1.8ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 +Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 1.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 +Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 1.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Connecting to database specified by database.yml +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Migrating to CreateCadeneroV1Accounts (20130612061604) +Migrating to CreateCadeneroV1Users (20130612064652) +Migrating to CreateCadeneroV1Members (20130612073709) +Migrating to AddAuthTokenToCadeneroMembers (20130715174857) +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +  (0.2ms) ROLLBACK +  (0.4ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:57 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$tvdxR.9eIZ8jbZ.YXBEZpuCfRvlfy6xWtf7P0GDI93Rz/y6IugT5i"], ["updated_at", Thu, 18 Jul 2013 03:55:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:57 UTC +00:00], ["name", "Test Account #18"], ["owner_id", 361], ["subdomain", "test18"], ["updated_at", Thu, 18 Jul 2013 03:55:57 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'y18oJBqeHasxnqEHmohu' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #18', "subdomain" = 'test18', "owner_id" = 361, "created_at" = '2013-07-18 03:55:57.851076', "updated_at" = '2013-07-18 03:55:57.851076', "auth_token" = 'y18oJBqeHasxnqEHmohu' WHERE "public"."cadenero_accounts"."id" = 290 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 290], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:57 UTC +00:00], ["user_id", 361]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KJJyzyBQ99yHNNUmmsYX' LIMIT 1 +  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 290, "user_id" = 361, "created_at" = '2013-07-18 03:55:57.857759', "updated_at" = '2013-07-18 03:55:57.857759', "auth_token" = 'KJJyzyBQ99yHNNUmmsYX' WHERE "public"."cadenero_members"."id" = 362 +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:57 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$jHol7M/0QpyUhIVLUESw/Ol1GIR8P1nIE0JIjKY4ZmqwNhvTxYMNq"], ["updated_at", Thu, 18 Jul 2013 03:55:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 03:55:58 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$mIKTJUEYmBOAYD/Vx2sybOcnt9EpfeV0EZDFWsBsOYgzIXDV5SAc."], ["updated_at", Thu, 18 Jul 2013 03:55:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:58 UTC +00:00], ["name", "Root"], ["owner_id", 363], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 03:55:58 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'XMwnML12zh2GcKZvpfsy' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 363, "created_at" = '2013-07-18 03:55:58.070763', "updated_at" = '2013-07-18 03:55:58.070763', "auth_token" = 'XMwnML12zh2GcKZvpfsy' WHERE "public"."cadenero_accounts"."id" = 291 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 291], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 03:55:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 03:55:58 UTC +00:00], ["user_id", 363]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'acjMdQd9ueirCfzqzhyH' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 291, "user_id" = 363, "created_at" = '2013-07-18 03:55:58.076205', "updated_at" = '2013-07-18 03:55:58.076205', "auth_token" = 'acjMdQd9ueirCfzqzhyH' WHERE "public"."cadenero_members"."id" = 363 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "www" +  (4.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (3.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +Connecting to database specified by database.yml +Connecting to database specified by database.yml +Connecting to database specified by database.yml +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (2.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:53 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ex/WDjkJfwat47u5aD116Ow2rHZ5iMPZkefpfpuuzISK9AWO.rvTO"], ["updated_at", Thu, 18 Jul 2013 04:11:53 UTC +00:00]] + SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:53 UTC +00:00], ["name", "Test Account"], ["owner_id", 364], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:11:53 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'WA9Ly5UWoiRAjXongkrk' LIMIT 1 +  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 364, "created_at" = '2013-07-18 04:11:53.398510', "updated_at" = '2013-07-18 04:11:53.398510', "auth_token" = 'WA9Ly5UWoiRAjXongkrk' WHERE "public"."cadenero_accounts"."id" = 292 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 292], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:53 UTC +00:00], ["user_id", 364]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CNWU9etyMB6zDyJoepAK' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 292, "user_id" = 364, "created_at" = '2013-07-18 04:11:53.485108', "updated_at" = '2013-07-18 04:11:53.485108', "auth_token" = 'CNWU9etyMB6zDyJoepAK' WHERE "public"."cadenero_members"."id" = 364 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) CREATE SCHEMA "test" +  (8.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') + Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 292 LIMIT 1 +  (4.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} +Completed 201 Created in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account"}} +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$TeAApnhO4GEIGVlhdgjgX.7wAlo/4BjasGPo8Nb1/7g5ITjjVrIGa"], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 365], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'GDLmuzwVB5m5o1CdM73c' LIMIT 1 +  (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 365, "created_at" = '2013-07-18 04:11:54.022257', "updated_at" = '2013-07-18 04:11:54.022257', "auth_token" = 'GDLmuzwVB5m5o1CdM73c' WHERE "public"."cadenero_accounts"."id" = 293 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 293], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["user_id", 365]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EsxxqLZWsHRRbiFPqbdH' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 293, "user_id" = 365, "created_at" = '2013-07-18 04:11:54.028548', "updated_at" = '2013-07-18 04:11:54.028548', "auth_token" = 'EsxxqLZWsHRRbiFPqbdH' WHERE "public"."cadenero_members"."id" = 365 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test1" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:11:54 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$fqYzLqdqM/V2jYKFpeQJAub8oG/OJ69B2ooPn3BruKnyxB1.08XGy"], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 293], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["user_id", 366]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7pBfnapSep8xCv55FnPF' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 293, "user_id" = 366, "created_at" = '2013-07-18 04:11:54.236011', "updated_at" = '2013-07-18 04:11:54.236011', "auth_token" = '7pBfnapSep8xCv55FnPF' WHERE "public"."cadenero_members"."id" = 366 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 366 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 366 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 366 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 366 +Completed 201 Created in 142ms (Views: 29.5ms | ActiveRecord: 4.0ms) + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/366" for 127.0.0.1 at 2013-07-17 23:11:54 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"366"} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 293 AND "public"."cadenero_users"."id" = 366 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 366 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 366 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 366 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 366 +Completed 200 OK in 12ms (Views: 5.7ms | ActiveRecord: 1.8ms) +  (2.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$8E/SIdZ75FKlGyx1PN4DNOk3dhP/MX4WHDMik1w3cps9HnihlrW1O"], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 367], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'hLSCChUqXpJpoY2YjETN' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 367, "created_at" = '2013-07-18 04:11:54.406220', "updated_at" = '2013-07-18 04:11:54.406220', "auth_token" = 'hLSCChUqXpJpoY2YjETN' WHERE "public"."cadenero_accounts"."id" = 294 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 294], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["user_id", 367]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qzKgKmYr6sos3Xt1GLDY' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 294, "user_id" = 367, "created_at" = '2013-07-18 04:11:54.411741', "updated_at" = '2013-07-18 04:11:54.411741', "auth_token" = 'qzKgKmYr6sos3Xt1GLDY' WHERE "public"."cadenero_members"."id" = 367 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test2" +  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:11:54 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$IuJOPS5aRrjOPkVi94cg1.7v/ugZGWi1ZFanZCr7dBXEEFUu5l/Uu"], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 294], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["user_id", 368]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xJ5AbrDmK8vBcZRm3ZLp' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 294, "user_id" = 368, "created_at" = '2013-07-18 04:11:54.562067', "updated_at" = '2013-07-18 04:11:54.562067', "auth_token" = 'xJ5AbrDmK8vBcZRm3ZLp' WHERE "public"."cadenero_members"."id" = 368 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 368 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 368 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 368 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 368 +Completed 201 Created in 112ms (Views: 5.5ms | ActiveRecord: 3.5ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/368" for 127.0.0.1 at 2013-07-17 23:11:54 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"368"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 294 AND "public"."cadenero_users"."id" = 368 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 368 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 368 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 368 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 368 +Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.7ms) + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 368], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'wpRoun1q8ZCmzhSpVVco' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 368, "created_at" = '2013-07-18 04:11:54.592687', "updated_at" = '2013-07-18 04:11:54.592687', "auth_token" = 'wpRoun1q8ZCmzhSpVVco' WHERE "public"."cadenero_accounts"."id" = 295 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 295], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["user_id", 368]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'c28h4apZHsp1uXKx2YHm' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 295, "user_id" = 368, "created_at" = '2013-07-18 04:11:54.598417', "updated_at" = '2013-07-18 04:11:54.598417', "auth_token" = 'c28h4apZHsp1uXKx2YHm' WHERE "public"."cadenero_members"."id" = 369 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test3" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:11:54 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$49zo2CVFwrk1mDid6vnDo.4zs62xFPQ3Nsqt5MCGs7cov1UvDp6/O"], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 295], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["user_id", 369]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8hbRxq6FiNm4681wgCqr' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 295, "user_id" = 369, "created_at" = '2013-07-18 04:11:54.751031', "updated_at" = '2013-07-18 04:11:54.751031', "auth_token" = '8hbRxq6FiNm4681wgCqr' WHERE "public"."cadenero_members"."id" = 370 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 369 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 369 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 369 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 369 +Completed 201 Created in 112ms (Views: 5.6ms | ActiveRecord: 3.5ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/369" for 127.0.0.1 at 2013-07-17 23:11:54 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"369"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 295 AND "public"."cadenero_users"."id" = 369 LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 369 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 369 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 369 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 369 +Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.9ms) +Started GET "/v1/users/368" for 127.0.0.1 at 2013-07-17 23:11:54 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"368"} + Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 294 AND "public"."cadenero_users"."id" = 368 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 368 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 368 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 368 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 368 +Completed 200 OK in 13ms (Views: 6.1ms | ActiveRecord: 3.0ms) +Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 23:11:54 -0500 +Processing by Cadenero::V1::Account::UsersController#index as HTML + Parameters: {"default"=>:json} + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 294 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 368 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 368 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 368 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 368 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 367 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 367 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 367 +Completed 200 OK in 17ms (Views: 11.9ms | ActiveRecord: 3.1ms) +  (8.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.3ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:54 UTC +00:00], ["user_id", 101]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XMXv4EbVJsacUxiMQLsV' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 04:11:54.931946', "updated_at" = '2013-07-18 04:11:54.931946', "auth_token" = 'XMXv4EbVJsacUxiMQLsV' WHERE "public"."cadenero_members"."id" = 371 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:11:54 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$cFwqfySmUksfqHAWZr82yu3raPgblUWn84Hv3J28WDS1P/iCbtgRK"], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["name", "Testy"], ["owner_id", 370], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'nMyekhqks5bogvVZUdBB' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 370, "created_at" = '2013-07-18 04:11:55.045556', "updated_at" = '2013-07-18 04:11:55.045556', "auth_token" = 'nMyekhqks5bogvVZUdBB' WHERE "public"."cadenero_accounts"."id" = 296 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 296], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["user_id", 370]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QzzYAtnsTJGb7UngQQzX' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 296, "user_id" = 370, "created_at" = '2013-07-18 04:11:55.052277', "updated_at" = '2013-07-18 04:11:55.052277', "auth_token" = 'QzzYAtnsTJGb7UngQQzX' WHERE "public"."cadenero_members"."id" = 372 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 296) LIMIT 1 +Completed 201 Created in 162ms (Views: 1.7ms | ActiveRecord: 37.9ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (3.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$devHGRHSl9R/8yOdDiqGRu7AKoH/NXI/YxpaTeWZbA3ukM/Vcpp6e"], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["name", "Testy"], ["owner_id", 371], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '6uLuTPBHz7j8CdR3mAaU' LIMIT 1 +  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 371, "created_at" = '2013-07-18 04:11:55.214729', "updated_at" = '2013-07-18 04:11:55.214729', "auth_token" = '6uLuTPBHz7j8CdR3mAaU' WHERE "public"."cadenero_accounts"."id" = 297 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:11:55 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 102ms (Views: 0.3ms | ActiveRecord: 0.5ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$2PoOGObLs/bFfhIJc5TdsuLyV/Uw0bhAQydHGrQ8By1xtgST0JrDe"], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 372], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'z3FxzsAfiw8GBP8YyCvq' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 372, "created_at" = '2013-07-18 04:11:55.521451', "updated_at" = '2013-07-18 04:11:55.521451', "auth_token" = 'z3FxzsAfiw8GBP8YyCvq' WHERE "public"."cadenero_accounts"."id" = 298 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 298], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["user_id", 372]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Vqafbwpa8Vwarky4w5nU' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 298, "user_id" = 372, "created_at" = '2013-07-18 04:11:55.527345', "updated_at" = '2013-07-18 04:11:55.527345', "auth_token" = 'Vqafbwpa8Vwarky4w5nU' WHERE "public"."cadenero_members"."id" = 373 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test4" +  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:55 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 298 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 372 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 372 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 372 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 372 +Completed 201 Created in 108ms (Views: 5.3ms | ActiveRecord: 2.1ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 372 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:55 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"372", "default"=>:json} + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 372 LIMIT 1 +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:55 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (4.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$5QdWNLakTvtZW1517iCGwunbZIwkQRtL55sUJYolHF1Nmn69N5ZsK"], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 373], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'br9TxFG5zf3vg5SZJbAb' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 373, "created_at" = '2013-07-18 04:11:55.817229', "updated_at" = '2013-07-18 04:11:55.817229', "auth_token" = 'br9TxFG5zf3vg5SZJbAb' WHERE "public"."cadenero_accounts"."id" = 299 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 299], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:55 UTC +00:00], ["user_id", 373]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ikfW1yqB6ykX32tuJVSJ' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 299, "user_id" = 373, "created_at" = '2013-07-18 04:11:55.822741', "updated_at" = '2013-07-18 04:11:55.822741', "auth_token" = 'ikfW1yqB6ykX32tuJVSJ' WHERE "public"."cadenero_members"."id" = 374 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test5" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:55 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 299 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 373 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 373 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 373 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 373 +Completed 201 Created in 106ms (Views: 5.2ms | ActiveRecord: 2.1ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 373 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:55 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"373", "default"=>:json} + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 373 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.6ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:55 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:11:55 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$1VuGSdw6apd8iWA3qFcOU.tGFCJhgW6aOrXUJIyuTsxYXOtMmrWJC"], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 299], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["user_id", 374]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Zmx5vfEHKyXjdywepgtR' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 299, "user_id" = 374, "created_at" = '2013-07-18 04:11:56.094974', "updated_at" = '2013-07-18 04:11:56.094974', "auth_token" = 'Zmx5vfEHKyXjdywepgtR' WHERE "public"."cadenero_members"."id" = 375 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 374 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 374 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 374 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 374 +Completed 201 Created in 113ms (Views: 5.3ms | ActiveRecord: 3.5ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/374" for 127.0.0.1 at 2013-07-17 23:11:56 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"374"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 299 AND "public"."cadenero_users"."id" = 374 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 374 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 374 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 374 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 374 +Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.8ms) + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:56 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 374 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 374 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 374 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 374 +Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (4.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$NHKA6Be2Gwc37iCULvhhsuO0dT/zUu45BndzJxOPPGWtTIeagXS0e"], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 375], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'qjqq7mykzEjsyp3psbgT' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 375, "created_at" = '2013-07-18 04:11:56.245514', "updated_at" = '2013-07-18 04:11:56.245514', "auth_token" = 'qjqq7mykzEjsyp3psbgT' WHERE "public"."cadenero_accounts"."id" = 300 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 300], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["user_id", 375]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zZafePdg1qC9QHdX9Ssz' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 300, "user_id" = 375, "created_at" = '2013-07-18 04:11:56.250961', "updated_at" = '2013-07-18 04:11:56.250961', "auth_token" = 'zZafePdg1qC9QHdX9Ssz' WHERE "public"."cadenero_members"."id" = 376 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test6" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:56 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:11:56 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$pWdbcfynXQNm.Qo13phYtu68dUV35h4V7.b5FTioepwDrZpUFpJu6"], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 300], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["user_id", 376]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9dTCMZTg1jMy5qnh1Tcv' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 300, "user_id" = 376, "created_at" = '2013-07-18 04:11:56.402366', "updated_at" = '2013-07-18 04:11:56.402366', "auth_token" = '9dTCMZTg1jMy5qnh1Tcv' WHERE "public"."cadenero_members"."id" = 377 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 376 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 376 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 376 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 376 +Completed 201 Created in 111ms (Views: 5.4ms | ActiveRecord: 3.5ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/376" for 127.0.0.1 at 2013-07-17 23:11:56 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"376"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 300 AND "public"."cadenero_users"."id" = 376 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 376 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 376 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 376 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 376 +Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.7ms) + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:56 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 376 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 376 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 376 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 376 +Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:56 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 376 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) +  (6.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$9pQyFs53uMyVYEipEeeNE.XXKv9mPFpGxglei0Sp.wtaHFDVuaCe."], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 377], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '37i14JsyQoyi4TB1PRBG' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 377, "created_at" = '2013-07-18 04:11:56.556791', "updated_at" = '2013-07-18 04:11:56.556791', "auth_token" = '37i14JsyQoyi4TB1PRBG' WHERE "public"."cadenero_accounts"."id" = 301 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 301], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["user_id", 377]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YWeokhqc4NSHZdDJNxvD' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 301, "user_id" = 377, "created_at" = '2013-07-18 04:11:56.562288', "updated_at" = '2013-07-18 04:11:56.562288', "auth_token" = 'YWeokhqc4NSHZdDJNxvD' WHERE "public"."cadenero_members"."id" = 378 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test7" +  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:56 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:56 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 301 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 377 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 377 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 377 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 377 +Completed 201 Created in 141ms (Views: 6.1ms | ActiveRecord: 2.3ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 377 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:56 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 377 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (5.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$MptLhuTFPi/AFKAkwLvm8ecsX6aTa9p74/jTw9I5FsmIR5iZiGh4."], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 378], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 's1UPZV62JZkRFiHTbi2a' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 378, "created_at" = '2013-07-18 04:11:56.875635', "updated_at" = '2013-07-18 04:11:56.875635', "auth_token" = 's1UPZV62JZkRFiHTbi2a' WHERE "public"."cadenero_accounts"."id" = 302 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 302], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:56 UTC +00:00], ["user_id", 378]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TqkJBxRhqGzkpvjcZ8do' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 302, "user_id" = 378, "created_at" = '2013-07-18 04:11:56.881342', "updated_at" = '2013-07-18 04:11:56.881342', "auth_token" = 'TqkJBxRhqGzkpvjcZ8do' WHERE "public"."cadenero_members"."id" = 379 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test8" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$gYrqHF084sEf8urrNjQAZOs3/i4Zai65x7sRjja4Dz4I8cFZyyzem"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 379], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'UZgfaLhwN8WkmsSQcWsA' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 379, "created_at" = '2013-07-18 04:11:57.026133', "updated_at" = '2013-07-18 04:11:57.026133', "auth_token" = 'UZgfaLhwN8WkmsSQcWsA' WHERE "public"."cadenero_accounts"."id" = 303 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 303], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["user_id", 379]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5p7Eg2mEBkKnwz5LHc5d' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 303, "user_id" = 379, "created_at" = '2013-07-18 04:11:57.031758', "updated_at" = '2013-07-18 04:11:57.031758', "auth_token" = '5p7Eg2mEBkKnwz5LHc5d' WHERE "public"."cadenero_members"."id" = 380 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:57 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:57 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 + Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 302 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.3ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (4.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$q.jDbnR8.1OhhtXQkMB1hek9m1Ow3/xa85tcnJOy0RLcYUQzeOTm6"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 380], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'LtWntrB7cc8uTNguiAPE' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 380, "created_at" = '2013-07-18 04:11:57.161742', "updated_at" = '2013-07-18 04:11:57.161742', "auth_token" = 'LtWntrB7cc8uTNguiAPE' WHERE "public"."cadenero_accounts"."id" = 304 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 304], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["user_id", 380]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ECyNnQv1xi4RLr3URwFD' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 304, "user_id" = 380, "created_at" = '2013-07-18 04:11:57.168085', "updated_at" = '2013-07-18 04:11:57.168085', "auth_token" = 'ECyNnQv1xi4RLr3URwFD' WHERE "public"."cadenero_members"."id" = 381 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test10" +  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:57 -0500 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (4.9ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$DOGIOP69g9x1A51G6t/Sae3tvdmmKM5Nj9F81lQmITKq/TtDV45Qa"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 381], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'bqnH1m32dxGyHA7HdJGp' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 381, "created_at" = '2013-07-18 04:11:57.379804', "updated_at" = '2013-07-18 04:11:57.379804', "auth_token" = 'bqnH1m32dxGyHA7HdJGp' WHERE "public"."cadenero_accounts"."id" = 305 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 305], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["user_id", 381]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gPepPWsa5HxcVUBrWTrD' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 305, "user_id" = 381, "created_at" = '2013-07-18 04:11:57.386927', "updated_at" = '2013-07-18 04:11:57.386927', "auth_token" = 'gPepPWsa5HxcVUBrWTrD' WHERE "public"."cadenero_members"."id" = 382 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test11" +  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:57 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:57 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 305 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 0.9ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (3.9ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$S02idtXVe7kaDS9wgB3yzuVCP1xt5F1dclIRH/AONQ0LhWLYSzc52"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 382], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'W1gcE4kHR6HPNyNNZq4e' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 382, "created_at" = '2013-07-18 04:11:57.561606', "updated_at" = '2013-07-18 04:11:57.561606', "auth_token" = 'W1gcE4kHR6HPNyNNZq4e' WHERE "public"."cadenero_accounts"."id" = 306 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 306], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["user_id", 382]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZSUDFoDtLhNDEqK8q4Vf' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 306, "user_id" = 382, "created_at" = '2013-07-18 04:11:57.567008', "updated_at" = '2013-07-18 04:11:57.567008', "auth_token" = 'ZSUDFoDtLhNDEqK8q4Vf' WHERE "public"."cadenero_members"."id" = 383 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test12" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:57 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:11:57 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 306 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (4.0ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$kwbzME0DLNiZ8CHtCz8SIe6m6N3gV8JE4v.h6nmXD0WX59/l54HAq"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 383], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'TyrM1VAdXTuEzdwZ4CD2' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 383, "created_at" = '2013-07-18 04:11:57.749492', "updated_at" = '2013-07-18 04:11:57.749492', "auth_token" = 'TyrM1VAdXTuEzdwZ4CD2' WHERE "public"."cadenero_accounts"."id" = 307 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 307], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["user_id", 383]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '51qRxQtYWdshWmtmmRsq' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 307, "user_id" = 383, "created_at" = '2013-07-18 04:11:57.754875', "updated_at" = '2013-07-18 04:11:57.754875', "auth_token" = '51qRxQtYWdshWmtmmRsq' WHERE "public"."cadenero_members"."id" = 384 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test13" +  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.7ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$fFOvBoMltilJicECk7N6.eDJIFeru/QLK7sCHBa3Kg4ULwgdCvD6y"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 384], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '2TATXPDaBLrb7t16chzr' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 384, "created_at" = '2013-07-18 04:11:57.900733', "updated_at" = '2013-07-18 04:11:57.900733', "auth_token" = '2TATXPDaBLrb7t16chzr' WHERE "public"."cadenero_accounts"."id" = 308 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 308], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:57 UTC +00:00], ["user_id", 384]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Lx5Zd3PgH8AUpeq6yxgK' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 308, "user_id" = 384, "created_at" = '2013-07-18 04:11:57.905934', "updated_at" = '2013-07-18 04:11:57.905934', "auth_token" = 'Lx5Zd3PgH8AUpeq6yxgK' WHERE "public"."cadenero_members"."id" = 385 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test14" +  (8.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:57 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 384 +Started GET "/v1?auth_token[]=Lx5Zd3PgH8AUpeq6yxgK" for 127.0.0.1 at 2013-07-17 23:11:57 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["Lx5Zd3PgH8AUpeq6yxgK"], "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 307 AND "public"."cadenero_members"."auth_token" IN ('Lx5Zd3PgH8AUpeq6yxgK') LIMIT 1 +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms) +  (6.9ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$6M8m/kEJacBErg7QdfZ3yeYAYT3Chy1Yq9/63sDXDKHeaVUiZwpEu"], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 385], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'F1yxP79YXhWerqPzNHyA' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 385, "created_at" = '2013-07-18 04:11:58.082059', "updated_at" = '2013-07-18 04:11:58.082059', "auth_token" = 'F1yxP79YXhWerqPzNHyA' WHERE "public"."cadenero_accounts"."id" = 309 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 309], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["user_id", 385]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cnQdLhmyzj84qwTztZDv' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 309, "user_id" = 385, "created_at" = '2013-07-18 04:11:58.087545', "updated_at" = '2013-07-18 04:11:58.087545', "auth_token" = 'cnQdLhmyzj84qwTztZDv' WHERE "public"."cadenero_members"."id" = 386 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test15" +  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 385 +Started GET "/v1?auth_token[]=cnQdLhmyzj84qwTztZDv" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["cnQdLhmyzj84qwTztZDv"], "default"=>:json} + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 309 AND "public"."cadenero_members"."auth_token" IN ('cnQdLhmyzj84qwTztZDv') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 385 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 385 LIMIT 1 +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.3ms) +Started GET "/v1/users/385" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"385"} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started GET "/v1/users/385?auth_token[]=cnQdLhmyzj84qwTztZDv" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"auth_token"=>["cnQdLhmyzj84qwTztZDv"], "default"=>:json, "id"=>"385"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 309 AND "public"."cadenero_members"."auth_token" IN ('cnQdLhmyzj84qwTztZDv') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 385 LIMIT 1 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 309 AND "public"."cadenero_users"."id" = 385 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 385 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 385 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 385 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 385 +Completed 200 OK in 15ms (Views: 6.0ms | ActiveRecord: 2.4ms) +  (2.9ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$tRquTxAALoQSUUbbOmXNpuktXj5dsz9h7HMs48g/XGXhiQVAUhlf6"], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 386], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '8Ux761nhRy1fzQgaUuKp' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 386, "created_at" = '2013-07-18 04:11:58.278702', "updated_at" = '2013-07-18 04:11:58.278702', "auth_token" = '8Ux761nhRy1fzQgaUuKp' WHERE "public"."cadenero_accounts"."id" = 310 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 310], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["user_id", 386]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kr2qmy6effxYR7JCMNsj' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 310, "user_id" = 386, "created_at" = '2013-07-18 04:11:58.284497', "updated_at" = '2013-07-18 04:11:58.284497', "auth_token" = 'kr2qmy6effxYR7JCMNsj' WHERE "public"."cadenero_members"."id" = 387 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test16" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$CO05CLOqCGjdFOqwRu9xEej5wMvGkP5acUKu2DVC3YAiLjzdHRmXC"], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 310], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["user_id", 387]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'q4hAEojep3UH7EDhLK4Z' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 310, "user_id" = 387, "created_at" = '2013-07-18 04:11:58.438511', "updated_at" = '2013-07-18 04:11:58.438511', "auth_token" = 'q4hAEojep3UH7EDhLK4Z' WHERE "public"."cadenero_members"."id" = 388 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 387 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 387 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 387 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 387 +Completed 201 Created in 111ms (Views: 5.5ms | ActiveRecord: 3.5ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/387" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"387"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 310 AND "public"."cadenero_users"."id" = 387 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 387 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 387 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 387 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 387 +Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.7ms) + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 386 +Started GET "/v1?auth_token[]=kr2qmy6effxYR7JCMNsj" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["kr2qmy6effxYR7JCMNsj"], "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 310 AND "public"."cadenero_members"."auth_token" IN ('kr2qmy6effxYR7JCMNsj') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 386 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 386 LIMIT 1 +Completed 200 OK in 38ms (Views: 0.2ms | ActiveRecord: 1.1ms) + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 387 +Started GET "/v1?auth_token[]=q4hAEojep3UH7EDhLK4Z" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["q4hAEojep3UH7EDhLK4Z"], "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 310 AND "public"."cadenero_members"."auth_token" IN ('q4hAEojep3UH7EDhLK4Z') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 387 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 387 LIMIT 1 +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) +  (4.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$9jJ8MYYcsWJpuxb/knZgjuuP7O9aG2tDpSAec.c4Uqa3sKy4do8qy"], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 388], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'yvQ4uJ2p2MGmZhbdRHjk' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 388, "created_at" = '2013-07-18 04:11:58.638024', "updated_at" = '2013-07-18 04:11:58.638024', "auth_token" = 'yvQ4uJ2p2MGmZhbdRHjk' WHERE "public"."cadenero_accounts"."id" = 311 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 311], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:11:58 UTC +00:00], ["user_id", 388]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RZDeEvAKSFHsVwXg9RYs' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 311, "user_id" = 388, "created_at" = '2013-07-18 04:11:58.643999', "updated_at" = '2013-07-18 04:11:58.643999', "auth_token" = 'RZDeEvAKSFHsVwXg9RYs' WHERE "public"."cadenero_members"."id" = 389 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test17" +  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.1ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 388 +Started GET "/v1?auth_token[]=RZDeEvAKSFHsVwXg9RYs" for 127.0.0.1 at 2013-07-17 23:11:58 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["RZDeEvAKSFHsVwXg9RYs"], "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 311 AND "public"."cadenero_members"."auth_token" IN ('RZDeEvAKSFHsVwXg9RYs') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 388 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 388 LIMIT 1 +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms) +  (4.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (0.2ms) SAVEPOINT active_record_1 + SQL (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:12:01 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$ISSEi.p6xDrP4qadmstDuOosnIgd27efJhAji4UowrkXdUdoa5h9S"], ["updated_at", Thu, 18 Jul 2013 04:12:01 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:12:01 UTC +00:00], ["name", "Test Account #18"], ["owner_id", 389], ["subdomain", "test18"], ["updated_at", Thu, 18 Jul 2013 04:12:01 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zsXg1eR9CtYx7tmzabvL' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #18', "subdomain" = 'test18', "owner_id" = 389, "created_at" = '2013-07-18 04:12:01.835680', "updated_at" = '2013-07-18 04:12:01.835680', "auth_token" = 'zsXg1eR9CtYx7tmzabvL' WHERE "public"."cadenero_accounts"."id" = 312 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 312], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:12:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:12:01 UTC +00:00], ["user_id", 389]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EUTy9WDFsUS3vMzmcM6T' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 312, "user_id" = 389, "created_at" = '2013-07-18 04:12:01.842019', "updated_at" = '2013-07-18 04:12:01.842019', "auth_token" = 'EUTy9WDFsUS3vMzmcM6T' WHERE "public"."cadenero_members"."id" = 390 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:12:01 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$Mlsu1F9gOTKMwhIkauCYQ.Z1/EL7CxQjjnaVPELgQo62x.cTQjLnu"], ["updated_at", Thu, 18 Jul 2013 04:12:01 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:12:02 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$kDjJDSkYKbTPt3vTVoVDr.e.JZW/34FqtvaznRn6tRqAyYdfMkSBK"], ["updated_at", Thu, 18 Jul 2013 04:12:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:12:02 UTC +00:00], ["name", "Root"], ["owner_id", 391], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 04:12:02 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '5nEDUKGg7Rmi5vjmG9XZ' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 391, "created_at" = '2013-07-18 04:12:02.043282', "updated_at" = '2013-07-18 04:12:02.043282', "auth_token" = '5nEDUKGg7Rmi5vjmG9XZ' WHERE "public"."cadenero_accounts"."id" = 313 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 313], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:12:02 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:12:02 UTC +00:00], ["user_id", 391]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vUyVnvviqoTsoyghwzDu' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 313, "user_id" = 391, "created_at" = '2013-07-18 04:12:02.048506', "updated_at" = '2013-07-18 04:12:02.048506', "auth_token" = 'vUyVnvviqoTsoyghwzDu' WHERE "public"."cadenero_members"."id" = 391 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "www" +  (7.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (2.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Connecting to database specified by database.yml +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Migrating to CreateCadeneroV1Accounts (20130612061604) +Migrating to CreateCadeneroV1Users (20130612064652) +Migrating to CreateCadeneroV1Members (20130612073709) +Migrating to AddAuthTokenToCadeneroMembers (20130715174857) +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} + Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 +Completed 200 OK in 9ms (Views: 6.9ms | ActiveRecord: 1.8ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 +Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.9ms) +  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +Connecting to database specified by database.yml +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} +Completed 500 Internal Server Error in 0ms +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account"}} +Completed 500 Internal Server Error in 0ms +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (8.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:53 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$suznZ9rPbzX7CXQ9S7j5d.gXzbhxb/pQFnQfYf43Fca3b7K6l.owO"], ["updated_at", Thu, 18 Jul 2013 04:24:53 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:53 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 392], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 04:24:53 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'cz45gLdttqmXtKDN3SyG' LIMIT 1 +  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 392, "created_at" = '2013-07-18 04:24:53.544523', "updated_at" = '2013-07-18 04:24:53.544523', "auth_token" = 'cz45gLdttqmXtKDN3SyG' WHERE "public"."cadenero_accounts"."id" = 314 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 314], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:53 UTC +00:00], ["user_id", 392]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UpVszy6j1K9xdCApxQZc' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 314, "user_id" = 392, "created_at" = '2013-07-18 04:24:53.608192', "updated_at" = '2013-07-18 04:24:53.608192', "auth_token" = 'UpVszy6j1K9xdCApxQZc' WHERE "public"."cadenero_members"."id" = 392 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) CREATE SCHEMA "test1" +  (7.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:24:53 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 + Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 314 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 392 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 392 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 392 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 392 +Completed 201 Created in 143ms (Views: 29.1ms | ActiveRecord: 2.9ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 392 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:24:53 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"392", "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 392 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:53 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (5.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$jO6GXJ.//S3cjlvJ.IV6A.Kc1P3zxG57nw/64xcuAZw.7cBb2O8Rq"], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 393], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'pSnGfeLYAk2b4NaWzXKN' LIMIT 1 +  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 393, "created_at" = '2013-07-18 04:24:54.008200', "updated_at" = '2013-07-18 04:24:54.008200', "auth_token" = 'pSnGfeLYAk2b4NaWzXKN' WHERE "public"."cadenero_accounts"."id" = 315 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 315], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["user_id", 393]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vywttCPFyTfdjCLLuyRi' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 315, "user_id" = 393, "created_at" = '2013-07-18 04:24:54.014173', "updated_at" = '2013-07-18 04:24:54.014173', "auth_token" = 'vywttCPFyTfdjCLLuyRi' WHERE "public"."cadenero_members"."id" = 393 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test2" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:54 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:24:54 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 315 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 393 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 393 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 393 + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 393 +Completed 201 Created in 107ms (Views: 5.5ms | ActiveRecord: 2.5ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 393 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:54 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 393 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (4.0ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$DkEr4kq1m4SNUXDbVPJto.Ii6bV3zYHK189bm7TkNGrzFabqMArc."], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 394], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'wUyDNz7ped9qpWPH7xju' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 394, "created_at" = '2013-07-18 04:24:54.341990', "updated_at" = '2013-07-18 04:24:54.341990', "auth_token" = 'wUyDNz7ped9qpWPH7xju' WHERE "public"."cadenero_accounts"."id" = 316 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 316], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["user_id", 394]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LKCa8xpQuGsZpzBXxrHN' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 316, "user_id" = 394, "created_at" = '2013-07-18 04:24:54.347770', "updated_at" = '2013-07-18 04:24:54.347770', "auth_token" = 'LKCa8xpQuGsZpzBXxrHN' WHERE "public"."cadenero_members"."id" = 394 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test3" +  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:54 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:24:54 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 +Completed 500 Internal Server Error in 2ms +  (3.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$AqTHTJfDuWrawodEGZ.TDOoIAWw/k.6wmi/k7H9jyPHfzpnuuS0ce"], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 395], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'KJmvxf8PCpuvtowZMwUU' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 395, "created_at" = '2013-07-18 04:24:54.510944', "updated_at" = '2013-07-18 04:24:54.510944', "auth_token" = 'KJmvxf8PCpuvtowZMwUU' WHERE "public"."cadenero_accounts"."id" = 317 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 317], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["user_id", 395]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yrxnYqEjJUYzc395ihZM' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 317, "user_id" = 395, "created_at" = '2013-07-18 04:24:54.516788', "updated_at" = '2013-07-18 04:24:54.516788', "auth_token" = 'yrxnYqEjJUYzc395ihZM' WHERE "public"."cadenero_members"."id" = 395 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test4" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:24:54 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 + Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 317 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 395 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 395 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 395 + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 395 +Completed 201 Created in 111ms (Views: 8.5ms | ActiveRecord: 3.1ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 395 + Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:24:54 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"395", "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 395 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:54 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:24:54 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 +Completed 500 Internal Server Error in 1ms +  (2.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$FTeZDX8oqy2C831AjZzOwemqhjUp/zXsh9N1V5ZxvB0mcIdrFBqIu"], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 396], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'smRMozcC5cpcMQM6kpy7' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 396, "created_at" = '2013-07-18 04:24:54.808964', "updated_at" = '2013-07-18 04:24:54.808964', "auth_token" = 'smRMozcC5cpcMQM6kpy7' WHERE "public"."cadenero_accounts"."id" = 318 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 318], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["user_id", 396]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1CKGEAbo5yieqCcUGRcM' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 318, "user_id" = 396, "created_at" = '2013-07-18 04:24:54.814558', "updated_at" = '2013-07-18 04:24:54.814558', "auth_token" = '1CKGEAbo5yieqCcUGRcM' WHERE "public"."cadenero_members"."id" = 396 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test5" +  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (23.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (8.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (2.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$jD/3OHa3x4H5UwJARH4iV.YykFORPtfI/GDqsm0rRj3LLV11PpMx2"], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 397], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'fQyGUy16UwqYCDVvpa8J' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 397, "created_at" = '2013-07-18 04:24:54.992379', "updated_at" = '2013-07-18 04:24:54.992379', "auth_token" = 'fQyGUy16UwqYCDVvpa8J' WHERE "public"."cadenero_accounts"."id" = 319 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 319], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:54 UTC +00:00], ["user_id", 397]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Gp4fUq9jXGm26QmNQXJn' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 319, "user_id" = 397, "created_at" = '2013-07-18 04:24:54.997732', "updated_at" = '2013-07-18 04:24:54.997732', "auth_token" = 'Gp4fUq9jXGm26QmNQXJn' WHERE "public"."cadenero_members"."id" = 397 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:55 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:24:55 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 318 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (2.9ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$KZGFZAzaPCoztYaG2OdBuO6DcoqJKAGy8AX2aiss3Nf6fIRTGdDTy"], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 398], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'DmyHWyk54jrKhjFbtYqy' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 398, "created_at" = '2013-07-18 04:24:55.126092', "updated_at" = '2013-07-18 04:24:55.126092', "auth_token" = 'DmyHWyk54jrKhjFbtYqy' WHERE "public"."cadenero_accounts"."id" = 320 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 320], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["user_id", 398]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NrEWUnZ5sX51HftjRp1G' LIMIT 1 +  (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 320, "user_id" = 398, "created_at" = '2013-07-18 04:24:55.131582', "updated_at" = '2013-07-18 04:24:55.131582', "auth_token" = 'NrEWUnZ5sX51HftjRp1G' WHERE "public"."cadenero_members"."id" = 398 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test7" +  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:55 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:24:55 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 320 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (4.0ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$2g633DZB.K4OMt0UntDlzOv5v4KDiQnpx3oBjk4UUlia/jXCeX8bO"], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 399], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'PwAHQxLCyexRQfqmFpep' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 399, "created_at" = '2013-07-18 04:24:55.302669', "updated_at" = '2013-07-18 04:24:55.302669', "auth_token" = 'PwAHQxLCyexRQfqmFpep' WHERE "public"."cadenero_accounts"."id" = 321 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 321], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["user_id", 399]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'paiNkrUgoF9Cv15jpzaT' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 321, "user_id" = 399, "created_at" = '2013-07-18 04:24:55.308165', "updated_at" = '2013-07-18 04:24:55.308165', "auth_token" = 'paiNkrUgoF9Cv15jpzaT' WHERE "public"."cadenero_members"."id" = 399 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test8" +  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:55 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:24:55 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 321 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (4.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$xkzTz0ywnGHKXDtZebrGJufVvFnPTNTtYgkiIcYRpk/q6/OS.MDqC"], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 400], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'wUyNyeiEpuvcJpetq9CK' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 400, "created_at" = '2013-07-18 04:24:55.476472', "updated_at" = '2013-07-18 04:24:55.476472', "auth_token" = 'wUyNyeiEpuvcJpetq9CK' WHERE "public"."cadenero_accounts"."id" = 322 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 322], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["user_id", 400]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LLMajEoFUfSttu11X5s9' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 322, "user_id" = 400, "created_at" = '2013-07-18 04:24:55.482112', "updated_at" = '2013-07-18 04:24:55.482112', "auth_token" = 'LLMajEoFUfSttu11X5s9' WHERE "public"."cadenero_members"."id" = 400 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test9" +  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (3.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.5ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:24:55 -0500 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (3.9ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$uYDx/pukhLSefkzllOixi.43r8Eu4i6RyWzaUOgqxipIW2kiGJurK"], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 401], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ZrkJ5wqVQ7FZJXrABsRG' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 401, "created_at" = '2013-07-18 04:24:55.649132', "updated_at" = '2013-07-18 04:24:55.649132', "auth_token" = 'ZrkJ5wqVQ7FZJXrABsRG' WHERE "public"."cadenero_accounts"."id" = 323 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 323], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["user_id", 401]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xBiW2oUxXKejYV3rPbpt' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 323, "user_id" = 401, "created_at" = '2013-07-18 04:24:55.654825', "updated_at" = '2013-07-18 04:24:55.654825', "auth_token" = 'xBiW2oUxXKejYV3rPbpt' WHERE "public"."cadenero_members"."id" = 401 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test10" +  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$VGZumeRZ1oS.3zYXWDoVSuaZCsbfAs9qBt.vJ19TluQvMiOWKJ4YG"], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 402], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'WSaXHRspcRPiaqhMrgtL' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 402, "created_at" = '2013-07-18 04:24:55.805571', "updated_at" = '2013-07-18 04:24:55.805571', "auth_token" = 'WSaXHRspcRPiaqhMrgtL' WHERE "public"."cadenero_accounts"."id" = 324 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 324], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:55 UTC +00:00], ["user_id", 402]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FmidVuSXaKhbApqxxmo3' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 324, "user_id" = 402, "created_at" = '2013-07-18 04:24:55.810795', "updated_at" = '2013-07-18 04:24:55.810795', "auth_token" = 'FmidVuSXaKhbApqxxmo3' WHERE "public"."cadenero_members"."id" = 402 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test11" +  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.5ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:55 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 402 +Started GET "/v1?auth_token[]=FmidVuSXaKhbApqxxmo3" for 127.0.0.1 at 2013-07-17 23:24:55 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["FmidVuSXaKhbApqxxmo3"], "default"=>:json} + Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 323 AND "public"."cadenero_members"."auth_token" IN ('FmidVuSXaKhbApqxxmo3') LIMIT 1 +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 4ms (Views: 0.4ms | ActiveRecord: 1.1ms) +  (6.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$0fGMMwDyURt.kW0rm3ech.lEv.abOtyoMKc4Pu9DcMlcPWOckyurK"], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 403], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '6WGyWZMtuWVCg9Tdo3zq' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 403, "created_at" = '2013-07-18 04:24:56.015737', "updated_at" = '2013-07-18 04:24:56.015737', "auth_token" = '6WGyWZMtuWVCg9Tdo3zq' WHERE "public"."cadenero_accounts"."id" = 325 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 325], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["user_id", 403]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qRtNMq8FpMgyAyyjbyiH' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 325, "user_id" = 403, "created_at" = '2013-07-18 04:24:56.022006', "updated_at" = '2013-07-18 04:24:56.022006', "auth_token" = 'qRtNMq8FpMgyAyyjbyiH' WHERE "public"."cadenero_members"."id" = 403 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test12" +  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:56 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 403 +Started GET "/v1?auth_token[]=qRtNMq8FpMgyAyyjbyiH" for 127.0.0.1 at 2013-07-17 23:24:56 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["qRtNMq8FpMgyAyyjbyiH"], "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 325 AND "public"."cadenero_members"."auth_token" IN ('qRtNMq8FpMgyAyyjbyiH') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 403 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 403 LIMIT 1 +Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.8ms) +  (3.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$an1zHn/.D5hRP8NIIm8TCO93LLurhtw6b6eTsOCBZdeLr1zy3lEku"], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 404], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'PhnxAdtkM4FdfBVVKgSL' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 404, "created_at" = '2013-07-18 04:24:56.193946', "updated_at" = '2013-07-18 04:24:56.193946', "auth_token" = 'PhnxAdtkM4FdfBVVKgSL' WHERE "public"."cadenero_accounts"."id" = 326 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 326], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["user_id", 404]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JLss3Nj7wmMn9ZUqkD2A' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 326, "user_id" = 404, "created_at" = '2013-07-18 04:24:56.201195', "updated_at" = '2013-07-18 04:24:56.201195', "auth_token" = 'JLss3Nj7wmMn9ZUqkD2A' WHERE "public"."cadenero_members"."id" = 404 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test13" +  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:56 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 55ms (Views: 54.3ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:24:56 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 +Completed 500 Internal Server Error in 2ms +  (3.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$4PTlV5wvZQb0zX88LX.6He9tTNz37RiAyTk6M6QW.swQHZvwxFK82"], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 405], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '1SdfS3xz1y92MjRJ9ykS' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 405, "created_at" = '2013-07-18 04:24:56.428156', "updated_at" = '2013-07-18 04:24:56.428156', "auth_token" = '1SdfS3xz1y92MjRJ9ykS' WHERE "public"."cadenero_accounts"."id" = 327 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 327], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["user_id", 405]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '41evxhDVCLbRzHqEkNDc' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 327, "user_id" = 405, "created_at" = '2013-07-18 04:24:56.434110', "updated_at" = '2013-07-18 04:24:56.434110', "auth_token" = '41evxhDVCLbRzHqEkNDc' WHERE "public"."cadenero_members"."id" = 405 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test14" +  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:24:56 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 405 +Started GET "/v1?auth_token[]=41evxhDVCLbRzHqEkNDc" for 127.0.0.1 at 2013-07-17 23:24:56 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["41evxhDVCLbRzHqEkNDc"], "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 327 AND "public"."cadenero_members"."auth_token" IN ('41evxhDVCLbRzHqEkNDc') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 405 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 405 LIMIT 1 +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms) +Started GET "/v1/users/405" for 127.0.0.1 at 2013-07-17 23:24:56 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"405"} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started GET "/v1/users/405?auth_token[]=41evxhDVCLbRzHqEkNDc" for 127.0.0.1 at 2013-07-17 23:24:56 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"auth_token"=>["41evxhDVCLbRzHqEkNDc"], "default"=>:json, "id"=>"405"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 327 AND "public"."cadenero_members"."auth_token" IN ('41evxhDVCLbRzHqEkNDc') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 405 LIMIT 1 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 327 AND "public"."cadenero_users"."id" = 405 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 405 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 405 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 405 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 405 +Completed 200 OK in 16ms (Views: 6.1ms | ActiveRecord: 2.5ms) +  (3.0ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:24:56 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +Completed 500 Internal Server Error in 0ms +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.4ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$MdYPaemGK99EvqpU7XjSM.51G4Yw6EQD9OnxsXrsfmAafoLtIWBRS"], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 406], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'racPMDxtKUy9bkxPyUmE' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 406, "created_at" = '2013-07-18 04:24:56.851917', "updated_at" = '2013-07-18 04:24:56.851917', "auth_token" = 'racPMDxtKUy9bkxPyUmE' WHERE "public"."cadenero_accounts"."id" = 328 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 328], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:56 UTC +00:00], ["user_id", 406]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Qxp1NtMxE5Lpu14amZLx' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 328, "user_id" = 406, "created_at" = '2013-07-18 04:24:56.858143', "updated_at" = '2013-07-18 04:24:56.858143', "auth_token" = 'Qxp1NtMxE5Lpu14amZLx' WHERE "public"."cadenero_members"."id" = 406 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test15" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:24:56 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 +Completed 500 Internal Server Error in 2ms +  (2.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:24:57 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$2MRuaeVHK1LbqGuBhXvVXe4YTtvdivaeJo/z7RzVRrh.PwmZoyneK"], ["updated_at", Thu, 18 Jul 2013 04:24:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:57 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 407], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 04:24:57 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'piiYbqEJAqp1wsxxDo2h' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 407, "created_at" = '2013-07-18 04:24:57.015472', "updated_at" = '2013-07-18 04:24:57.015472', "auth_token" = 'piiYbqEJAqp1wsxxDo2h' WHERE "public"."cadenero_accounts"."id" = 329 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 329], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:57 UTC +00:00], ["user_id", 407]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KqSr5g8rZehc45VxszCv' LIMIT 1 +  (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 329, "user_id" = 407, "created_at" = '2013-07-18 04:24:57.020882', "updated_at" = '2013-07-18 04:24:57.020882', "auth_token" = 'KqSr5g8rZehc45VxszCv' WHERE "public"."cadenero_members"."id" = 407 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test16" +  (7.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:24:57 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 +Completed 500 Internal Server Error in 2ms +  (3.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:24:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:24:57 UTC +00:00], ["user_id", 101]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'W974zZqpUtfz9jEXozDV' LIMIT 1 +  (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 04:24:57.180721', "updated_at" = '2013-07-18 04:24:57.180721', "auth_token" = 'W974zZqpUtfz9jEXozDV' WHERE "public"."cadenero_members"."id" = 408 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (1.6ms) BEGIN +Connecting to database specified by database.yml +  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Migrating to CreateCadeneroV1Accounts (20130612061604) +Migrating to CreateCadeneroV1Users (20130612064652) +Migrating to CreateCadeneroV1Members (20130612073709) +Migrating to AddAuthTokenToCadeneroMembers (20130715174857) +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:25:05 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$RkyjKNUgvYA5nlW0wLvbueEIiP3iNFSBgO0IsEWqLJTixMJyhkbVm"], ["updated_at", Thu, 18 Jul 2013 04:25:05 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:25:05 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 408], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 04:25:05 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'bWGcoGN6uop5wph8BnMe' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 408, "created_at" = '2013-07-18 04:25:05.535348', "updated_at" = '2013-07-18 04:25:05.535348', "auth_token" = 'bWGcoGN6uop5wph8BnMe' WHERE "public"."cadenero_accounts"."id" = 330 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 330], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:25:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:25:05 UTC +00:00], ["user_id", 408]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'q13gxk6a2Mdw3BZkQCny' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 330, "user_id" = 408, "created_at" = '2013-07-18 04:25:05.541572', "updated_at" = '2013-07-18 04:25:05.541572', "auth_token" = 'q13gxk6a2Mdw3BZkQCny' WHERE "public"."cadenero_members"."id" = 409 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:25:05 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$nozOQsdfXozKOKRulyCFV.0.9iBtjW7Hl.i0SQHjF5ZQLMUNhy1.a"], ["updated_at", Thu, 18 Jul 2013 04:25:05 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.3ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 +Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.9ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 +Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.9ms) +  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} +Completed 500 Internal Server Error in 0ms +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account"}} +Completed 500 Internal Server Error in 0ms +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:25:54 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +Completed 500 Internal Server Error in 0ms +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.0ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (2.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:25:54 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$/J4rexNMwIlcTDDcBeck3OMet/a.JrGk9uddyM0VdT8edHSMMOL7e"], ["updated_at", Thu, 18 Jul 2013 04:25:54 UTC +00:00]] + SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:25:54 UTC +00:00], ["name", "Testy"], ["owner_id", 410], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:25:54 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'RaxnRXPAE6KCxjHEhhCq' LIMIT 1 +  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 410, "created_at" = '2013-07-18 04:25:54.604986', "updated_at" = '2013-07-18 04:25:54.604986', "auth_token" = 'RaxnRXPAE6KCxjHEhhCq' WHERE "public"."cadenero_accounts"."id" = 331 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:25:54 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +Completed 500 Internal Server Error in 0ms +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:25:57 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$XDC9nRiyJyy6D8lo4rJLBuI9X.bL2KFuu2860SRPVg1jZs7jl5Oke"], ["updated_at", Thu, 18 Jul 2013 04:25:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:25:57 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 411], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 04:25:57 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ieafzhxA2zRAuZhjyxxH' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 411, "created_at" = '2013-07-18 04:25:57.857033', "updated_at" = '2013-07-18 04:25:57.857033', "auth_token" = 'ieafzhxA2zRAuZhjyxxH' WHERE "public"."cadenero_accounts"."id" = 332 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 332], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:25:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:25:57 UTC +00:00], ["user_id", 411]] + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TwSgk1kqcSFdqCUTer1H' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 332, "user_id" = 411, "created_at" = '2013-07-18 04:25:57.955304', "updated_at" = '2013-07-18 04:25:57.955304', "auth_token" = 'TwSgk1kqcSFdqCUTer1H' WHERE "public"."cadenero_members"."id" = 410 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:25:58 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$f6JLTCwo87oGU717L6QEYOFXQjgjSpxq1C9Ao.TgdKxPd0EXb9h.q"], ["updated_at", Thu, 18 Jul 2013 04:25:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:25:58 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$vk.k91BxPzK5CVCswOW5AeJRBtRMvzxTI.glC4HFeC4HsNsqR6xFi"], ["updated_at", Thu, 18 Jul 2013 04:25:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:25:58 UTC +00:00], ["name", "Root"], ["owner_id", 413], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 04:25:58 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'EqQUn7MzawFRPWuMwqfm' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 413, "created_at" = '2013-07-18 04:25:58.161504', "updated_at" = '2013-07-18 04:25:58.161504', "auth_token" = 'EqQUn7MzawFRPWuMwqfm' WHERE "public"."cadenero_accounts"."id" = 333 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 333], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:25:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:25:58 UTC +00:00], ["user_id", 413]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MVdMZRMat5BJz7SJus4M' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 333, "user_id" = 413, "created_at" = '2013-07-18 04:25:58.166925', "updated_at" = '2013-07-18 04:25:58.166925', "auth_token" = 'MVdMZRMat5BJz7SJus4M' WHERE "public"."cadenero_members"."id" = 411 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) CREATE SCHEMA "www" +  (6.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (4.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Connecting to database specified by database.yml +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Migrating to CreateCadeneroV1Accounts (20130612061604) +Migrating to CreateCadeneroV1Users (20130612064652) +Migrating to CreateCadeneroV1Members (20130612073709) +Migrating to AddAuthTokenToCadeneroMembers (20130715174857) +  (5.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (1.1ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (3.0ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:02 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$wtkISOTzCwMaWpsJ3r1a8Oj/HcR3z6FP3ZxuIkCuZCMVHNQremSu."], ["updated_at", Thu, 18 Jul 2013 04:26:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:02 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 414], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 04:26:02 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'sLztjCgZL8ukEsAMTKPG' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 414, "created_at" = '2013-07-18 04:26:02.888848', "updated_at" = '2013-07-18 04:26:02.888848', "auth_token" = 'sLztjCgZL8ukEsAMTKPG' WHERE "public"."cadenero_accounts"."id" = 334 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 334], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:02 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:02 UTC +00:00], ["user_id", 414]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fy396bzMej9zQ8xrs9v9' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 334, "user_id" = 414, "created_at" = '2013-07-18 04:26:02.895197', "updated_at" = '2013-07-18 04:26:02.895197', "auth_token" = 'fy396bzMej9zQ8xrs9v9' WHERE "public"."cadenero_members"."id" = 412 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test2" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:02 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +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-07-17 23:26:02 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 334 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 + Cadenero::User Load (1.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 414 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 414 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 414 + Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 414 +Completed 201 Created in 153ms (Views: 31.6ms | ActiveRecord: 5.5ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 414 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:03 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 414 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms) +  (5.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.5ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$WMY38bPGniacVr.oVu.jn.7aABleLkj9rZX3J8T3e2SpDCZuYw4VW"], ["updated_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00]] +  (1.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + SQL (1.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 415], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Kdumk7RK3TFpVAZBDJjB' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 415, "created_at" = '2013-07-18 04:26:03.325057', "updated_at" = '2013-07-18 04:26:03.325057', "auth_token" = 'Kdumk7RK3TFpVAZBDJjB' WHERE "public"."cadenero_accounts"."id" = 335 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 335], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["user_id", 415]] + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tG9pPUpnRyU1VJKVUyeP' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 335, "user_id" = 415, "created_at" = '2013-07-18 04:26:03.332549', "updated_at" = '2013-07-18 04:26:03.332549', "auth_token" = 'tG9pPUpnRyU1VJKVUyeP' WHERE "public"."cadenero_members"."id" = 413 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test3" +  (22.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (5.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:26:03 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 335 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 415 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 415 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 415 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 415 +Completed 201 Created in 111ms (Views: 6.1ms | ActiveRecord: 2.2ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 415 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:26:03 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"415", "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 415 LIMIT 1 +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:03 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (4.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$F3IBwgKELoWmHwPaUfvxhuPaxizYiBJejt7LSGK1xn3VeVspzxmWy"], ["updated_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 416], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Duz9BpVVzpAZErzTSyKw' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 416, "created_at" = '2013-07-18 04:26:03.654260', "updated_at" = '2013-07-18 04:26:03.654260', "auth_token" = 'Duz9BpVVzpAZErzTSyKw' WHERE "public"."cadenero_accounts"."id" = 336 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 336], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["user_id", 416]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1Qd8artW8Yx7iFBpzYTE' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 336, "user_id" = 416, "created_at" = '2013-07-18 04:26:03.659761', "updated_at" = '2013-07-18 04:26:03.659761', "auth_token" = '1Qd8artW8Yx7iFBpzYTE' WHERE "public"."cadenero_members"."id" = 414 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test4" +  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:03 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:26:03 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 +Completed 500 Internal Server Error in 2ms +  (4.8ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$PsPjTSgoj0CKBR4fDxTn9evl8royFqntXS7V9ZH3C.K.WXLBseeDG"], ["updated_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 417], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '6wjNH5ahXcyaEWPXP2z3' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 417, "created_at" = '2013-07-18 04:26:03.854012', "updated_at" = '2013-07-18 04:26:03.854012', "auth_token" = '6wjNH5ahXcyaEWPXP2z3' WHERE "public"."cadenero_accounts"."id" = 337 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 337], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:03 UTC +00:00], ["user_id", 417]] + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hjH24PrxxDGxsxwFHjVx' LIMIT 1 +  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 337, "user_id" = 417, "created_at" = '2013-07-18 04:26:03.860656', "updated_at" = '2013-07-18 04:26:03.860656', "auth_token" = 'hjH24PrxxDGxsxwFHjVx' WHERE "public"."cadenero_members"."id" = 415 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test5" +  (6.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:26:03 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 337 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 + Cadenero::User Load (22.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 417 LIMIT 1 + Cadenero::Member Load (2.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 417 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 417 + Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 417 +Completed 201 Created in 320ms (Views: 5.9ms | ActiveRecord: 27.3ms) + Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 417 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:26:04 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"417", "default"=>:json} + Cadenero::User Load (4.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 417 LIMIT 1 +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 4.0ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:04 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:26:04 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 +Completed 500 Internal Server Error in 2ms +  (5.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (13.0ms) SAVEPOINT active_record_1 + SQL (2.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$48uyKEp6xwDHZmf6oBfX1uu5vZam903Tag6dzMS0YUSf/Z4q/NhKa"], ["updated_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 418], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'N29hAfTaCoqvFVFJjTgF' LIMIT 1 +  (10.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 418, "created_at" = '2013-07-18 04:26:04.480993', "updated_at" = '2013-07-18 04:26:04.480993', "auth_token" = 'N29hAfTaCoqvFVFJjTgF' WHERE "public"."cadenero_accounts"."id" = 338 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (10.1ms) SAVEPOINT active_record_1 + SQL (6.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 338], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00], ["user_id", 418]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Qppx6NaxpuBbAqS9kaKC' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 338, "user_id" = 418, "created_at" = '2013-07-18 04:26:04.508089', "updated_at" = '2013-07-18 04:26:04.508089', "auth_token" = 'Qppx6NaxpuBbAqS9kaKC' WHERE "public"."cadenero_members"."id" = 416 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test6" +  (12.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (8.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (2.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:04 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:26:04 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 + Cadenero::User Load (4.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 338 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 10ms (Views: 0.4ms | ActiveRecord: 5.2ms) + Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (4.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (2.9ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$6D9ngNY37tANtUI35CY0Z.SMEENjdR7mX.5/ILHp5Yf4PPmQScxgm"], ["updated_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00]] +  (3.4ms) RELEASE SAVEPOINT active_record_1 +  (4.8ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (10.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 419], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00]] + Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'uv1grWqssoYnrZpVLn5y' LIMIT 1 +  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 419, "created_at" = '2013-07-18 04:26:04.787841', "updated_at" = '2013-07-18 04:26:04.787841', "auth_token" = 'uv1grWqssoYnrZpVLn5y' WHERE "public"."cadenero_accounts"."id" = 339 +  (8.6ms) RELEASE SAVEPOINT active_record_1 +  (8.9ms) SAVEPOINT active_record_1 + SQL (10.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 339], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:04 UTC +00:00], ["user_id", 419]] + Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AsvedmRozWxQzpx8HzPB' LIMIT 1 +  (1.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 339, "user_id" = 419, "created_at" = '2013-07-18 04:26:04.829215', "updated_at" = '2013-07-18 04:26:04.829215', "auth_token" = 'AsvedmRozWxQzpx8HzPB' WHERE "public"."cadenero_members"."id" = 417 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test7" +  (15.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (6.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (6.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (8.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (14.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (9.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (9.6ms) SELECT version FROM "schema_migrations" +  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (3.1ms) SAVEPOINT active_record_1 + SQL (7.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$FeYIOQZp8t4H/7j.Z1G6Y.5n05kJGIJQ0zOyVyJmCWtkxKZkXuzl6"], ["updated_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00]] +  (5.5ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 420], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00]] + Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xfcDx6FBTPRGg9xoBtvW' LIMIT 1 +  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 420, "created_at" = '2013-07-18 04:26:05.172488', "updated_at" = '2013-07-18 04:26:05.172488', "auth_token" = 'xfcDx6FBTPRGg9xoBtvW' WHERE "public"."cadenero_accounts"."id" = 340 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 340], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["user_id", 420]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FvtngyVyJk7GXpsAFxya' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 340, "user_id" = 420, "created_at" = '2013-07-18 04:26:05.179258', "updated_at" = '2013-07-18 04:26:05.179258', "auth_token" = 'FvtngyVyJk7GXpsAFxya' WHERE "public"."cadenero_members"."id" = 418 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:05 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:26:05 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 339 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 0.8ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (6.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$4L9HNRI/h0VvcPaCbBRR/OCnaFP./0F4g.7bKfc/Nsem/XbgqV5Am"], ["updated_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 421], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zTztAP9ZWAawHsY5rqq7' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 421, "created_at" = '2013-07-18 04:26:05.415414', "updated_at" = '2013-07-18 04:26:05.415414', "auth_token" = 'zTztAP9ZWAawHsY5rqq7' WHERE "public"."cadenero_accounts"."id" = 341 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 341], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["user_id", 421]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BxsGxhTLqzPv1VLCUM92' LIMIT 1 +  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 341, "user_id" = 421, "created_at" = '2013-07-18 04:26:05.421043', "updated_at" = '2013-07-18 04:26:05.421043', "auth_token" = 'BxsGxhTLqzPv1VLCUM92' WHERE "public"."cadenero_members"."id" = 419 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test9" +  (21.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (3.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (9.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (28.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (8.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.8ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:05 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:26:05 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 + Cadenero::User Load (7.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 341 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 13ms (Views: 0.4ms | ActiveRecord: 8.1ms) + Cadenero::V1::Account Load (9.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (7.8ms) ROLLBACK +  (0.3ms) BEGIN +  (1.6ms) COMMIT +  (2.3ms) BEGIN +  (15.3ms) SAVEPOINT active_record_1 + SQL (3.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$GmJO0RPDQA5IUM/MsRr2deHDZ8kwPk8LrrTN28cPti63Zf5vL2OEy"], ["updated_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 422], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'psypJb1SzE57zH8dYpfR' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 422, "created_at" = '2013-07-18 04:26:05.871777', "updated_at" = '2013-07-18 04:26:05.871777', "auth_token" = 'psypJb1SzE57zH8dYpfR' WHERE "public"."cadenero_accounts"."id" = 342 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 342], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:05 UTC +00:00], ["user_id", 422]] + Cadenero::Member Load (6.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8wgA21dZ6SjgTkSG9M7k' LIMIT 1 +  (10.0ms) UPDATE "public"."cadenero_members" SET "account_id" = 342, "user_id" = 422, "created_at" = '2013-07-18 04:26:05.877416', "updated_at" = '2013-07-18 04:26:05.877416', "auth_token" = '8wgA21dZ6SjgTkSG9M7k' WHERE "public"."cadenero_members"."id" = 420 +  (6.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test10" +  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (3.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:26:05 -0500 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (2.7ms) ROLLBACK +  (4.4ms) BEGIN +  (4.2ms) COMMIT +  (1.7ms) BEGIN +  (9.2ms) SAVEPOINT active_record_1 + SQL (6.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$rMf2vPOVW3y3riEDfEV02uSgDsGlVOy6ShdRz1TcGgPqHgMXR7wG2"], ["updated_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (8.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 + SQL (9.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 423], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00]] + Cadenero::V1::Account Load (4.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ykWCZKmpd3QRjxjou8V4' LIMIT 1 +  (6.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 423, "created_at" = '2013-07-18 04:26:06.188041', "updated_at" = '2013-07-18 04:26:06.188041', "auth_token" = 'ykWCZKmpd3QRjxjou8V4' WHERE "public"."cadenero_accounts"."id" = 343 +  (8.4ms) RELEASE SAVEPOINT active_record_1 +  (5.3ms) SAVEPOINT active_record_1 + SQL (7.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 343], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["user_id", 423]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QV8Dgs2jSbSMo1ySFpAL' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 343, "user_id" = 423, "created_at" = '2013-07-18 04:26:06.227463', "updated_at" = '2013-07-18 04:26:06.227463', "auth_token" = 'QV8Dgs2jSbSMo1ySFpAL' WHERE "public"."cadenero_members"."id" = 421 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test11" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (7.3ms) SELECT version FROM "schema_migrations" +  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:06 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (3.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 423 +Started GET "/v1?auth_token[]=QV8Dgs2jSbSMo1ySFpAL" for 127.0.0.1 at 2013-07-17 23:26:06 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["QV8Dgs2jSbSMo1ySFpAL"], "default"=>:json} + Cadenero::V1::Account Load (4.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 343 AND "public"."cadenero_members"."auth_token" IN ('QV8Dgs2jSbSMo1ySFpAL') LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 423 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 423 LIMIT 1 +Completed 200 OK in 11ms (Views: 0.3ms | ActiveRecord: 5.0ms) +  (6.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (23.5ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$zJqP9Ziahuh5tf/ZfQ0jXOp5jvkRgHDjyH6bxHVNsvAb6OuXvNUU2"], ["updated_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 424], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'WVFC2qUEYJXvo6qia5Hu' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 424, "created_at" = '2013-07-18 04:26:06.507884', "updated_at" = '2013-07-18 04:26:06.507884', "auth_token" = 'WVFC2qUEYJXvo6qia5Hu' WHERE "public"."cadenero_accounts"."id" = 344 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 344], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["user_id", 424]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2Ppx5VqmpoQTgaTRyWv7' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 344, "user_id" = 424, "created_at" = '2013-07-18 04:26:06.513269', "updated_at" = '2013-07-18 04:26:06.513269', "auth_token" = '2Ppx5VqmpoQTgaTRyWv7' WHERE "public"."cadenero_members"."id" = 422 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test12" +  (5.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (12.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (7.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (7.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.8ms) SAVEPOINT active_record_1 + SQL (12.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$K7e84PTxQM4Rm3QGE0s0HOUu/StjkUZctKXEgwTsksHgyR/O.Alvq"], ["updated_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (16.7ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 425], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'y4yWC2xkmEcSVkSJvrvP' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 425, "created_at" = '2013-07-18 04:26:06.753144', "updated_at" = '2013-07-18 04:26:06.753144', "auth_token" = 'y4yWC2xkmEcSVkSJvrvP' WHERE "public"."cadenero_accounts"."id" = 345 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 345], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:06 UTC +00:00], ["user_id", 425]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MKQA8HLmt4aHTbohq2um' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 345, "user_id" = 425, "created_at" = '2013-07-18 04:26:06.758559', "updated_at" = '2013-07-18 04:26:06.758559', "auth_token" = 'MKQA8HLmt4aHTbohq2um' WHERE "public"."cadenero_members"."id" = 423 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test13" +  (4.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (13.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (6.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (8.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (10.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (4.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:06 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (5.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 425 +Started GET "/v1?auth_token[]=MKQA8HLmt4aHTbohq2um" for 127.0.0.1 at 2013-07-17 23:26:06 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["MKQA8HLmt4aHTbohq2um"], "default"=>:json} + Cadenero::V1::Account Load (3.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 344 AND "public"."cadenero_members"."auth_token" IN ('MKQA8HLmt4aHTbohq2um') LIMIT 1 +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 3.6ms) +  (7.0ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$VvTO/Ju7wsT2nvcQ7sIbFe1BBObbqhSo6uaQtfnvi/AQzFNWTQeNe"], ["updated_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00]] +  (4.7ms) RELEASE SAVEPOINT active_record_1 +  (6.5ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (4.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 + SQL (5.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 426], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'sx6w8uKuwmyAL826Vx48' LIMIT 1 +  (4.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 426, "created_at" = '2013-07-18 04:26:07.067382', "updated_at" = '2013-07-18 04:26:07.067382', "auth_token" = 'sx6w8uKuwmyAL826Vx48' WHERE "public"."cadenero_accounts"."id" = 346 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 346], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00], ["user_id", 426]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'znozuGaswwcSSQ7y6kNb' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 346, "user_id" = 426, "created_at" = '2013-07-18 04:26:07.084616', "updated_at" = '2013-07-18 04:26:07.084616', "auth_token" = 'znozuGaswwcSSQ7y6kNb' WHERE "public"."cadenero_members"."id" = 424 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test14" +  (9.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (6.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (5.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:07 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:26:07 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (6.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 +Completed 500 Internal Server Error in 8ms +  (5.7ms) ROLLBACK +  (0.1ms) BEGIN +  (4.7ms) COMMIT +  (0.1ms) BEGIN +  (6.0ms) SAVEPOINT active_record_1 + SQL (13.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$oiPA8GN0JWpZxVd4oaTFdu4e5VvIgIBqR9IKUZ0XcVvo/pL2Diipm"], ["updated_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (4.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 427], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'S6f5fEJjEyE4p3zaZhvF' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 427, "created_at" = '2013-07-18 04:26:07.328342', "updated_at" = '2013-07-18 04:26:07.328342', "auth_token" = 'S6f5fEJjEyE4p3zaZhvF' WHERE "public"."cadenero_accounts"."id" = 347 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (12.3ms) SAVEPOINT active_record_1 + SQL (8.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 347], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:07 UTC +00:00], ["user_id", 427]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7uPTx5VqnSMWqppHrkqu' LIMIT 1 +  (2.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 347, "user_id" = 427, "created_at" = '2013-07-18 04:26:07.346849', "updated_at" = '2013-07-18 04:26:07.346849', "auth_token" = '7uPTx5VqnSMWqppHrkqu' WHERE "public"."cadenero_members"."id" = 425 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test15" +  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (5.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (12.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:26:07 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (2.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 427 +Started GET "/v1?auth_token[]=7uPTx5VqnSMWqppHrkqu" for 127.0.0.1 at 2013-07-17 23:26:07 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["7uPTx5VqnSMWqppHrkqu"], "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 347 AND "public"."cadenero_members"."auth_token" IN ('7uPTx5VqnSMWqppHrkqu') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 427 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 427 LIMIT 1 +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) +Started GET "/v1/users/427" for 127.0.0.1 at 2013-07-17 23:26:07 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"427"} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started GET "/v1/users/427?auth_token[]=7uPTx5VqnSMWqppHrkqu" for 127.0.0.1 at 2013-07-17 23:26:07 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"auth_token"=>["7uPTx5VqnSMWqppHrkqu"], "default"=>:json, "id"=>"427"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 347 AND "public"."cadenero_members"."auth_token" IN ('7uPTx5VqnSMWqppHrkqu') LIMIT 1 + Cadenero::User Load (3.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 427 LIMIT 1 + Cadenero::V1::Account Load (9.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 + Cadenero::User Load (4.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 347 AND "public"."cadenero_users"."id" = 427 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 427 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 427 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 427 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 427 +Completed 200 OK in 34ms (Views: 6.3ms | ActiveRecord: 19.2ms) +  (5.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (8.8ms) BEGIN +  (9.3ms) COMMIT +  (0.2ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (6.4ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} + Cadenero::Member Load (2.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 + Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 +Completed 200 OK in 54ms (Views: 6.5ms | ActiveRecord: 5.5ms) +  (0.1ms) ROLLBACK +  (1.3ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON + Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 + Cadenero::V1::Account Load (14.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (14.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 +Completed 200 OK in 37ms (Views: 6.4ms | ActiveRecord: 29.8ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (3.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.1ms) ROLLBACK +  (17.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (1.3ms) BEGIN +  (0.7ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:08 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$QM3ubtK0i8MyQBb3Wdpf5uJHj2hEal.d.nBdPaao9bnTArD4EWNbm"], ["updated_at", Thu, 18 Jul 2013 04:26:08 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:08 UTC +00:00], ["name", "Test Account"], ["owner_id", 428], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:26:08 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Fm4dKizKdaipByZCgG3p' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 428, "created_at" = '2013-07-18 04:26:08.973090', "updated_at" = '2013-07-18 04:26:08.973090', "auth_token" = 'Fm4dKizKdaipByZCgG3p' WHERE "public"."cadenero_accounts"."id" = 348 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (1.4ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 348], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:08 UTC +00:00], ["user_id", 428]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qcPKvWASMp7zKAz94p9j' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 348, "user_id" = 428, "created_at" = '2013-07-18 04:26:08.981266', "updated_at" = '2013-07-18 04:26:08.981266', "auth_token" = 'qcPKvWASMp7zKAz94p9j' WHERE "public"."cadenero_members"."id" = 426 +  (0.7ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test" +  (6.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (4.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (2.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (4.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (2.1ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') + Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 348 LIMIT 1 +  (11.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (9.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00], ["user_id", 101]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6XR2V7BgEeaBbgS6x74R' LIMIT 1 +  (1.0ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 04:26:09.426988', "updated_at" = '2013-07-18 04:26:09.426988', "auth_token" = '6XR2V7BgEeaBbgS6x74R' WHERE "public"."cadenero_members"."id" = 427 +  (7.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.7ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$HnTzKVNde1zQ59mL07su3.a6TdSaKbj07pdDi15GI50k0hhirIpJO"], ["updated_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 + SQL (2.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 429], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00]] + Cadenero::V1::Account Load (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'waiXstrsKvuCtESUZ4Qt' LIMIT 1 +  (2.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 429, "created_at" = '2013-07-18 04:26:09.629112', "updated_at" = '2013-07-18 04:26:09.629112', "auth_token" = 'waiXstrsKvuCtESUZ4Qt' WHERE "public"."cadenero_accounts"."id" = 349 +  (3.7ms) RELEASE SAVEPOINT active_record_1 +  (7.0ms) SAVEPOINT active_record_1 + SQL (3.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 349], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00], ["user_id", 429]] + Cadenero::Member Load (10.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PLYn2JEu348dYbM7BnrK' LIMIT 1 +  (4.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 349, "user_id" = 429, "created_at" = '2013-07-18 04:26:09.653193', "updated_at" = '2013-07-18 04:26:09.653193', "auth_token" = 'PLYn2JEu348dYbM7BnrK' WHERE "public"."cadenero_members"."id" = 428 +  (0.8ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) CREATE SCHEMA "test16" +  (6.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (9.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (7.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.5ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:26:09 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 +Completed 500 Internal Server Error in 2ms +  (8.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.3ms) BEGIN +  (6.5ms) SAVEPOINT active_record_1 + SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$e4b4uyxnMZJL61JcOjImQ.uQ9lpNkGQkhSvoA2TVj8bmXC9Le1pui"], ["updated_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00]] +  (8.7ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 430], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'K25ARLxgz5Z3DUQp3V1M' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 430, "created_at" = '2013-07-18 04:26:09.921701', "updated_at" = '2013-07-18 04:26:09.921701', "auth_token" = 'K25ARLxgz5Z3DUQp3V1M' WHERE "public"."cadenero_accounts"."id" = 350 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 350], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:26:09 UTC +00:00], ["user_id", 430]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'i3B5Ghdpvrzx3JAapjuH' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 350, "user_id" = 430, "created_at" = '2013-07-18 04:26:09.927600', "updated_at" = '2013-07-18 04:26:09.927600', "auth_token" = 'i3B5Ghdpvrzx3JAapjuH' WHERE "public"."cadenero_members"."id" = 429 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test17" +  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (3.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (9.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (8.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:26:10 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 +Completed 500 Internal Server Error in 2ms +  (3.5ms) ROLLBACK +Connecting to database specified by database.yml +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (8.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00], ["user_id", 101]] + Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'J4sDpYZYQsBdWQukzJh5' LIMIT 1 +  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 04:33:00.155848', "updated_at" = '2013-07-18 04:33:00.155848', "auth_token" = 'J4sDpYZYQsBdWQukzJh5' WHERE "public"."cadenero_members"."id" = 430 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$/1.2NMlGCiLmpXV5zkFgL.5XziuK527WBNxHW/9YrgFntBD8uS8oW"], ["updated_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00]] + SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00], ["name", "Test Account"], ["owner_id", 431], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '2DvLsbH2iq5MWatUy58q' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 431, "created_at" = '2013-07-18 04:33:00.472659', "updated_at" = '2013-07-18 04:33:00.472659', "auth_token" = '2DvLsbH2iq5MWatUy58q' WHERE "public"."cadenero_accounts"."id" = 351 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 351], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00], ["user_id", 431]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ERRccPHuQycEpQppsFRo' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 351, "user_id" = 431, "created_at" = '2013-07-18 04:33:00.502552', "updated_at" = '2013-07-18 04:33:00.502552', "auth_token" = 'ERRccPHuQycEpQppsFRo' WHERE "public"."cadenero_members"."id" = 431 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) CREATE SCHEMA "test" +  (7.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 351 LIMIT 1 +  (5.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$tFTcJ2LBXVS4Su8vnx0aD.uxKSAuQBOfAX2dr810Usc22giRwfcrO"], ["updated_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00]] +  (1.4ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 432], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'PQqHnVvT8FSBEsmfH1ty' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 432, "created_at" = '2013-07-18 04:33:00.889687', "updated_at" = '2013-07-18 04:33:00.889687', "auth_token" = 'PQqHnVvT8FSBEsmfH1ty' WHERE "public"."cadenero_accounts"."id" = 352 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 352], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:00 UTC +00:00], ["user_id", 432]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FVhHzMsdraTQKCLVa7Qj' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 352, "user_id" = 432, "created_at" = '2013-07-18 04:33:00.895370', "updated_at" = '2013-07-18 04:33:00.895370', "auth_token" = 'FVhHzMsdraTQKCLVa7Qj' WHERE "public"."cadenero_members"."id" = 432 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test1" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.6ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:33:00 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$G1QdRptNB0OvMqLsrGHhLu.Ypc9wlsOEj/0eJM/wr1Tr7uNM5j6NK"], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 352], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["user_id", 433]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dRSyncNssdC7R7hUyiUg' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 352, "user_id" = 433, "created_at" = '2013-07-18 04:33:01.111079', "updated_at" = '2013-07-18 04:33:01.111079', "auth_token" = 'dRSyncNssdC7R7hUyiUg' WHERE "public"."cadenero_members"."id" = 433 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 433 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 433 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 433 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 433 +Completed 201 Created in 145ms (Views: 31.2ms | ActiveRecord: 4.2ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/433" for 127.0.0.1 at 2013-07-17 23:33:01 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"433"} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 352 AND "public"."cadenero_users"."id" = 433 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 433 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 433 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 433 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 433 +Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 1.9ms) +  (4.9ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$FTC/oUCcpXNjl7YAjVg5gOBX.p4Kb6IfUtUNqSROsnVlfsNxotKfG"], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 434], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'qx59y5AbVC1FQYYRsR6b' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 434, "created_at" = '2013-07-18 04:33:01.287911', "updated_at" = '2013-07-18 04:33:01.287911', "auth_token" = 'qx59y5AbVC1FQYYRsR6b' WHERE "public"."cadenero_accounts"."id" = 353 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 353], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["user_id", 434]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dtcsMMw64LJ3ozpxpRye' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 353, "user_id" = 434, "created_at" = '2013-07-18 04:33:01.293468', "updated_at" = '2013-07-18 04:33:01.293468', "auth_token" = 'dtcsMMw64LJ3ozpxpRye' WHERE "public"."cadenero_members"."id" = 434 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test2" +  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:33:01 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$1KS0YHzeiDaOayggQkXxTeicN9IVmtCPl3ZZ1swN90J3jsEJwTL6G"], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 353], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["user_id", 435]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'N6HefRqg19zfs7VqTkYc' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 353, "user_id" = 435, "created_at" = '2013-07-18 04:33:01.443670', "updated_at" = '2013-07-18 04:33:01.443670', "auth_token" = 'N6HefRqg19zfs7VqTkYc' WHERE "public"."cadenero_members"."id" = 435 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 435 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 435 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 435 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 435 +Completed 201 Created in 114ms (Views: 5.8ms | ActiveRecord: 3.6ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/435" for 127.0.0.1 at 2013-07-17 23:33:01 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"435"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 353 AND "public"."cadenero_users"."id" = 435 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 435 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 435 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 435 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 435 +Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 1.7ms) + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 435], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'XCCvGjeMCBs2RcSZiPtx' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 435, "created_at" = '2013-07-18 04:33:01.474458', "updated_at" = '2013-07-18 04:33:01.474458', "auth_token" = 'XCCvGjeMCBs2RcSZiPtx' WHERE "public"."cadenero_accounts"."id" = 354 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 354], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["user_id", 435]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3Y2pjVwctmqjhTyq5dNm' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 354, "user_id" = 435, "created_at" = '2013-07-18 04:33:01.480543', "updated_at" = '2013-07-18 04:33:01.480543', "auth_token" = '3Y2pjVwctmqjhTyq5dNm' WHERE "public"."cadenero_members"."id" = 436 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test3" +  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:33:01 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$FxPUAjjqOnh8TXbH8jYafe3ToS.f1QUoS7MQenn7Uuh0hHtm4kB2W"], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 354], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["user_id", 436]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UxaVy7KmcM9P5kWyXhqg' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 354, "user_id" = 436, "created_at" = '2013-07-18 04:33:01.629073', "updated_at" = '2013-07-18 04:33:01.629073', "auth_token" = 'UxaVy7KmcM9P5kWyXhqg' WHERE "public"."cadenero_members"."id" = 437 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 436 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 436 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 436 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 436 +Completed 201 Created in 113ms (Views: 5.7ms | ActiveRecord: 3.4ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/436" for 127.0.0.1 at 2013-07-17 23:33:01 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"436"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 354 AND "public"."cadenero_users"."id" = 436 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 436 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 436 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 436 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 436 +Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.8ms) +Started GET "/v1/users/435" for 127.0.0.1 at 2013-07-17 23:33:01 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"435"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 353 AND "public"."cadenero_users"."id" = 435 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 435 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 435 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 435 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 435 +Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.7ms) +Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 23:33:01 -0500 +Processing by Cadenero::V1::Account::UsersController#index as HTML + Parameters: {"default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 353 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 435 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 435 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 435 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 435 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 434 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 434 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 434 +Completed 200 OK in 62ms (Views: 57.5ms | ActiveRecord: 2.9ms) +  (6.0ms) ROLLBACK +  (0.5ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$phgd/CeC1zglJpuui1TvneCxOE2XRzQu0vTYksjThgZfEkmT1HnLG"], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 437], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'WxkEDFBnPt7wh9pcznvM' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 437, "created_at" = '2013-07-18 04:33:01.857503', "updated_at" = '2013-07-18 04:33:01.857503', "auth_token" = 'WxkEDFBnPt7wh9pcznvM' WHERE "public"."cadenero_accounts"."id" = 355 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 355], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:01 UTC +00:00], ["user_id", 437]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7e21CuPfLYCb1zEEoxAN' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 355, "user_id" = 437, "created_at" = '2013-07-18 04:33:01.863134', "updated_at" = '2013-07-18 04:33:01.863134', "auth_token" = '7e21CuPfLYCb1zEEoxAN' WHERE "public"."cadenero_members"."id" = 438 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test4" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:01 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:01 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 355 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 437 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 437 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 437 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 437 +Completed 201 Created in 108ms (Views: 5.3ms | ActiveRecord: 2.1ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 437 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 437 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (3.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$EC/5yrd5Z5c3VEfhMdYt2Ok0dHn9AbNhk4k6CZhTFCG/t7DZKBWsS"], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 438], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '1Ty1bgwacVeTHQzxroTx' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 438, "created_at" = '2013-07-18 04:33:02.161996', "updated_at" = '2013-07-18 04:33:02.161996', "auth_token" = '1Ty1bgwacVeTHQzxroTx' WHERE "public"."cadenero_accounts"."id" = 356 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 356], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["user_id", 438]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 's4iSThyHxpLErccxMTAq' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 356, "user_id" = 438, "created_at" = '2013-07-18 04:33:02.168365', "updated_at" = '2013-07-18 04:33:02.168365', "auth_token" = 's4iSThyHxpLErccxMTAq' WHERE "public"."cadenero_members"."id" = 439 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test5" +  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 356 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 438 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 438 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 438 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 438 +Completed 201 Created in 107ms (Views: 5.2ms | ActiveRecord: 2.2ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 438 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"438", "default"=>:json} + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 438 LIMIT 1 +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.7ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (6.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$yU0AFgwItHWflU16IxhA4uV8bbcIxBfzvyehQ6o28LaOlV3wDZfJO"], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 439], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'tHztQzLedrQRoPLqViPQ' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 439, "created_at" = '2013-07-18 04:33:02.452964', "updated_at" = '2013-07-18 04:33:02.452964', "auth_token" = 'tHztQzLedrQRoPLqViPQ' WHERE "public"."cadenero_accounts"."id" = 357 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 357], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["user_id", 439]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gG9dub9LyazotRYpBX9k' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 357, "user_id" = 439, "created_at" = '2013-07-18 04:33:02.459034', "updated_at" = '2013-07-18 04:33:02.459034', "auth_token" = 'gG9dub9LyazotRYpBX9k' WHERE "public"."cadenero_members"."id" = 440 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test6" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 357 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 439 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 439 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 439 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 439 +Completed 201 Created in 107ms (Views: 5.2ms | ActiveRecord: 2.4ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 439 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"439", "default"=>:json} + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 439 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$t2IiixeCILAEAt86N/YJ0eS8f4HKWorgdJQth2JVYpNA22lMQOSK6"], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 357], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["user_id", 440]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oSLonykm4JHC5uPmZsQm' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 357, "user_id" = 440, "created_at" = '2013-07-18 04:33:02.732833', "updated_at" = '2013-07-18 04:33:02.732833', "auth_token" = 'oSLonykm4JHC5uPmZsQm' WHERE "public"."cadenero_members"."id" = 441 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 440 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 440 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 440 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 440 +Completed 201 Created in 112ms (Views: 5.4ms | ActiveRecord: 3.5ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/440" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"440"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 357 AND "public"."cadenero_users"."id" = 440 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 440 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 440 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 440 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 440 +Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.8ms) + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 440 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 440 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 440 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 440 +Completed 201 Created in 7ms (Views: 4.7ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (3.8ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$xk6kqILGXiEbGfMYYRgkue6dpnkOzBTUzA6KAbu5PA3pgWJHx.TWq"], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 441], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'RLYKddasR1UuGHsvwzsU' LIMIT 1 +  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 441, "created_at" = '2013-07-18 04:33:02.884310', "updated_at" = '2013-07-18 04:33:02.884310', "auth_token" = 'RLYKddasR1UuGHsvwzsU' WHERE "public"."cadenero_accounts"."id" = 358 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 358], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:02 UTC +00:00], ["user_id", 441]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xj8GHdYg8JtFFaDdV4Dx' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 358, "user_id" = 441, "created_at" = '2013-07-18 04:33:02.890344', "updated_at" = '2013-07-18 04:33:02.890344', "auth_token" = 'xj8GHdYg8JtFFaDdV4Dx' WHERE "public"."cadenero_members"."id" = 442 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test7" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:33:02 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$p/BSSwzTlOu5.h.LdKxR8eyd8gqEcEym7Ug5knFk2tFtk.K4ox.5W"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 358], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["user_id", 442]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'poof9qutdpagwAxAxiBy' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 358, "user_id" = 442, "created_at" = '2013-07-18 04:33:03.043614', "updated_at" = '2013-07-18 04:33:03.043614', "auth_token" = 'poof9qutdpagwAxAxiBy' WHERE "public"."cadenero_members"."id" = 443 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 442 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 442 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 442 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 442 +Completed 201 Created in 113ms (Views: 5.7ms | ActiveRecord: 4.0ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/442" for 127.0.0.1 at 2013-07-17 23:33:03 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"442"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 358 AND "public"."cadenero_users"."id" = 442 LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 442 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 442 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 442 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 442 +Completed 200 OK in 43ms (Views: 6.3ms | ActiveRecord: 2.2ms) + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:03 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 442 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 442 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 442 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 442 +Completed 201 Created in 8ms (Views: 4.9ms | ActiveRecord: 1.2ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:03 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 442 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) +  (5.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$BmyXkIX7nA/BvSR824WB6e/wD4V/nQp/aq1By4voxTmnUn3zXDxam"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 443], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '9xqVwczNbiwnmq5kFEL3' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 443, "created_at" = '2013-07-18 04:33:03.236167', "updated_at" = '2013-07-18 04:33:03.236167', "auth_token" = '9xqVwczNbiwnmq5kFEL3' WHERE "public"."cadenero_accounts"."id" = 359 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 359], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["user_id", 443]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CKsNctxkHmkexcPEw1Hi' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 359, "user_id" = 443, "created_at" = '2013-07-18 04:33:03.242084', "updated_at" = '2013-07-18 04:33:03.242084', "auth_token" = 'CKsNctxkHmkexcPEw1Hi' WHERE "public"."cadenero_members"."id" = 444 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test8" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:03 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:03 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 359 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (3.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$oKOEGL9QhSU5hkjEXZ4HS.YtKFDHE8jx17dlgKaAEV3xynuVmVn3y"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 444], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'RDVcVUqCj2ysduPw2puc' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 444, "created_at" = '2013-07-18 04:33:03.411050', "updated_at" = '2013-07-18 04:33:03.411050', "auth_token" = 'RDVcVUqCj2ysduPw2puc' WHERE "public"."cadenero_accounts"."id" = 360 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 360], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["user_id", 444]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AtEkV1F3uK7sqtxQ6ifG' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 360, "user_id" = 444, "created_at" = '2013-07-18 04:33:03.416954', "updated_at" = '2013-07-18 04:33:03.416954', "auth_token" = 'AtEkV1F3uK7sqtxQ6ifG' WHERE "public"."cadenero_members"."id" = 445 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test9" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$Zy3yjXzbqTHHtimjnurhYujsVpAvVid8IplZ/sbVcn4vLbXnkaG7C"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 445], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 's7VXJ8Ys83giiq2SMMYi' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 445, "created_at" = '2013-07-18 04:33:03.617639', "updated_at" = '2013-07-18 04:33:03.617639', "auth_token" = 's7VXJ8Ys83giiq2SMMYi' WHERE "public"."cadenero_accounts"."id" = 361 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 361], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["user_id", 445]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zTEFDjk7zwbHyGuyXPdw' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 361, "user_id" = 445, "created_at" = '2013-07-18 04:33:03.623266', "updated_at" = '2013-07-18 04:33:03.623266', "auth_token" = 'zTEFDjk7zwbHyGuyXPdw' WHERE "public"."cadenero_members"."id" = 446 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:03 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:03 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 360 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (5.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$qhmiTJ6mlFkMnI7GWN8mB.nRU9ZTg6E8M0BhWnzKYpy6to.2Ex4Ei"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 446], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'u1DjeJHFQNnWrSsZu2Tx' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 446, "created_at" = '2013-07-18 04:33:03.751763', "updated_at" = '2013-07-18 04:33:03.751763', "auth_token" = 'u1DjeJHFQNnWrSsZu2Tx' WHERE "public"."cadenero_accounts"."id" = 362 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 362], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["user_id", 446]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2WHAeQ7pNM3fWskQ1Zxy' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 362, "user_id" = 446, "created_at" = '2013-07-18 04:33:03.758446', "updated_at" = '2013-07-18 04:33:03.758446', "auth_token" = '2WHAeQ7pNM3fWskQ1Zxy' WHERE "public"."cadenero_members"."id" = 447 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test11" +  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:03 -0500 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (3.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$XnxRc/ZS/hBFZw4pTyDCc.7X7V5.c.FI9BOVdH3zD5Duvn3Gl05tG"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 447], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'LohytvRm1BuVmiAmNYqi' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 447, "created_at" = '2013-07-18 04:33:03.917418', "updated_at" = '2013-07-18 04:33:03.917418', "auth_token" = 'LohytvRm1BuVmiAmNYqi' WHERE "public"."cadenero_accounts"."id" = 363 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 363], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:03 UTC +00:00], ["user_id", 447]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iVyjDtAPCN3eqHx3YWqE' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 363, "user_id" = 447, "created_at" = '2013-07-18 04:33:03.922865', "updated_at" = '2013-07-18 04:33:03.922865', "auth_token" = 'iVyjDtAPCN3eqHx3YWqE' WHERE "public"."cadenero_members"."id" = 448 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test12" +  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:03 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:33:03 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 363 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (2.8ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$VqycmA9mcMha7ZXso.axAuhGCmzVkhckMwshZq6CnpC/wJWvbvZia"], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 448], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'TSqMM1pQT7dxJNn4zNf3' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 448, "created_at" = '2013-07-18 04:33:04.095189', "updated_at" = '2013-07-18 04:33:04.095189', "auth_token" = 'TSqMM1pQT7dxJNn4zNf3' WHERE "public"."cadenero_accounts"."id" = 364 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 364], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["user_id", 448]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5DeZVd4H65CrsZVEDku6' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 364, "user_id" = 448, "created_at" = '2013-07-18 04:33:04.101106', "updated_at" = '2013-07-18 04:33:04.101106', "auth_token" = '5DeZVd4H65CrsZVEDku6' WHERE "public"."cadenero_members"."id" = 449 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test13" +  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:04 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 448 +Started GET "/v1?auth_token[]=5DeZVd4H65CrsZVEDku6" for 127.0.0.1 at 2013-07-17 23:33:04 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["5DeZVd4H65CrsZVEDku6"], "default"=>:json} + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 364 AND "public"."cadenero_members"."auth_token" IN ('5DeZVd4H65CrsZVEDku6') LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 448 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 448 LIMIT 1 +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.1ms) +  (3.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$/egrU05wcQ9Q.xgqO7axG.l6AVEGNenqYAKKMdC9vksQHagQghw5."], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 449], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '6sgNWofRAzjSjG2yWzYc' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 449, "created_at" = '2013-07-18 04:33:04.271278', "updated_at" = '2013-07-18 04:33:04.271278', "auth_token" = '6sgNWofRAzjSjG2yWzYc' WHERE "public"."cadenero_accounts"."id" = 365 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 365], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["user_id", 449]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'n6zCGbgbxNosQ8qoGpCR' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 365, "user_id" = 449, "created_at" = '2013-07-18 04:33:04.276669', "updated_at" = '2013-07-18 04:33:04.276669', "auth_token" = 'n6zCGbgbxNosQ8qoGpCR' WHERE "public"."cadenero_members"."id" = 450 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test14" +  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (6.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$QLpYBywEzBae4npktwEob.28JHTS41bwn8wCkImeXag/l2a1M5Aim"], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 450], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ttQomnP1KvsoDjeUCzVe' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 450, "created_at" = '2013-07-18 04:33:04.427051', "updated_at" = '2013-07-18 04:33:04.427051', "auth_token" = 'ttQomnP1KvsoDjeUCzVe' WHERE "public"."cadenero_accounts"."id" = 366 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 366], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["user_id", 450]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zUGeeZxqpxJ6cSLRpsnX' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 366, "user_id" = 450, "created_at" = '2013-07-18 04:33:04.432212', "updated_at" = '2013-07-18 04:33:04.432212', "auth_token" = 'zUGeeZxqpxJ6cSLRpsnX' WHERE "public"."cadenero_members"."id" = 451 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test15" +  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:04 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 450 +Started GET "/v1?auth_token[]=zUGeeZxqpxJ6cSLRpsnX" for 127.0.0.1 at 2013-07-17 23:33:04 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["zUGeeZxqpxJ6cSLRpsnX"], "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 365 AND "public"."cadenero_members"."auth_token" IN ('zUGeeZxqpxJ6cSLRpsnX') LIMIT 1 +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms) +  (4.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$Z1CbPMFc0qXzCRClQ3jubuX7x6TlpmlbrtidcZHf0yScBEwjeG8fy"], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 451], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'mSrGWBFF5y2QvnX7ZHxu' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 451, "created_at" = '2013-07-18 04:33:04.602536', "updated_at" = '2013-07-18 04:33:04.602536', "auth_token" = 'mSrGWBFF5y2QvnX7ZHxu' WHERE "public"."cadenero_accounts"."id" = 367 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 367], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["user_id", 451]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FF4C1kX1xC9tUXZFNPZV' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 367, "user_id" = 451, "created_at" = '2013-07-18 04:33:04.608358', "updated_at" = '2013-07-18 04:33:04.608358', "auth_token" = 'FF4C1kX1xC9tUXZFNPZV' WHERE "public"."cadenero_members"."id" = 452 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test16" +  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:04 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 451 +Started GET "/v1?auth_token[]=FF4C1kX1xC9tUXZFNPZV" for 127.0.0.1 at 2013-07-17 23:33:04 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["FF4C1kX1xC9tUXZFNPZV"], "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 + Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 367 AND "public"."cadenero_members"."auth_token" IN ('FF4C1kX1xC9tUXZFNPZV') LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 451 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 451 LIMIT 1 +Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.9ms) +Started GET "/v1/users/451" for 127.0.0.1 at 2013-07-17 23:33:04 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"451"} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started GET "/v1/users/451?auth_token[]=FF4C1kX1xC9tUXZFNPZV" for 127.0.0.1 at 2013-07-17 23:33:04 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"auth_token"=>["FF4C1kX1xC9tUXZFNPZV"], "default"=>:json, "id"=>"451"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 367 AND "public"."cadenero_members"."auth_token" IN ('FF4C1kX1xC9tUXZFNPZV') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 451 LIMIT 1 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 367 AND "public"."cadenero_users"."id" = 451 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 451 LIMIT 1 + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 451 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 451 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 451 +Completed 200 OK in 16ms (Views: 6.0ms | ActiveRecord: 2.8ms) +  (3.0ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$omn1msG8dZXugWk6zxdmluJChjh4m6dxNVP6ROY/rW7083pXjypOK"], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 452], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'nypJPrrk8do5Hff3UUS7' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 452, "created_at" = '2013-07-18 04:33:04.803052', "updated_at" = '2013-07-18 04:33:04.803052', "auth_token" = 'nypJPrrk8do5Hff3UUS7' WHERE "public"."cadenero_accounts"."id" = 368 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 368], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["user_id", 452]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VDQQLWdU3QZWqhag3Cps' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 368, "user_id" = 452, "created_at" = '2013-07-18 04:33:04.808771', "updated_at" = '2013-07-18 04:33:04.808771', "auth_token" = 'VDQQLWdU3QZWqhag3Cps' WHERE "public"."cadenero_members"."id" = 453 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test17" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.3ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:33:04 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:33:04 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$0ofYxCbLLabNnQ0sDv6ZfO4nNfOFgsj5Rji0kQP/ujWsuR3fgqyHO"], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00]] + SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 368], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:04 UTC +00:00], ["user_id", 453]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XsK548cq1GRna1mznJyZ' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 368, "user_id" = 453, "created_at" = '2013-07-18 04:33:04.994916', "updated_at" = '2013-07-18 04:33:04.994916', "auth_token" = 'XsK548cq1GRna1mznJyZ' WHERE "public"."cadenero_members"."id" = 454 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 453 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 453 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 453 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 453 +Completed 201 Created in 114ms (Views: 6.1ms | ActiveRecord: 4.1ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/453" for 127.0.0.1 at 2013-07-17 23:33:05 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"453"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 368 AND "public"."cadenero_users"."id" = 453 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 453 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 453 + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 453 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 453 +Completed 200 OK in 14ms (Views: 6.8ms | ActiveRecord: 2.4ms) + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 452 +Started GET "/v1?auth_token[]=VDQQLWdU3QZWqhag3Cps" for 127.0.0.1 at 2013-07-17 23:33:05 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["VDQQLWdU3QZWqhag3Cps"], "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 368 AND "public"."cadenero_members"."auth_token" IN ('VDQQLWdU3QZWqhag3Cps') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 452 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 452 LIMIT 1 +Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.8ms) + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 453 +Started GET "/v1?auth_token[]=XsK548cq1GRna1mznJyZ" for 127.0.0.1 at 2013-07-17 23:33:05 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["XsK548cq1GRna1mznJyZ"], "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 368 AND "public"."cadenero_members"."auth_token" IN ('XsK548cq1GRna1mznJyZ') LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 453 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 453 LIMIT 1 +Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 1.0ms) +  (260.8ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:33:05 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:05 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$RypqBF3lGk8U7PmZkVGoI.RSJww9JtdQYmZRpRbb7gFdTLthxxxJC"], ["updated_at", Thu, 18 Jul 2013 04:33:05 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:05 UTC +00:00], ["name", "Testy"], ["owner_id", 454], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:33:05 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'eBa3HVkwqTptjki4zWCx' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 454, "created_at" = '2013-07-18 04:33:05.439496', "updated_at" = '2013-07-18 04:33:05.439496', "auth_token" = 'eBa3HVkwqTptjki4zWCx' WHERE "public"."cadenero_accounts"."id" = 369 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 369], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:05 UTC +00:00], ["user_id", 454]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4ZXhYiWpCDVAAFqmYEbG' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 369, "user_id" = 454, "created_at" = '2013-07-18 04:33:05.445646', "updated_at" = '2013-07-18 04:33:05.445646', "auth_token" = '4ZXhYiWpCDVAAFqmYEbG' WHERE "public"."cadenero_members"."id" = 455 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test" +  (5.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.1ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 369) LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 454 LIMIT 1 +Completed 500 Internal Server Error in 224ms +  (2.9ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:05 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$UqDcMM5PC/1y3gtqJu9CLOTxLa2LortweuyjEmY/ZefiHSu8l41hi"], ["updated_at", Thu, 18 Jul 2013 04:33:05 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:05 UTC +00:00], ["name", "Testy"], ["owner_id", 455], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:33:05 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Q1DvcwHZjWNqTBbWwGxf' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 455, "created_at" = '2013-07-18 04:33:05.659770', "updated_at" = '2013-07-18 04:33:05.659770', "auth_token" = 'Q1DvcwHZjWNqTBbWwGxf' WHERE "public"."cadenero_accounts"."id" = 370 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:33:05 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 102ms (Views: 0.3ms | ActiveRecord: 0.6ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (1.0ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$S1SyzDJra/tenDZizK6yR.7KqWBjFffTkAr3DBIt20n0PEFYx0lpC"], ["updated_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00], ["name", "Test Account #18"], ["owner_id", 456], ["subdomain", "test18"], ["updated_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Rtp7szbyrsgQf6yKmFjB' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #18', "subdomain" = 'test18', "owner_id" = 456, "created_at" = '2013-07-18 04:33:09.113519', "updated_at" = '2013-07-18 04:33:09.113519', "auth_token" = 'Rtp7szbyrsgQf6yKmFjB' WHERE "public"."cadenero_accounts"."id" = 371 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 371], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00], ["user_id", 456]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mgrxLjXRXsYeqs4qHgxq' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 371, "user_id" = 456, "created_at" = '2013-07-18 04:33:09.120203', "updated_at" = '2013-07-18 04:33:09.120203', "auth_token" = 'mgrxLjXRXsYeqs4qHgxq' WHERE "public"."cadenero_members"."id" = 456 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$EYXXR73txm.qt3wrr4Zz3uRXxT.ZiaU5j6Q9LiGlT.5PF5xvLll9W"], ["updated_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$KFA.ZCIYI6ux6gTjzjS5.eoZbMMp5oWGW5hAaNX9T2hbesim3yrdi"], ["updated_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00], ["name", "Root"], ["owner_id", 458], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xtfmBDEyp45WT6rzNw5r' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 458, "created_at" = '2013-07-18 04:33:09.322706', "updated_at" = '2013-07-18 04:33:09.322706', "auth_token" = 'xtfmBDEyp45WT6rzNw5r' WHERE "public"."cadenero_accounts"."id" = 372 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 372], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:33:09 UTC +00:00], ["user_id", 458]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RTwArgzVxS66oH8js5hn' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 372, "user_id" = 458, "created_at" = '2013-07-18 04:33:09.328105', "updated_at" = '2013-07-18 04:33:09.328105', "auth_token" = 'RTwArgzVxS66oH8js5hn' WHERE "public"."cadenero_members"."id" = 457 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "www" +  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (4.0ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Connecting to database specified by database.yml +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Migrating to CreateCadeneroV1Accounts (20130612061604) +Migrating to CreateCadeneroV1Users (20130612064652) +Migrating to CreateCadeneroV1Members (20130612073709) +Migrating to AddAuthTokenToCadeneroMembers (20130715174857) +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (1.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 +Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 1.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 +Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 1.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} +Completed 500 Internal Server Error in 1ms +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account"}} +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (8.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$Qqai14OX.xwI2WTjUwk1heQ/OYsQuK1IzmJ5bQnjRg6e84pgctVOa"], ["updated_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 459], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ogszG6JL6Tm77BpA9mRy' LIMIT 1 +  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 459, "created_at" = '2013-07-18 04:34:44.415918', "updated_at" = '2013-07-18 04:34:44.415918', "auth_token" = 'ogszG6JL6Tm77BpA9mRy' WHERE "public"."cadenero_accounts"."id" = 373 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 373], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["user_id", 459]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Vx3vQtrsv6EzocGy6frq' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 373, "user_id" = 459, "created_at" = '2013-07-18 04:34:44.515135', "updated_at" = '2013-07-18 04:34:44.515135', "auth_token" = 'Vx3vQtrsv6EzocGy6frq' WHERE "public"."cadenero_members"."id" = 458 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) CREATE SCHEMA "test1" +  (8.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:34:44 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$WOESZFRCVOMtqkAb2kKkzey815xcIF0vFUbpFzlusiXa3x9TrbNt2"], ["updated_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 373], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["user_id", 460]] + Cadenero::Member Load (2.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MrYFbXSdpcn2ARd1Zwtn' LIMIT 1 +  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 373, "user_id" = 460, "created_at" = '2013-07-18 04:34:44.745744', "updated_at" = '2013-07-18 04:34:44.745744', "auth_token" = 'MrYFbXSdpcn2ARd1Zwtn' WHERE "public"."cadenero_members"."id" = 459 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 460 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 460 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 460 + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 460 +Completed 201 Created in 151ms (Views: 35.6ms | ActiveRecord: 6.5ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/460" for 127.0.0.1 at 2013-07-17 23:34:44 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"460"} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 373 AND "public"."cadenero_users"."id" = 460 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 460 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 460 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 460 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 460 +Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 1.8ms) + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 460], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '9z5vwxUELRkypiM6dJGp' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 460, "created_at" = '2013-07-18 04:34:44.821453', "updated_at" = '2013-07-18 04:34:44.821453', "auth_token" = '9z5vwxUELRkypiM6dJGp' WHERE "public"."cadenero_accounts"."id" = 374 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 374], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["user_id", 460]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NCoX3Vw46i9zF66nn2XB' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 374, "user_id" = 460, "created_at" = '2013-07-18 04:34:44.827188', "updated_at" = '2013-07-18 04:34:44.827188', "auth_token" = 'NCoX3Vw46i9zF66nn2XB' WHERE "public"."cadenero_members"."id" = 460 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test2" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:34:44 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$hhCMIlCqzFy4ilUH1gXMGu1lj6Ivsjsg/mDgi5fmrkHDXVJjnECIm"], ["updated_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 374], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:44 UTC +00:00], ["user_id", 461]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5BrsXWKA4fx9YjjYVTYa' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 374, "user_id" = 461, "created_at" = '2013-07-18 04:34:44.979729', "updated_at" = '2013-07-18 04:34:44.979729', "auth_token" = '5BrsXWKA4fx9YjjYVTYa' WHERE "public"."cadenero_members"."id" = 461 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 461 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 461 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 461 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 461 +Completed 201 Created in 114ms (Views: 5.8ms | ActiveRecord: 3.8ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/461" for 127.0.0.1 at 2013-07-17 23:34:44 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"461"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 374 AND "public"."cadenero_users"."id" = 461 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 461 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 461 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 461 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 461 +Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.8ms) +Started GET "/v1/users/460" for 127.0.0.1 at 2013-07-17 23:34:45 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"460"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 373 AND "public"."cadenero_users"."id" = 460 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 460 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 460 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 460 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 460 +Completed 200 OK in 13ms (Views: 6.1ms | ActiveRecord: 1.9ms) +Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 23:34:45 -0500 +Processing by Cadenero::V1::Account::UsersController#index as HTML + Parameters: {"default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 373 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 460 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 460 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 460 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 460 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 459 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 459 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 459 +Completed 200 OK in 17ms (Views: 12.0ms | ActiveRecord: 2.6ms) +  (9.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$EQ8wUZqN5r0KEphkFb2MmuSErqCKbiWEcRcOIMStRAY99xJFXvgqC"], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 462], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '22vifgmsijRNs5F77VhX' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 462, "created_at" = '2013-07-18 04:34:45.164055', "updated_at" = '2013-07-18 04:34:45.164055', "auth_token" = '22vifgmsijRNs5F77VhX' WHERE "public"."cadenero_accounts"."id" = 375 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 375], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["user_id", 462]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'StnBV25Y3qNFpsiYeE3c' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 375, "user_id" = 462, "created_at" = '2013-07-18 04:34:45.169637', "updated_at" = '2013-07-18 04:34:45.169637', "auth_token" = 'StnBV25Y3qNFpsiYeE3c' WHERE "public"."cadenero_members"."id" = 462 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test3" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:34:45 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$RCdY/4PYWx/5Ov2jC4uPI.YP/2Xj.H1TVX.KvPbjSv0kOjfgXpirm"], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 375], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["user_id", 463]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qLzyH1XUWaBEHtFK6Jza' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 375, "user_id" = 463, "created_at" = '2013-07-18 04:34:45.324024', "updated_at" = '2013-07-18 04:34:45.324024', "auth_token" = 'qLzyH1XUWaBEHtFK6Jza' WHERE "public"."cadenero_members"."id" = 463 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 463 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 463 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 463 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 463 +Completed 201 Created in 117ms (Views: 5.9ms | ActiveRecord: 3.6ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/463" for 127.0.0.1 at 2013-07-17 23:34:45 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"463"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 375 AND "public"."cadenero_users"."id" = 463 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 463 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 463 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 463 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 463 +Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.7ms) +  (4.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.3ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$9EZ10rOy6Ksl/TK/d4fMA.lCYLiY/6N3VK/e5WhgToQMIZZi7MBge"], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["name", "Test Account"], ["owner_id", 464], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'bPYYGNVKU8jDyegxzdr2' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 464, "created_at" = '2013-07-18 04:34:45.463581', "updated_at" = '2013-07-18 04:34:45.463581', "auth_token" = 'bPYYGNVKU8jDyegxzdr2' WHERE "public"."cadenero_accounts"."id" = 376 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 376], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["user_id", 464]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Wc8JzBAG679pSF5hyTs5' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 376, "user_id" = 464, "created_at" = '2013-07-18 04:34:45.469105', "updated_at" = '2013-07-18 04:34:45.469105', "auth_token" = 'Wc8JzBAG679pSF5hyTs5' WHERE "public"."cadenero_members"."id" = 464 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test" +  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 376 LIMIT 1 +  (5.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$YpKW8z7EdeJg.5W61d3J8uBYznGAKIGn5qKwhMbGdu7eFjw/EzhJG"], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 465], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'uyMs6ppyAN25uR5Wn6Cw' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 465, "created_at" = '2013-07-18 04:34:45.991296', "updated_at" = '2013-07-18 04:34:45.991296', "auth_token" = 'uyMs6ppyAN25uR5Wn6Cw' WHERE "public"."cadenero_accounts"."id" = 377 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 377], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:45 UTC +00:00], ["user_id", 465]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'q2EQeL9LM6sw3NjF6sjv' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 377, "user_id" = 465, "created_at" = '2013-07-18 04:34:45.997099', "updated_at" = '2013-07-18 04:34:45.997099', "auth_token" = 'q2EQeL9LM6sw3NjF6sjv' WHERE "public"."cadenero_members"."id" = 465 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test4" +  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.3ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 465 +Started GET "/v1?auth_token[]=q2EQeL9LM6sw3NjF6sjv" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["q2EQeL9LM6sw3NjF6sjv"], "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 377 AND "public"."cadenero_members"."auth_token" IN ('q2EQeL9LM6sw3NjF6sjv') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 465 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 465 LIMIT 1 +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms) +Started GET "/v1/users/465" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"465"} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started GET "/v1/users/465?auth_token[]=q2EQeL9LM6sw3NjF6sjv" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"auth_token"=>["q2EQeL9LM6sw3NjF6sjv"], "default"=>:json, "id"=>"465"} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 377 AND "public"."cadenero_members"."auth_token" IN ('q2EQeL9LM6sw3NjF6sjv') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 465 LIMIT 1 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 377 AND "public"."cadenero_users"."id" = 465 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 465 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 465 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 465 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 465 +Completed 200 OK in 15ms (Views: 5.8ms | ActiveRecord: 2.4ms) +  (2.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$9.mghSXRiYmdfKt5Kqzmu.qO8lQU3vZ21QU6af5Eg7ghBS7tfLWWi"], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 466], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'uSJPc3ujR2DFmzPDpxXM' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 466, "created_at" = '2013-07-18 04:34:46.200978', "updated_at" = '2013-07-18 04:34:46.200978', "auth_token" = 'uSJPc3ujR2DFmzPDpxXM' WHERE "public"."cadenero_accounts"."id" = 378 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 378], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["user_id", 466]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TbRcAQRMevNkq4DeCGh7' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 378, "user_id" = 466, "created_at" = '2013-07-18 04:34:46.206340', "updated_at" = '2013-07-18 04:34:46.206340', "auth_token" = 'TbRcAQRMevNkq4DeCGh7' WHERE "public"."cadenero_members"."id" = 466 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test5" +  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$lPeYZucMnENzN6IidQJNYeRUZEX4VIGmzavWe/sfkQZS/E7PvrL6W"], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 378], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["user_id", 467]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7asH27BxJtBwqqZc1q2z' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 378, "user_id" = 467, "created_at" = '2013-07-18 04:34:46.361050', "updated_at" = '2013-07-18 04:34:46.361050', "auth_token" = '7asH27BxJtBwqqZc1q2z' WHERE "public"."cadenero_members"."id" = 467 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 467 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 467 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 467 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 467 +Completed 201 Created in 113ms (Views: 5.5ms | ActiveRecord: 3.5ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/467" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"467"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 378 AND "public"."cadenero_users"."id" = 467 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 467 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 467 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 467 + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 467 +Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 2.0ms) + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 466 +Started GET "/v1?auth_token[]=TbRcAQRMevNkq4DeCGh7" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["TbRcAQRMevNkq4DeCGh7"], "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 378 AND "public"."cadenero_members"."auth_token" IN ('TbRcAQRMevNkq4DeCGh7') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 466 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 466 LIMIT 1 +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms) + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 467 +Started GET "/v1?auth_token[]=7asH27BxJtBwqqZc1q2z" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["7asH27BxJtBwqqZc1q2z"], "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 378 AND "public"."cadenero_members"."auth_token" IN ('7asH27BxJtBwqqZc1q2z') LIMIT 1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 467 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 467 LIMIT 1 +Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.2ms) +  (5.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$BhgqNiFRj1ZFzblmCPkR1ew7cN/31eTFbb1C3KCBt4D71IhnH.eQ."], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 468], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'qy2xMifR4JUu1CDX6y63' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 468, "created_at" = '2013-07-18 04:34:46.524749', "updated_at" = '2013-07-18 04:34:46.524749', "auth_token" = 'qy2xMifR4JUu1CDX6y63' WHERE "public"."cadenero_accounts"."id" = 379 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 379], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["user_id", 468]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bQvatAKZ5UqrPsC3MyLt' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 379, "user_id" = 468, "created_at" = '2013-07-18 04:34:46.530723', "updated_at" = '2013-07-18 04:34:46.530723', "auth_token" = 'bQvatAKZ5UqrPsC3MyLt' WHERE "public"."cadenero_members"."id" = 468 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test6" +  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$3r85RWnNFaG8r7Y.BcpTbuxk9C5w3U4Qw7qHQbfnqA7yBZvg.rTXS"], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 469], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'qkMJpmmi6S2VcBpQS2cC' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 469, "created_at" = '2013-07-18 04:34:46.676419', "updated_at" = '2013-07-18 04:34:46.676419', "auth_token" = 'qkMJpmmi6S2VcBpQS2cC' WHERE "public"."cadenero_accounts"."id" = 380 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 380], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["user_id", 469]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'E1iq5rsmrki4fietWt1o' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 380, "user_id" = 469, "created_at" = '2013-07-18 04:34:46.681620', "updated_at" = '2013-07-18 04:34:46.681620', "auth_token" = 'E1iq5rsmrki4fietWt1o' WHERE "public"."cadenero_members"."id" = 469 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test7" +  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 469 +Started GET "/v1?auth_token[]=E1iq5rsmrki4fietWt1o" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["E1iq5rsmrki4fietWt1o"], "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 379 AND "public"."cadenero_members"."auth_token" IN ('E1iq5rsmrki4fietWt1o') LIMIT 1 +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms) +  (5.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$mm4BrMMdNVRxPzPKxadAuO8xuDgLTYJvoby7aKOXTmzJFxy2HBzVe"], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 470], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'jMbqzNgz8VxbCJxDjWPA' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 470, "created_at" = '2013-07-18 04:34:46.848863', "updated_at" = '2013-07-18 04:34:46.848863', "auth_token" = 'jMbqzNgz8VxbCJxDjWPA' WHERE "public"."cadenero_accounts"."id" = 381 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 381], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:46 UTC +00:00], ["user_id", 470]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'H1w859jzYTL3gbPHd4SK' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 381, "user_id" = 470, "created_at" = '2013-07-18 04:34:46.854313', "updated_at" = '2013-07-18 04:34:46.854313', "auth_token" = 'H1w859jzYTL3gbPHd4SK' WHERE "public"."cadenero_members"."id" = 470 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test8" +  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 470 +Started GET "/v1?auth_token[]=H1w859jzYTL3gbPHd4SK" for 127.0.0.1 at 2013-07-17 23:34:46 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["H1w859jzYTL3gbPHd4SK"], "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 381 AND "public"."cadenero_members"."auth_token" IN ('H1w859jzYTL3gbPHd4SK') LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 470 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 470 LIMIT 1 +Completed 200 OK in 7ms (Views: 0.4ms | ActiveRecord: 1.0ms) +  (5.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$HefrK76xXacD3Q3VEjizZucGPwLTc/.lPJDPqlfshxHJlwIqf1O3y"], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 471], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'WUMYN9rySW1bucEXs3iT' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 471, "created_at" = '2013-07-18 04:34:47.052936', "updated_at" = '2013-07-18 04:34:47.052936', "auth_token" = 'WUMYN9rySW1bucEXs3iT' WHERE "public"."cadenero_accounts"."id" = 382 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 382], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["user_id", 471]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NnvsoeXcpwZLpuHwxHrd' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 382, "user_id" = 471, "created_at" = '2013-07-18 04:34:47.090744', "updated_at" = '2013-07-18 04:34:47.090744', "auth_token" = 'NnvsoeXcpwZLpuHwxHrd' WHERE "public"."cadenero_members"."id" = 471 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test9" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 382 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 471 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 471 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 471 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 471 +Completed 201 Created in 108ms (Views: 6.0ms | ActiveRecord: 2.1ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 471 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"471", "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 471 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$b3/hcq1qqiizXAHtPbv2D.bqXpd39lYnqFhME/Inq/CiNKaXKVugK"], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 382], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["user_id", 472]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'y4hdpAYp21i4FDR2qKDn' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 382, "user_id" = 472, "created_at" = '2013-07-18 04:34:47.372473', "updated_at" = '2013-07-18 04:34:47.372473', "auth_token" = 'y4hdpAYp21i4FDR2qKDn' WHERE "public"."cadenero_members"."id" = 472 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 472 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 472 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 472 + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 472 +Completed 201 Created in 168ms (Views: 60.4ms | ActiveRecord: 3.9ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/472" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"472"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 382 AND "public"."cadenero_users"."id" = 472 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 472 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 472 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 472 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 472 +Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 2.1ms) + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 472 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 472 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 472 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 472 +Completed 201 Created in 7ms (Views: 4.8ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (4.8ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$WnYasZjyFGWVEswn72T9oOkRYhTT6YbGJWWhjtwg9imCxyZmXuvTO"], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 473], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'bHojpUqyMJ69nVW8BfwE' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 473, "created_at" = '2013-07-18 04:34:47.589735', "updated_at" = '2013-07-18 04:34:47.589735', "auth_token" = 'bHojpUqyMJ69nVW8BfwE' WHERE "public"."cadenero_accounts"."id" = 383 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 383], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["user_id", 473]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hNqZByTtCs4EpuXz4s9i' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 383, "user_id" = 473, "created_at" = '2013-07-18 04:34:47.595066', "updated_at" = '2013-07-18 04:34:47.595066', "auth_token" = 'hNqZByTtCs4EpuXz4s9i' WHERE "public"."cadenero_members"."id" = 473 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test10" +  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$igBKN8LioRmVOkmusARa5OQt4TWkTpiaF7/Mq.XKbXPckucgM5M3e"], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 383], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["user_id", 474]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'j9V8DfeBjmaydp9Vo3ak' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 383, "user_id" = 474, "created_at" = '2013-07-18 04:34:47.754794', "updated_at" = '2013-07-18 04:34:47.754794', "auth_token" = 'j9V8DfeBjmaydp9Vo3ak' WHERE "public"."cadenero_members"."id" = 474 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 474 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 474 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 474 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 474 +Completed 201 Created in 112ms (Views: 5.5ms | ActiveRecord: 3.5ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/474" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"474"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 383 AND "public"."cadenero_users"."id" = 474 LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 474 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 474 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 474 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 474 +Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.8ms) + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 474 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 474 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 474 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 474 +Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 474 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (2.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$2jkuRuqlGu1WLU/8k4dlt.o4HfmGw6JEaEyiiPHg2VDr15nVX1V8u"], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 475], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Yw2kzHYcTo4SCCxsQQdi' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 475, "created_at" = '2013-07-18 04:34:47.906631', "updated_at" = '2013-07-18 04:34:47.906631', "auth_token" = 'Yw2kzHYcTo4SCCxsQQdi' WHERE "public"."cadenero_accounts"."id" = 384 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 384], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:47 UTC +00:00], ["user_id", 475]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xJxwjABLcwaqkeJ5jr7K' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 384, "user_id" = 475, "created_at" = '2013-07-18 04:34:47.912181', "updated_at" = '2013-07-18 04:34:47.912181', "auth_token" = 'xJxwjABLcwaqkeJ5jr7K' WHERE "public"."cadenero_members"."id" = 475 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test11" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:47 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user10@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 384 AND "public"."cadenero_users"."email" = 'user10@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 475 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 475 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 475 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 475 +Completed 201 Created in 108ms (Views: 5.2ms | ActiveRecord: 2.1ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 475 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:48 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"475", "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 475 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:48 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (5.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$iHNyWFH2bnjXJ4gdhwnNHegGpij0wkGEcYFa1uEu4rQQY1Dr5TmiC"], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 476], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xxqfU8AUD1HV7FBCqc6T' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 476, "created_at" = '2013-07-18 04:34:48.190684', "updated_at" = '2013-07-18 04:34:48.190684', "auth_token" = 'xxqfU8AUD1HV7FBCqc6T' WHERE "public"."cadenero_accounts"."id" = 385 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 385], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["user_id", 476]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Ex1qScqSktNHWBmgZssj' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 385, "user_id" = 476, "created_at" = '2013-07-18 04:34:48.196361', "updated_at" = '2013-07-18 04:34:48.196361', "auth_token" = 'Ex1qScqSktNHWBmgZssj' WHERE "public"."cadenero_members"."id" = 476 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test12" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:48 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:48 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user11@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 385 AND "public"."cadenero_users"."email" = 'user11@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 476 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 476 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 476 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 476 +Completed 201 Created in 107ms (Views: 5.3ms | ActiveRecord: 2.2ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 476 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:48 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 476 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (6.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$be/gVs6jGQ05gkYQiXtkvusS.o3b8rmoUHSfg98jOm6BTXsFRfVDq"], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 477], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'srW91bsgkpyV2hWTXLUy' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 477, "created_at" = '2013-07-18 04:34:48.481310', "updated_at" = '2013-07-18 04:34:48.481310', "auth_token" = 'srW91bsgkpyV2hWTXLUy' WHERE "public"."cadenero_accounts"."id" = 386 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 386], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["user_id", 477]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dz4nCyh2xbDCGfC2xEGk' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 386, "user_id" = 477, "created_at" = '2013-07-18 04:34:48.486786', "updated_at" = '2013-07-18 04:34:48.486786', "auth_token" = 'dz4nCyh2xbDCGfC2xEGk' WHERE "public"."cadenero_members"."id" = 477 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test13" +  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:48 -0500 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (2.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$Xoltt6cDbK62BP/qJnAiqeAqr0h3LzeHpSGff/uBD6ypKDAUD0JZy"], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 478], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'WoNspzy7WTJV2oV8syqh' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 478, "created_at" = '2013-07-18 04:34:48.642393', "updated_at" = '2013-07-18 04:34:48.642393', "auth_token" = 'WoNspzy7WTJV2oV8syqh' WHERE "public"."cadenero_accounts"."id" = 387 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 387], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["user_id", 478]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'B2ngK4289GfvMyLmqW3F' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 387, "user_id" = 478, "created_at" = '2013-07-18 04:34:48.648092', "updated_at" = '2013-07-18 04:34:48.648092', "auth_token" = 'B2ngK4289GfvMyLmqW3F' WHERE "public"."cadenero_members"."id" = 478 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test14" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:48 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:48 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 387 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 37ms (Views: 0.3ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (2.8ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$NJ4.ba0tcHPp9vhaJ/otAevQBKQookuwPacvPsCBcEsLo/wyGU38W"], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 479], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'qrH2bWiLqYCVkrYqjxE3' LIMIT 1 +  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 479, "created_at" = '2013-07-18 04:34:48.848564', "updated_at" = '2013-07-18 04:34:48.848564', "auth_token" = 'qrH2bWiLqYCVkrYqjxE3' WHERE "public"."cadenero_accounts"."id" = 388 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 388], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["user_id", 479]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FVsPYVA56eFJQdKp53xj' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 388, "user_id" = 479, "created_at" = '2013-07-18 04:34:48.854632', "updated_at" = '2013-07-18 04:34:48.854632', "auth_token" = 'FVsPYVA56eFJQdKp53xj' WHERE "public"."cadenero_members"."id" = 479 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test15" +  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$/JTLoSp76YwFs04.oeNHW.ggPdrfKIDbcZ.LzDNcbMc4./GOZR9.a"], ["updated_at", Thu, 18 Jul 2013 04:34:48 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 480], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'wzJpKn2mUL7UsQd2HZav' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 480, "created_at" = '2013-07-18 04:34:49.003367', "updated_at" = '2013-07-18 04:34:49.003367', "auth_token" = 'wzJpKn2mUL7UsQd2HZav' WHERE "public"."cadenero_accounts"."id" = 389 +  (0.8ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 389], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00], ["user_id", 480]] + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Hgk5G4yztpiq1tfrA7Mm' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 389, "user_id" = 480, "created_at" = '2013-07-18 04:34:49.010800', "updated_at" = '2013-07-18 04:34:49.010800', "auth_token" = 'Hgk5G4yztpiq1tfrA7Mm' WHERE "public"."cadenero_members"."id" = 480 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:49 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:49 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user15@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 388 AND "public"."cadenero_users"."email" = 'user15@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 1.3ms) + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (7.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$6sks9xfczW2B9kmaEX8kbOVMNkYrX75OubAJD81qZEca3FraBrmce"], ["updated_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 481], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'G2sYy3qWsG7ejn3eEviy' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 481, "created_at" = '2013-07-18 04:34:49.159204', "updated_at" = '2013-07-18 04:34:49.159204', "auth_token" = 'G2sYy3qWsG7ejn3eEviy' WHERE "public"."cadenero_accounts"."id" = 390 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 390], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00], ["user_id", 481]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nSWCwmQCg1h4vWjy5jor' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 390, "user_id" = 481, "created_at" = '2013-07-18 04:34:49.165801', "updated_at" = '2013-07-18 04:34:49.165801', "auth_token" = 'nSWCwmQCg1h4vWjy5jor' WHERE "public"."cadenero_members"."id" = 481 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test17" +  (72.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (4.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (3.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:34:49 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:34:49 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 + Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 390 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.4ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (2.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account"}} +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} +Completed 500 Internal Server Error in 1ms +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON + Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 +Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 1.4ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 +Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 1.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$xXdBao6triZXFI62WVblNeoXiFM8pbqkP1zlUMT4ZDMxpK7WFwRTq"], ["updated_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00], ["name", "Testy"], ["owner_id", 482], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:34:49 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xkZwZq3vQS5JqYiqMvra' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 482, "created_at" = '2013-07-18 04:34:49.945208', "updated_at" = '2013-07-18 04:34:49.945208', "auth_token" = 'xkZwZq3vQS5JqYiqMvra' WHERE "public"."cadenero_accounts"."id" = 391 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:34:49 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (1.3ms) ROLLBACK TO SAVEPOINT active_record_1 + CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 105ms (Views: 0.3ms | ActiveRecord: 1.8ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:34:50 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:50 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$zrfOfdK9PjYOlFdz3DOAfODvmgSjabRX0jaTGz/pH9v1T7jIRjrp6"], ["updated_at", Thu, 18 Jul 2013 04:34:50 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:50 UTC +00:00], ["name", "Testy"], ["owner_id", 483], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:34:50 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xDcRNASBwXQxAq9yzCZR' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 483, "created_at" = '2013-07-18 04:34:50.167583', "updated_at" = '2013-07-18 04:34:50.167583', "auth_token" = 'xDcRNASBwXQxAq9yzCZR' WHERE "public"."cadenero_accounts"."id" = 392 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 392], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:50 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:50 UTC +00:00], ["user_id", 483]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gJXeHYB1zm6VeDishRyZ' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 392, "user_id" = 483, "created_at" = '2013-07-18 04:34:50.173150', "updated_at" = '2013-07-18 04:34:50.173150', "auth_token" = 'gJXeHYB1zm6VeDishRyZ' WHERE "public"."cadenero_members"."id" = 482 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test" +  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 392) LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 483 LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 392 +Completed 201 Created in 256ms (Views: 101.0ms | ActiveRecord: 35.2ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (2.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Connecting to database specified by database.yml +  (7.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Migrating to CreateCadeneroV1Accounts (20130612061604) +Migrating to CreateCadeneroV1Users (20130612064652) +Migrating to CreateCadeneroV1Members (20130612073709) +Migrating to AddAuthTokenToCadeneroMembers (20130715174857) +  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$IRkbiXzURhzq2FfmmC8djuo.mmT8WnFllKlU0ipjhXhOBrLXF1c5G"], ["updated_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (2.9ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["name", "Test Account #18"], ["owner_id", 484], ["subdomain", "test18"], ["updated_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'CppCSNBPW44U5hNw8y14' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #18', "subdomain" = 'test18', "owner_id" = 484, "created_at" = '2013-07-18 04:34:58.558066', "updated_at" = '2013-07-18 04:34:58.558066', "auth_token" = 'CppCSNBPW44U5hNw8y14' WHERE "public"."cadenero_accounts"."id" = 393 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 393], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["user_id", 484]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MCozAp43bwyVivWZrm6q' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 393, "user_id" = 484, "created_at" = '2013-07-18 04:34:58.564927', "updated_at" = '2013-07-18 04:34:58.564927', "auth_token" = 'MCozAp43bwyVivWZrm6q' WHERE "public"."cadenero_members"."id" = 483 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$h.ucscs67lw6db2p3ycSqegyyLduWX0lmXwRuTnKagJmuQWUieUFi"], ["updated_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$jFZNoXY5gH07acyqBsceX.Q1pmMJFFvOErn98pqq6adL00ODasLcC"], ["updated_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["name", "Root"], ["owner_id", 486], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zwafjyNhzoq9FCySdaWV' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 486, "created_at" = '2013-07-18 04:34:58.773783', "updated_at" = '2013-07-18 04:34:58.773783', "auth_token" = 'zwafjyNhzoq9FCySdaWV' WHERE "public"."cadenero_accounts"."id" = 394 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 394], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["user_id", 486]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'q4CdtbzyTxfauNYMyuvE' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 394, "user_id" = 486, "created_at" = '2013-07-18 04:34:58.779141', "updated_at" = '2013-07-18 04:34:58.779141', "auth_token" = 'q4CdtbzyTxfauNYMyuvE' WHERE "public"."cadenero_members"."id" = 484 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) CREATE SCHEMA "www" +  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.9ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (3.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:34:58 UTC +00:00], ["user_id", 101]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'N4QccQqqscqSsz6faFUy' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 04:34:58.967127', "updated_at" = '2013-07-18 04:34:58.967127', "auth_token" = 'N4QccQqqscqSsz6faFUy' WHERE "public"."cadenero_members"."id" = 485 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} + Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1001 +Completed 201 Created in 112ms (Views: 97.9ms | ActiveRecord: 4.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account"}} +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:37:41 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (2.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:41 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$c2uo8TteZrvonENNxuHOS.kLOJqXhsL.dGH7sM/TIEzNQyPU.idr6"], ["updated_at", Thu, 18 Jul 2013 04:37:41 UTC +00:00]] + SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:41 UTC +00:00], ["name", "Testy"], ["owner_id", 487], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:37:41 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '6xPkBnmp9saPqgqNwuug' LIMIT 1 +  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 487, "created_at" = '2013-07-18 04:37:41.904559', "updated_at" = '2013-07-18 04:37:41.904559', "auth_token" = '6xPkBnmp9saPqgqNwuug' WHERE "public"."cadenero_accounts"."id" = 395 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 395], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:41 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:41 UTC +00:00], ["user_id", 487]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Xt5CY9jD9isQzQW2sqz8' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 395, "user_id" = 487, "created_at" = '2013-07-18 04:37:41.974659', "updated_at" = '2013-07-18 04:37:41.974659', "auth_token" = 'Xt5CY9jD9isQzQW2sqz8' WHERE "public"."cadenero_members"."id" = 486 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) CREATE SCHEMA "test" +  (7.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (3.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 395) LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 487 LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 395 +Completed 201 Created in 387ms (Views: 101.3ms | ActiveRecord: 47.6ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (3.8ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$Ox30evsZqarARrvcNy0E5.KtqpQqy66Msx4oQGF3..A/O2I7K/yVe"], ["updated_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["name", "Testy"], ["owner_id", 488], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '1pNNacC6p7xeH7519KTM' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 488, "created_at" = '2013-07-18 04:37:42.263947', "updated_at" = '2013-07-18 04:37:42.263947', "auth_token" = '1pNNacC6p7xeH7519KTM' WHERE "public"."cadenero_accounts"."id" = 396 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:37:42 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 110ms (Views: 0.3ms | ActiveRecord: 0.6ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$aSQ2wjpEe8r.cGyBQ4dBu.B5AWYP0SqBRVB9MAtnMwP/qV6rrI99C"], ["updated_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 489], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'oiNsnd7sWFmUh9cE8GHa' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 489, "created_at" = '2013-07-18 04:37:42.493455', "updated_at" = '2013-07-18 04:37:42.493455', "auth_token" = 'oiNsnd7sWFmUh9cE8GHa' WHERE "public"."cadenero_accounts"."id" = 397 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 397], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["user_id", 489]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QQL1X2g8b7AiVqx3EF77' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 397, "user_id" = 489, "created_at" = '2013-07-18 04:37:42.498904', "updated_at" = '2013-07-18 04:37:42.498904', "auth_token" = 'QQL1X2g8b7AiVqx3EF77' WHERE "public"."cadenero_members"."id" = 487 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test1" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:37:42 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$PTzjgtWSTUM/rSHNpHpVfeNLTSfADYG0vHr6kNPfvARd31QdTx9cK"], ["updated_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 397], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["user_id", 490]] + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SyAF1LV6ywVqyxNE3XPg' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 397, "user_id" = 490, "created_at" = '2013-07-18 04:37:42.653698', "updated_at" = '2013-07-18 04:37:42.653698', "auth_token" = 'SyAF1LV6ywVqyxNE3XPg' WHERE "public"."cadenero_members"."id" = 488 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 490 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 490 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 490 + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 490 +Completed 201 Created in 185ms (Views: 72.6ms | ActiveRecord: 4.4ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/490" for 127.0.0.1 at 2013-07-17 23:37:42 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"490"} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 397 AND "public"."cadenero_users"."id" = 490 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 490 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 490 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 490 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 490 +Completed 200 OK in 12ms (Views: 5.9ms | ActiveRecord: 1.8ms) +  (4.9ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$XfCrXHKPFms08sze8zQS3.y8/jBHu9IwuVv5zM4.QAtg0tT3A3aP."], ["updated_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 491], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '5czEwBzttoxrCyfEkp71' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 491, "created_at" = '2013-07-18 04:37:42.863725', "updated_at" = '2013-07-18 04:37:42.863725', "auth_token" = '5czEwBzttoxrCyfEkp71' WHERE "public"."cadenero_accounts"."id" = 398 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 398], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:42 UTC +00:00], ["user_id", 491]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HK2wfW1FVu4kEsEvhQkA' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 398, "user_id" = 491, "created_at" = '2013-07-18 04:37:42.869224', "updated_at" = '2013-07-18 04:37:42.869224', "auth_token" = 'HK2wfW1FVu4kEsEvhQkA' WHERE "public"."cadenero_members"."id" = 489 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test2" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:37:42 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$mDS0J6Yh99HsEcm4aTvcc.b.Azzylec0fxQEqlsOi/0hfpF1aqBV6"], ["updated_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 398], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["user_id", 492]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hcLfoDzLYFX3sKd5Zz3M' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 398, "user_id" = 492, "created_at" = '2013-07-18 04:37:43.022171', "updated_at" = '2013-07-18 04:37:43.022171', "auth_token" = 'hcLfoDzLYFX3sKd5Zz3M' WHERE "public"."cadenero_members"."id" = 490 +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 492 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 492 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 492 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 492 +Completed 201 Created in 116ms (Views: 5.5ms | ActiveRecord: 3.5ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/492" for 127.0.0.1 at 2013-07-17 23:37:43 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"492"} + Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 398 AND "public"."cadenero_users"."id" = 492 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 492 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 492 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 492 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 492 +Completed 200 OK in 13ms (Views: 5.8ms | ActiveRecord: 2.4ms) + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 492], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '1Ymtvuuw1JznmpSHQQCe' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 492, "created_at" = '2013-07-18 04:37:43.054644', "updated_at" = '2013-07-18 04:37:43.054644', "auth_token" = '1Ymtvuuw1JznmpSHQQCe' WHERE "public"."cadenero_accounts"."id" = 399 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 399], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["user_id", 492]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ppUyFDKPxdEvAhLsnXVt' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 399, "user_id" = 492, "created_at" = '2013-07-18 04:37:43.060346', "updated_at" = '2013-07-18 04:37:43.060346', "auth_token" = 'ppUyFDKPxdEvAhLsnXVt' WHERE "public"."cadenero_members"."id" = 491 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test3" +  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:37:43 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$vzxj6pif0gBrhYG2AfgQTuHoImS4QVawciDc.AgK3dRyJ3ENKcA/6"], ["updated_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 399], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["user_id", 493]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YdmuUnC3fZqpzMZVx9fB' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 399, "user_id" = 493, "created_at" = '2013-07-18 04:37:43.208919', "updated_at" = '2013-07-18 04:37:43.208919', "auth_token" = 'YdmuUnC3fZqpzMZVx9fB' WHERE "public"."cadenero_members"."id" = 492 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 493 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 493 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 493 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 493 +Completed 201 Created in 111ms (Views: 5.5ms | ActiveRecord: 3.5ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/493" for 127.0.0.1 at 2013-07-17 23:37:43 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"493"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 399 AND "public"."cadenero_users"."id" = 493 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 493 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 493 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 493 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 493 +Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 2.0ms) +Started GET "/v1/users/492" for 127.0.0.1 at 2013-07-17 23:37:43 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"492"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 398 AND "public"."cadenero_users"."id" = 492 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 492 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 492 + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 492 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 492 +Completed 200 OK in 12ms (Views: 6.5ms | ActiveRecord: 2.3ms) +Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 23:37:43 -0500 +Processing by Cadenero::V1::Account::UsersController#index as HTML + Parameters: {"default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 398 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 492 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 492 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 492 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 492 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 491 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 491 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 491 +Completed 200 OK in 16ms (Views: 11.8ms | ActiveRecord: 2.7ms) +  (6.8ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:43 UTC +00:00], ["user_id", 101]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Kj9hpdta8qpsUg7nf2Pq' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 04:37:43.388195', "updated_at" = '2013-07-18 04:37:43.388195', "auth_token" = 'Kj9hpdta8qpsUg7nf2Pq' WHERE "public"."cadenero_members"."id" = 493 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (5.8ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (4.6ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:46 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$Y/BuTHwge2agDIu21oxs9uKZeXLO2MgbZbnZsOrwklYE.dJ85usWK"], ["updated_at", Thu, 18 Jul 2013 04:37:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:46 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 494], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 04:37:46 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Wq1nCnW6aBfcsLZdzquq' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 494, "created_at" = '2013-07-18 04:37:46.829498', "updated_at" = '2013-07-18 04:37:46.829498', "auth_token" = 'Wq1nCnW6aBfcsLZdzquq' WHERE "public"."cadenero_accounts"."id" = 400 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 400], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:46 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:46 UTC +00:00], ["user_id", 494]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NLss5uca5MjXNdPyi3vH' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 400, "user_id" = 494, "created_at" = '2013-07-18 04:37:46.835714', "updated_at" = '2013-07-18 04:37:46.835714', "auth_token" = 'NLss5uca5MjXNdPyi3vH' WHERE "public"."cadenero_members"."id" = 494 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:46 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$GH20oKYKYqBfUgsliU/QHeiq2HeWmWuai6CMJyrdnkdqvTspBCefq"], ["updated_at", Thu, 18 Jul 2013 04:37:46 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:47 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$Yy3Edzs1yLsTI0zxlJFJte6Z7BLBPmjXnBx8TP16yhjgC95p2T8m2"], ["updated_at", Thu, 18 Jul 2013 04:37:47 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:47 UTC +00:00], ["name", "Root"], ["owner_id", 496], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 04:37:47 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'DA9ExdzGxWEP149xZDM8' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 496, "created_at" = '2013-07-18 04:37:47.037745', "updated_at" = '2013-07-18 04:37:47.037745', "auth_token" = 'DA9ExdzGxWEP149xZDM8' WHERE "public"."cadenero_accounts"."id" = 401 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 401], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:47 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:47 UTC +00:00], ["user_id", 496]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'og3PiGQyh757UpyMM4BZ' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 401, "user_id" = 496, "created_at" = '2013-07-18 04:37:47.042946', "updated_at" = '2013-07-18 04:37:47.042946', "auth_token" = 'og3PiGQyh757UpyMM4BZ' WHERE "public"."cadenero_members"."id" = 495 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "www" +  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (2.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (3.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Connecting to database specified by database.yml +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Migrating to CreateCadeneroV1Accounts (20130612061604) +Migrating to CreateCadeneroV1Users (20130612064652) +Migrating to CreateCadeneroV1Members (20130612073709) +Migrating to AddAuthTokenToCadeneroMembers (20130715174857) +  (2.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.6ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:52 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$cEAMHhBOjWTekjLxZgiFYuUIrHUXksVddc3T5UtL7RZRWgNJG7T/K"], ["updated_at", Thu, 18 Jul 2013 04:37:52 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:52 UTC +00:00], ["name", "Test Account"], ["owner_id", 497], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:37:52 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'QdfiXVBUBUv7sWgGJshm' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 497, "created_at" = '2013-07-18 04:37:52.080124', "updated_at" = '2013-07-18 04:37:52.080124', "auth_token" = 'QdfiXVBUBUv7sWgGJshm' WHERE "public"."cadenero_accounts"."id" = 402 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 402], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:52 UTC +00:00], ["user_id", 497]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xztvwjjBXTfdaTzseaA9' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 402, "user_id" = 497, "created_at" = '2013-07-18 04:37:52.086152', "updated_at" = '2013-07-18 04:37:52.086152', "auth_token" = 'xztvwjjBXTfdaTzseaA9' WHERE "public"."cadenero_members"."id" = 496 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 402 LIMIT 1 +  (9.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} + Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 +Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 1.8ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON + Cadenero::Member Load (1.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 +Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 2.3ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$z5ZthlTOtl5XK/4QJjMu9OmDpCwXv2/tzGt6LXg2SXeNoSJKhxlMG"], ["updated_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 498], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'U6a3Xprszu7XRKxgp2fS' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 498, "created_at" = '2013-07-18 04:37:53.480490', "updated_at" = '2013-07-18 04:37:53.480490', "auth_token" = 'U6a3Xprszu7XRKxgp2fS' WHERE "public"."cadenero_accounts"."id" = 403 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (10.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 403], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00], ["user_id", 498]] + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yoGYPPRJA5Csfzn8qAs6' LIMIT 1 +  (1.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 403, "user_id" = 498, "created_at" = '2013-07-18 04:37:53.486118', "updated_at" = '2013-07-18 04:37:53.486118', "auth_token" = 'yoGYPPRJA5Csfzn8qAs6' WHERE "public"."cadenero_members"."id" = 497 +  (2.5ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) CREATE SCHEMA "test5" +  (11.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (6.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (2.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (5.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.5ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:53 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:53 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 403 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 498 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 498 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 498 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 498 +Completed 201 Created in 139ms (Views: 5.4ms | ActiveRecord: 2.1ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 498 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:53 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 498 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (4.3ms) ROLLBACK +  (1.6ms) BEGIN +  (3.6ms) COMMIT +  (5.9ms) BEGIN +  (7.9ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$sM5tbpCFlsxpPGJGdLuib.tnrt7n5Ab1NyR5ElTjNsMJQ.DGuuAmW"], ["updated_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 499], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'W1b8jKhpGNEUMqPdiW1s' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 499, "created_at" = '2013-07-18 04:37:53.974612', "updated_at" = '2013-07-18 04:37:53.974612', "auth_token" = 'W1b8jKhpGNEUMqPdiW1s' WHERE "public"."cadenero_accounts"."id" = 404 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 404], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:53 UTC +00:00], ["user_id", 499]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'snD5L2xZ59sLQHmU6Zog' LIMIT 1 +  (3.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 404, "user_id" = 499, "created_at" = '2013-07-18 04:37:53.980128', "updated_at" = '2013-07-18 04:37:53.980128', "auth_token" = 'snD5L2xZ59sLQHmU6Zog' WHERE "public"."cadenero_members"."id" = 498 +  (6.7ms) RELEASE SAVEPOINT active_record_1 +  (5.5ms) CREATE SCHEMA "test6" +  (32.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (5.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (9.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (10.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (9.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (14.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:54 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 404 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 + Cadenero::User Load (3.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 499 LIMIT 1 + Cadenero::Member Load (9.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 499 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 499 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 499 +Completed 201 Created in 128ms (Views: 6.3ms | ActiveRecord: 14.5ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 499 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:54 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"499", "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 499 LIMIT 1 +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:54 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:37:54 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:54 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$u4VurHuORrFM9pz4xQ3LiuhozbQf9dBqw6J89secObj5xTch42cra"], ["updated_at", Thu, 18 Jul 2013 04:37:54 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 404], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:54 UTC +00:00], ["user_id", 500]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vcroENKEnKx4F9ga4ksq' LIMIT 1 +  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 404, "user_id" = 500, "created_at" = '2013-07-18 04:37:54.496534', "updated_at" = '2013-07-18 04:37:54.496534', "auth_token" = 'vcroENKEnKx4F9ga4ksq' WHERE "public"."cadenero_members"."id" = 499 +  (7.5ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 500 LIMIT 1 + Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 500 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 500 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 500 +Completed 201 Created in 204ms (Views: 6.0ms | ActiveRecord: 14.1ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/500" for 127.0.0.1 at 2013-07-17 23:37:54 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"500"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 404 AND "public"."cadenero_users"."id" = 500 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 500 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 500 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 500 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 500 +Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.6ms) + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:54 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 500 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 500 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 500 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 500 +Completed 201 Created in 7ms (Views: 5.0ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (6.0ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (1.4ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:54 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$VumKYhUYjeAzwGppXtvF..cOCb.a1y6twqEJizbh.dHqxrgmeFsyu"], ["updated_at", Thu, 18 Jul 2013 04:37:54 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:54 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 501], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 04:37:54 UTC +00:00]] + Cadenero::V1::Account Load (7.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '7pmkf1CcZQerhicD6zzs' LIMIT 1 +  (1.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 501, "created_at" = '2013-07-18 04:37:54.724839', "updated_at" = '2013-07-18 04:37:54.724839', "auth_token" = '7pmkf1CcZQerhicD6zzs' WHERE "public"."cadenero_accounts"."id" = 405 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 405], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:54 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:54 UTC +00:00], ["user_id", 501]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VacXbzdJep8tkyqQyqph' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 405, "user_id" = 501, "created_at" = '2013-07-18 04:37:54.767810', "updated_at" = '2013-07-18 04:37:54.767810', "auth_token" = 'VacXbzdJep8tkyqQyqph' WHERE "public"."cadenero_members"."id" = 500 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test7" +  (12.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (3.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (7.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (6.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (2.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (3.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (8.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (4.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (2.2ms) SELECT version FROM "schema_migrations" +  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (4.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:54 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:37:54 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (10.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 +  (10.1ms) SAVEPOINT active_record_1 + SQL (17.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$QaXQDG26osMMGrOOmnGxr.ZFQKd1Kb58IEDAeXqlARW2eigVdtP2W"], ["updated_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 405], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["user_id", 502]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'M3deBifcSp6opiNAhM31' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 405, "user_id" = 502, "created_at" = '2013-07-18 04:37:55.096389', "updated_at" = '2013-07-18 04:37:55.096389', "auth_token" = 'M3deBifcSp6opiNAhM31' WHERE "public"."cadenero_members"."id" = 501 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 502 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 502 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 502 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 502 +Completed 201 Created in 193ms (Views: 5.8ms | ActiveRecord: 39.5ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/502" for 127.0.0.1 at 2013-07-17 23:37:55 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"502"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 405 AND "public"."cadenero_users"."id" = 502 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 502 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 502 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 502 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 502 +Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.5ms) + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:55 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 502 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 502 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 502 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 502 +Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.0ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:55 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} + Cadenero::User Load (3.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 502 LIMIT 1 +Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 3.2ms) +  (16.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (1.7ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$L9dsecCw3THI6pGdUIq2nuNxPkA7uSwJmWN9hzIcnObCKceXWYDRO"], ["updated_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 503], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'nSpmvqkkUyVbaUpULN9q' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 503, "created_at" = '2013-07-18 04:37:55.429288', "updated_at" = '2013-07-18 04:37:55.429288', "auth_token" = 'nSpmvqkkUyVbaUpULN9q' WHERE "public"."cadenero_accounts"."id" = 406 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 406], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["user_id", 503]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fSBsV6EhUpK2MoKCqPXA' LIMIT 1 +  (11.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 406, "user_id" = 503, "created_at" = '2013-07-18 04:37:55.435643', "updated_at" = '2013-07-18 04:37:55.435643', "auth_token" = 'fSBsV6EhUpK2MoKCqPXA' WHERE "public"."cadenero_members"."id" = 502 +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test8" +  (21.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (6.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (6.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (10.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:55 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 406 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 + Cadenero::User Load (12.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 503 LIMIT 1 + Cadenero::Member Load (10.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 503 + Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 503 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 503 +Completed 201 Created in 131ms (Views: 5.9ms | ActiveRecord: 25.6ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 503 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:55 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"503", "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 503 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:55 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (11.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (3.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$gGZmCFnhpklYQn8x7LAkV.CpSzN5VT8btiFoDe7.D.lrENJ1MrM9i"], ["updated_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 504], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xN4cxQ7yDwzq4RFF53kb' LIMIT 1 +  (1.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 504, "created_at" = '2013-07-18 04:37:55.878654', "updated_at" = '2013-07-18 04:37:55.878654', "auth_token" = 'xN4cxQ7yDwzq4RFF53kb' WHERE "public"."cadenero_accounts"."id" = 407 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 407], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:55 UTC +00:00], ["user_id", 504]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'icZBoVeEAyPXpvDthFdg' LIMIT 1 +  (2.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 407, "user_id" = 504, "created_at" = '2013-07-18 04:37:55.886234', "updated_at" = '2013-07-18 04:37:55.886234', "auth_token" = 'icZBoVeEAyPXpvDthFdg' WHERE "public"."cadenero_members"."id" = 503 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test9" +  (4.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (4.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (6.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:56 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:56 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 407 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 0.8ms) + Cadenero::V1::Account Load (3.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (4.9ms) ROLLBACK +  (0.1ms) BEGIN +  (1.9ms) COMMIT +  (6.4ms) BEGIN +  (4.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$AKkmWqBO5nV9Z61gEoSAfu94fnNbQAO9MXDQ2d4XeKwVdfZaXepEq"], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 505], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Qyp1zxgV2yxzQxMt4VPc' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 505, "created_at" = '2013-07-18 04:37:56.197213', "updated_at" = '2013-07-18 04:37:56.197213', "auth_token" = 'Qyp1zxgV2yxzQxMt4VPc' WHERE "public"."cadenero_accounts"."id" = 408 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 408], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["user_id", 505]] + Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mbjh3ttzvi1FTquVz7zH' LIMIT 1 +  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 408, "user_id" = 505, "created_at" = '2013-07-18 04:37:56.202545', "updated_at" = '2013-07-18 04:37:56.202545', "auth_token" = 'mbjh3ttzvi1FTquVz7zH' WHERE "public"."cadenero_members"."id" = 504 +  (9.4ms) RELEASE SAVEPOINT active_record_1 +  (1.5ms) CREATE SCHEMA "test10" +  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (9.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (2.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (3.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:56 -0500 + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (4.3ms) ROLLBACK +  (2.4ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (7.9ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$EIbzqKlz86.kimiY5iuC1.x5dyBlDNCXUbytpDj6oPLbVrrp61yM2"], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 506], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00]] + Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'qmw79ERqnm6GBWJe9Xwr' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 506, "created_at" = '2013-07-18 04:37:56.455812', "updated_at" = '2013-07-18 04:37:56.455812', "auth_token" = 'qmw79ERqnm6GBWJe9Xwr' WHERE "public"."cadenero_accounts"."id" = 409 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 409], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["user_id", 506]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Wc4dhAxwCbgadTAFseDw' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 409, "user_id" = 506, "created_at" = '2013-07-18 04:37:56.462881', "updated_at" = '2013-07-18 04:37:56.462881', "auth_token" = 'Wc4dhAxwCbgadTAFseDw' WHERE "public"."cadenero_members"."id" = 505 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test11" +  (7.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (9.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (9.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (14.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:56 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:56 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (5.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 409 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 9ms (Views: 0.3ms | ActiveRecord: 5.5ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (7.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (1.2ms) BEGIN +  (0.5ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$xRSulcKOFOWVtVRxYYnkDeUq6S87..dpbn0vIKovZR9ryMg29zUFu"], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 + SQL (1.1ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 507], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'LppCjrqmMsZEkJUqzCQq' LIMIT 1 +  (6.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 507, "created_at" = '2013-07-18 04:37:56.706741', "updated_at" = '2013-07-18 04:37:56.706741', "auth_token" = 'LppCjrqmMsZEkJUqzCQq' WHERE "public"."cadenero_accounts"."id" = 410 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 410], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["user_id", 507]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yUK81qYZ7h93xdZjhTDU' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 410, "user_id" = 507, "created_at" = '2013-07-18 04:37:56.718878', "updated_at" = '2013-07-18 04:37:56.718878', "auth_token" = 'yUK81qYZ7h93xdZjhTDU' WHERE "public"."cadenero_members"."id" = 506 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (11.6ms) CREATE SCHEMA "test12" +  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (7.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (12.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$xtHQQT77Uro8chlqNdV/VuDM3aAgfYfV1/VTRAXdp3KDFAFP5Tcni"], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 508], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '2gq3VomyqoewMsmiPAbJ' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 508, "created_at" = '2013-07-18 04:37:56.929085', "updated_at" = '2013-07-18 04:37:56.929085', "auth_token" = '2gq3VomyqoewMsmiPAbJ' WHERE "public"."cadenero_accounts"."id" = 411 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 411], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:56 UTC +00:00], ["user_id", 508]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QvvfPY74K5yk9AVxsgYX' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 411, "user_id" = 508, "created_at" = '2013-07-18 04:37:56.936076', "updated_at" = '2013-07-18 04:37:56.936076', "auth_token" = 'QvvfPY74K5yk9AVxsgYX' WHERE "public"."cadenero_members"."id" = 507 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:56 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:37:56 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user13@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (7.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 + Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 410 AND "public"."cadenero_users"."email" = 'user13@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 12ms (Views: 0.3ms | ActiveRecord: 8.4ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (7.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (2.8ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$H2U3Hj7ZALhm254QzLTfm.pzulR3ndJBi3jw1bBpY8vYww9bHzgze"], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 509], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'DTCs5ndfqq3KJQ3sqvex' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 509, "created_at" = '2013-07-18 04:37:57.125907', "updated_at" = '2013-07-18 04:37:57.125907', "auth_token" = 'DTCs5ndfqq3KJQ3sqvex' WHERE "public"."cadenero_accounts"."id" = 412 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 412], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["user_id", 509]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bUK5XQPMdgdh2fqaT2mk' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 412, "user_id" = 509, "created_at" = '2013-07-18 04:37:57.131342', "updated_at" = '2013-07-18 04:37:57.131342', "auth_token" = 'bUK5XQPMdgdh2fqaT2mk' WHERE "public"."cadenero_members"."id" = 508 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test14" +  (7.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (3.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (5.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (4.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (5.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (8.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (4.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:57 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 509 +Started GET "/v1?auth_token[]=bUK5XQPMdgdh2fqaT2mk" for 127.0.0.1 at 2013-07-17 23:37:57 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["bUK5XQPMdgdh2fqaT2mk"], "default"=>:json} + Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 412 AND "public"."cadenero_members"."auth_token" IN ('bUK5XQPMdgdh2fqaT2mk') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 509 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 509 LIMIT 1 +Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 1.4ms) +  (9.0ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (3.0ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$N2tv48KdqjWaGuW90gjMFeFo/l6jHmyysYC04X1Lduyk9JUbwgSWy"], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (2.4ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (6.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 510], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00]] + Cadenero::V1::Account Load (9.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'NpymeWsS2ZaN1z6LFsRF' LIMIT 1 +  (2.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 510, "created_at" = '2013-07-18 04:37:57.400886', "updated_at" = '2013-07-18 04:37:57.400886', "auth_token" = 'NpymeWsS2ZaN1z6LFsRF' WHERE "public"."cadenero_accounts"."id" = 413 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (9.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 413], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["user_id", 510]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CfUHdt2FTCz455A25sRP' LIMIT 1 +  (1.9ms) UPDATE "public"."cadenero_members" SET "account_id" = 413, "user_id" = 510, "created_at" = '2013-07-18 04:37:57.419606', "updated_at" = '2013-07-18 04:37:57.419606', "auth_token" = 'CfUHdt2FTCz455A25sRP' WHERE "public"."cadenero_members"."id" = 509 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test15" +  (15.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (5.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (5.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (8.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (4.2ms) SELECT version FROM "schema_migrations" +  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:57 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (4.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 510 +Started GET "/v1?auth_token[]=CfUHdt2FTCz455A25sRP" for 127.0.0.1 at 2013-07-17 23:37:57 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["CfUHdt2FTCz455A25sRP"], "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 413 AND "public"."cadenero_members"."auth_token" IN ('CfUHdt2FTCz455A25sRP') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 510 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 510 LIMIT 1 +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) +Started GET "/v1/users/510" for 127.0.0.1 at 2013-07-17 23:37:57 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"510"} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started GET "/v1/users/510?auth_token[]=CfUHdt2FTCz455A25sRP" for 127.0.0.1 at 2013-07-17 23:37:57 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"auth_token"=>["CfUHdt2FTCz455A25sRP"], "default"=>:json, "id"=>"510"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 413 AND "public"."cadenero_members"."auth_token" IN ('CfUHdt2FTCz455A25sRP') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 510 LIMIT 1 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 413 AND "public"."cadenero_users"."id" = 510 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 510 LIMIT 1 + Cadenero::Member Load (3.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 510 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 510 + Cadenero::V1::Account Load (6.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 510 +Completed 200 OK in 26ms (Views: 6.9ms | ActiveRecord: 11.5ms) +  (3.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (3.4ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$33kJ9h5Ko3HPujpvgGRLkeYTj.pOawOB2EwErHvVIZXmemCIqiJpa"], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 511], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '9QfZAPTZtxoxagDa5rei' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 511, "created_at" = '2013-07-18 04:37:57.732450', "updated_at" = '2013-07-18 04:37:57.732450', "auth_token" = '9QfZAPTZtxoxagDa5rei' WHERE "public"."cadenero_accounts"."id" = 414 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 414], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["user_id", 511]] + Cadenero::Member Load (2.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jQujzNynim6sVFjQpJxU' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 414, "user_id" = 511, "created_at" = '2013-07-18 04:37:57.737937', "updated_at" = '2013-07-18 04:37:57.737937', "auth_token" = 'jQujzNynim6sVFjQpJxU' WHERE "public"."cadenero_members"."id" = 510 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test16" +  (11.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (8.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (3.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (2.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (6.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:57 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:37:57 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$KuWHqQUGG46h7H6NWRRSdeoXJm8LQWPkWtkt2ruAKtT5QpE76Jhpq"], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 414], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:57 UTC +00:00], ["user_id", 512]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ExAZrCXqczMjJFtGw3t3' LIMIT 1 +  (2.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 414, "user_id" = 512, "created_at" = '2013-07-18 04:37:57.956492', "updated_at" = '2013-07-18 04:37:57.956492', "auth_token" = 'ExAZrCXqczMjJFtGw3t3' WHERE "public"."cadenero_members"."id" = 511 +  (0.4ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 512 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 512 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 512 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 512 +Completed 201 Created in 183ms (Views: 6.0ms | ActiveRecord: 6.6ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/512" for 127.0.0.1 at 2013-07-17 23:37:58 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"512"} + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 414 AND "public"."cadenero_users"."id" = 512 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 512 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 512 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 512 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 512 +Completed 200 OK in 12ms (Views: 6.7ms | ActiveRecord: 1.5ms) + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 511 +Started GET "/v1?auth_token[]=jQujzNynim6sVFjQpJxU" for 127.0.0.1 at 2013-07-17 23:37:58 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["jQujzNynim6sVFjQpJxU"], "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 414 AND "public"."cadenero_members"."auth_token" IN ('jQujzNynim6sVFjQpJxU') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 511 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 511 LIMIT 1 +Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.7ms) + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 512 +Started GET "/v1?auth_token[]=ExAZrCXqczMjJFtGw3t3" for 127.0.0.1 at 2013-07-17 23:37:58 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["ExAZrCXqczMjJFtGw3t3"], "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 414 AND "public"."cadenero_members"."auth_token" IN ('ExAZrCXqczMjJFtGw3t3') LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 512 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 512 LIMIT 1 +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.8ms) +  (5.0ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$E/wvSK3dzOxIaUREfMViBeRkpkVMV5kAmF8I8pjoTsf2.XLHmU.YK"], ["updated_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 513], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'bHWRkbtTjVnfX655rahk' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 513, "created_at" = '2013-07-18 04:37:58.256426', "updated_at" = '2013-07-18 04:37:58.256426', "auth_token" = 'bHWRkbtTjVnfX655rahk' WHERE "public"."cadenero_accounts"."id" = 415 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 415], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00], ["user_id", 513]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2qzftLqFzWDwjJWsqxRF' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 415, "user_id" = 513, "created_at" = '2013-07-18 04:37:58.263676', "updated_at" = '2013-07-18 04:37:58.263676', "auth_token" = '2qzftLqFzWDwjJWsqxRF' WHERE "public"."cadenero_members"."id" = 512 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test17" +  (16.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (7.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (7.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (6.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (8.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (2.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (4.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (6.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (6.6ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$HbUfpHoOYNkGdbd7ATbwkuvrv5w1ayo0qa/Pr/0zK3qgzDYUVkgRm"], ["updated_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00], ["name", "Test Account #18"], ["owner_id", 514], ["subdomain", "test18"], ["updated_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'gfUNZn6gGNxTLSf3CKT7' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #18', "subdomain" = 'test18', "owner_id" = 514, "created_at" = '2013-07-18 04:37:58.564772', "updated_at" = '2013-07-18 04:37:58.564772', "auth_token" = 'gfUNZn6gGNxTLSf3CKT7' WHERE "public"."cadenero_accounts"."id" = 416 +  (11.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 416], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:37:58 UTC +00:00], ["user_id", 514]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Kurt1puyQARmAwopm8es' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 416, "user_id" = 514, "created_at" = '2013-07-18 04:37:58.586091', "updated_at" = '2013-07-18 04:37:58.586091', "auth_token" = 'Kurt1puyQARmAwopm8es' WHERE "public"."cadenero_members"."id" = 513 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test18" +  (7.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (8.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (12.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (5.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:37:58 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (6.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 514 +Started GET "/v1?auth_token[]=Kurt1puyQARmAwopm8es" for 127.0.0.1 at 2013-07-17 23:37:58 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["Kurt1puyQARmAwopm8es"], "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 415 AND "public"."cadenero_members"."auth_token" IN ('Kurt1puyQARmAwopm8es') LIMIT 1 +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.7ms) +  (10.4ms) ROLLBACK +Connecting to database specified by database.yml +  (0.2ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (3.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:17 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$f3HIDQQvAf3UMNiUAvcm2eIBdROmpokRb4DXMlrAXXchSKlKTNLM."], ["updated_at", Thu, 18 Jul 2013 04:39:17 UTC +00:00]] + SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:17 UTC +00:00], ["name", "Test Account"], ["owner_id", 515], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:39:17 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'B9uzRp3VPpQVjPQ8GK8D' LIMIT 1 +  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 515, "created_at" = '2013-07-18 04:39:17.544675', "updated_at" = '2013-07-18 04:39:17.544675', "auth_token" = 'B9uzRp3VPpQVjPQ8GK8D' WHERE "public"."cadenero_accounts"."id" = 417 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 417], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:17 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:17 UTC +00:00], ["user_id", 515]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yB4UzwKn7VVsrHjprGkw' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 417, "user_id" = 515, "created_at" = '2013-07-18 04:39:17.575017', "updated_at" = '2013-07-18 04:39:17.575017', "auth_token" = 'yB4UzwKn7VVsrHjprGkw' WHERE "public"."cadenero_members"."id" = 514 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) CREATE SCHEMA "test" +  (8.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') + Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 417 LIMIT 1 +  (4.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.3ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 +Completed 200 OK in 25ms (Views: 23.4ms | ActiveRecord: 1.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 +Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 1.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:39:18 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$FfcowZEM4S7hpxTrrHfTW.Sxmp3lJvogjBwTtqBkv0MVUc.bKVh0W"], ["updated_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00], ["name", "Testy"], ["owner_id", 516], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Yh75PsJKp3SwcxwoZCNa' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 516, "created_at" = '2013-07-18 04:39:18.393706', "updated_at" = '2013-07-18 04:39:18.393706', "auth_token" = 'Yh75PsJKp3SwcxwoZCNa' WHERE "public"."cadenero_accounts"."id" = 418 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 418], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00], ["user_id", 516]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sy2xYpsVnC18bzfFMuen' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 418, "user_id" = 516, "created_at" = '2013-07-18 04:39:18.399341', "updated_at" = '2013-07-18 04:39:18.399341', "auth_token" = 'sy2xYpsVnC18bzfFMuen' WHERE "public"."cadenero_members"."id" = 515 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test" +  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (11.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (8.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 418) LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 516 LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 418 +Completed 201 Created in 292ms (Views: 99.7ms | ActiveRecord: 55.4ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (2.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$WnSenxrbUlAv4RwSYnYqQ.bhCmypLnPX8QhN8MuOpCQKJoDHkpz4i"], ["updated_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00], ["name", "Testy"], ["owner_id", 517], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '9ZNaHYnncDeKykDBApHF' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 517, "created_at" = '2013-07-18 04:39:18.694402', "updated_at" = '2013-07-18 04:39:18.694402', "auth_token" = '9ZNaHYnncDeKykDBApHF' WHERE "public"."cadenero_accounts"."id" = 419 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:39:18 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 + CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 102ms (Views: 0.3ms | ActiveRecord: 0.6ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1001 +Completed 201 Created in 4ms (Views: 3.0ms | ActiveRecord: 0.5ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account"}} +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:18 UTC +00:00], ["user_id", 101]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'E2wBKqmvBiWaCZXocvRB' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 04:39:18.989474', "updated_at" = '2013-07-18 04:39:18.989474', "auth_token" = 'E2wBKqmvBiWaCZXocvRB' WHERE "public"."cadenero_members"."id" = 516 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$xemmg928KNbgA2T5VqN2Mu6zC.OdLnJcpCk/1ja/EG.Xoo51LwNU."], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 518], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'krriUVRwJJLXcZpQkzNg' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 518, "created_at" = '2013-07-18 04:39:19.106254', "updated_at" = '2013-07-18 04:39:19.106254', "auth_token" = 'krriUVRwJJLXcZpQkzNg' WHERE "public"."cadenero_accounts"."id" = 420 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 420], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["user_id", 518]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'b9ExGyqB5PXfHzwGi2Gd' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 420, "user_id" = 518, "created_at" = '2013-07-18 04:39:19.111918', "updated_at" = '2013-07-18 04:39:19.111918', "auth_token" = 'b9ExGyqB5PXfHzwGi2Gd' WHERE "public"."cadenero_members"."id" = 517 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test1" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:39:19 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$//02mNZriOO6i678WMc27eFb8ut3Ys4KdcJwgwvv1PSrQHdhzRLNK"], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 420], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["user_id", 519]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sjpGsqsqWyX9wnAkxqZs' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 420, "user_id" = 519, "created_at" = '2013-07-18 04:39:19.263111', "updated_at" = '2013-07-18 04:39:19.263111', "auth_token" = 'sjpGsqsqWyX9wnAkxqZs' WHERE "public"."cadenero_members"."id" = 518 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 519 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 519 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 519 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 519 +Completed 201 Created in 115ms (Views: 6.3ms | ActiveRecord: 3.7ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/519" for 127.0.0.1 at 2013-07-17 23:39:19 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"519"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 420 AND "public"."cadenero_users"."id" = 519 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 519 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 519 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 519 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 519 +Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 1.7ms) +  (3.8ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$AwGf0nIpQ.5QF/.s3UlsceN59NHPnARenj.PxQ5BvEajmcAhq.VCO"], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 520], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'AeD6ixxTwN4JK9KgWxqz' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 520, "created_at" = '2013-07-18 04:39:19.407357', "updated_at" = '2013-07-18 04:39:19.407357', "auth_token" = 'AeD6ixxTwN4JK9KgWxqz' WHERE "public"."cadenero_accounts"."id" = 421 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 421], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["user_id", 520]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oM1GnoSy5GjKCkYNjq5q' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 421, "user_id" = 520, "created_at" = '2013-07-18 04:39:19.412882', "updated_at" = '2013-07-18 04:39:19.412882', "auth_token" = 'oM1GnoSy5GjKCkYNjq5q' WHERE "public"."cadenero_members"."id" = 519 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test2" +  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:39:19 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$3eeufSAcvdFthXo7bpS9oOIjJBTZ8p6EKTVOwI1uaJfiQLnjJp9Ne"], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 421], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["user_id", 521]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JoM47i121nWD1zeapzQK' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 421, "user_id" = 521, "created_at" = '2013-07-18 04:39:19.562341', "updated_at" = '2013-07-18 04:39:19.562341', "auth_token" = 'JoM47i121nWD1zeapzQK' WHERE "public"."cadenero_members"."id" = 520 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 521 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 521 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 521 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 521 +Completed 201 Created in 112ms (Views: 5.6ms | ActiveRecord: 3.5ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/521" for 127.0.0.1 at 2013-07-17 23:39:19 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"521"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 421 AND "public"."cadenero_users"."id" = 521 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 521 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 521 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 521 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 521 +Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 1.8ms) + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 521], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'TpZmUmQp9gzpJy4vYnyH' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 521, "created_at" = '2013-07-18 04:39:19.593251', "updated_at" = '2013-07-18 04:39:19.593251', "auth_token" = 'TpZmUmQp9gzpJy4vYnyH' WHERE "public"."cadenero_accounts"."id" = 422 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 422], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["user_id", 521]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BQtnhWppBHpxqFpqFQw3' LIMIT 1 +  (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 422, "user_id" = 521, "created_at" = '2013-07-18 04:39:19.598989', "updated_at" = '2013-07-18 04:39:19.598989', "auth_token" = 'BQtnhWppBHpxqFpqFQw3' WHERE "public"."cadenero_members"."id" = 521 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test3" +  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.6ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:39:19 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$bcQj9bkyyjAGbu/OoK3xFec53ckqVROTat2MeU2.nf/zzXdKrWUt6"], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 422], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["user_id", 522]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1sojdHPDF7fcPKrVzz78' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 422, "user_id" = 522, "created_at" = '2013-07-18 04:39:19.748794', "updated_at" = '2013-07-18 04:39:19.748794', "auth_token" = '1sojdHPDF7fcPKrVzz78' WHERE "public"."cadenero_members"."id" = 522 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 522 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 522 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 522 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 522 +Completed 201 Created in 112ms (Views: 5.5ms | ActiveRecord: 3.5ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/522" for 127.0.0.1 at 2013-07-17 23:39:19 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"522"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 422 AND "public"."cadenero_users"."id" = 522 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 522 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 522 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 522 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 522 +Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.8ms) +Started GET "/v1/users/521" for 127.0.0.1 at 2013-07-17 23:39:19 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"521"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 421 AND "public"."cadenero_users"."id" = 521 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 521 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 521 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 521 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 521 +Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.7ms) +Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 23:39:19 -0500 +Processing by Cadenero::V1::Account::UsersController#index as HTML + Parameters: {"default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 421 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 521 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 521 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 521 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 521 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 520 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 520 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 520 +Completed 200 OK in 15ms (Views: 11.4ms | ActiveRecord: 2.7ms) +  (4.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$7oF42g1W1ohPHioz5Q0cjezAuhZ1yNh3MXGB/CBxdR/VxWF8uD6su"], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 523], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'MLUw1yyqtb2Cxab7JWQ6' LIMIT 1 +  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 523, "created_at" = '2013-07-18 04:39:19.938344', "updated_at" = '2013-07-18 04:39:19.938344', "auth_token" = 'MLUw1yyqtb2Cxab7JWQ6' WHERE "public"."cadenero_accounts"."id" = 423 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 423], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:19 UTC +00:00], ["user_id", 523]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gxRVmpySrELeew6P8xv4' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 423, "user_id" = 523, "created_at" = '2013-07-18 04:39:19.955439', "updated_at" = '2013-07-18 04:39:19.955439', "auth_token" = 'gxRVmpySrELeew6P8xv4' WHERE "public"."cadenero_members"."id" = 523 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test4" +  (9.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (5.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (7.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$i8NxKILmxKDHbspT/NbK5Oi7upE/IrdjR0yusy3Ymo2KuyuIxieUi"], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 423], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["user_id", 524]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cTqXtKZr7Uqq9STsXBhM' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 423, "user_id" = 524, "created_at" = '2013-07-18 04:39:20.128707', "updated_at" = '2013-07-18 04:39:20.128707', "auth_token" = 'cTqXtKZr7Uqq9STsXBhM' WHERE "public"."cadenero_members"."id" = 524 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 524 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 524 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 524 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 524 +Completed 201 Created in 113ms (Views: 5.8ms | ActiveRecord: 3.7ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/524" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"524"} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 423 AND "public"."cadenero_users"."id" = 524 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 524 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 524 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 524 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 524 +Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.9ms) + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 524 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 524 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 524 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 524 +Completed 201 Created in 9ms (Views: 5.6ms | ActiveRecord: 1.2ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 524 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (3.9ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$wZnDXXaqTNKfXsEkcjqCGuzPBknx3F32xvk4/hlBbO6f70gpGwv9."], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 525], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'sXXybdoQbstnyd3JjqoF' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 525, "created_at" = '2013-07-18 04:39:20.319882', "updated_at" = '2013-07-18 04:39:20.319882', "auth_token" = 'sXXybdoQbstnyd3JjqoF' WHERE "public"."cadenero_accounts"."id" = 424 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 424], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["user_id", 525]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '88sLfVKfgWCgrHppFzzD' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 424, "user_id" = 525, "created_at" = '2013-07-18 04:39:20.325598', "updated_at" = '2013-07-18 04:39:20.325598', "auth_token" = '88sLfVKfgWCgrHppFzzD' WHERE "public"."cadenero_members"."id" = 525 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test5" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (2.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 424 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 525 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 525 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 525 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 525 +Completed 201 Created in 109ms (Views: 5.5ms | ActiveRecord: 2.2ms) + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 525 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"525", "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 525 LIMIT 1 +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (4.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$6z4Ag5GVG.DJPuW0wQXjxe68AK1WiK5YeckJE64ogt8dQZbRQdmvO"], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 526], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'p7JcVzFAdtRpsNcs2Qm7' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 526, "created_at" = '2013-07-18 04:39:20.618909', "updated_at" = '2013-07-18 04:39:20.618909', "auth_token" = 'p7JcVzFAdtRpsNcs2Qm7' WHERE "public"."cadenero_accounts"."id" = 425 +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 425], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["user_id", 526]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4oAuGWfLfbzisZaFjYD5' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 425, "user_id" = 526, "created_at" = '2013-07-18 04:39:20.626254', "updated_at" = '2013-07-18 04:39:20.626254', "auth_token" = '4oAuGWfLfbzisZaFjYD5' WHERE "public"."cadenero_members"."id" = 526 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test6" +  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 425 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 526 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 526 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 526 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 526 +Completed 201 Created in 106ms (Views: 5.4ms | ActiveRecord: 2.1ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 526 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:20 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 526 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (2.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$wsC4VizHp1FiP/XvoiAlj.Odh9J2.0LT7XTdYasgEMmjiAVEQYMB."], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 527], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'JP3FowPwNfPszxnN9bDN' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 527, "created_at" = '2013-07-18 04:39:20.955240', "updated_at" = '2013-07-18 04:39:20.955240', "auth_token" = 'JP3FowPwNfPszxnN9bDN' WHERE "public"."cadenero_accounts"."id" = 426 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 426], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:20 UTC +00:00], ["user_id", 527]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'B2HgmMh1GoPvY5s3z238' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 426, "user_id" = 527, "created_at" = '2013-07-18 04:39:20.960743', "updated_at" = '2013-07-18 04:39:20.960743', "auth_token" = 'B2HgmMh1GoPvY5s3z238' WHERE "public"."cadenero_members"."id" = 527 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test7" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 426 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 527 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 527 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 527 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 527 +Completed 201 Created in 108ms (Views: 6.4ms | ActiveRecord: 2.3ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 527 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"527", "default"=>:json} + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 527 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$M2hEgRN2ve2Q/vzt6Dfyseljg/QPlpfLI.4Oz/ZpM.YFUViYF2MSG"], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 426], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["user_id", 528]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kjTsY9kUpoop1qNumxbX' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 426, "user_id" = 528, "created_at" = '2013-07-18 04:39:21.234802', "updated_at" = '2013-07-18 04:39:21.234802', "auth_token" = 'kjTsY9kUpoop1qNumxbX' WHERE "public"."cadenero_members"."id" = 528 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 528 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 528 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 528 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 528 +Completed 201 Created in 112ms (Views: 5.4ms | ActiveRecord: 3.5ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/528" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"528"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 426 AND "public"."cadenero_users"."id" = 528 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 528 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 528 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 528 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 528 +Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.8ms) + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 528 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 528 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 528 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 528 +Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (4.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$bFwDxH7Nr0EE.SJhQRJSiudcllDJkCMVZVUlimQyEUq2SQHmBebbS"], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 529], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'EGFWQxaiNbFUc8cucJW2' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 529, "created_at" = '2013-07-18 04:39:21.386226', "updated_at" = '2013-07-18 04:39:21.386226', "auth_token" = 'EGFWQxaiNbFUc8cucJW2' WHERE "public"."cadenero_accounts"."id" = 427 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 427], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["user_id", 529]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZeLypssv325pj2qFPi2s' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 427, "user_id" = 529, "created_at" = '2013-07-18 04:39:21.391605', "updated_at" = '2013-07-18 04:39:21.391605', "auth_token" = 'ZeLypssv325pj2qFPi2s' WHERE "public"."cadenero_members"."id" = 529 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test8" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 427 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (2.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$dUrCP3Hnaa.cc8rvIqTip.WNnfrEDHJM9ovsKmb/Vem2LNO16qE2S"], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 530], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00]] + Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '6tMJs51qc6hppVanH8fJ' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 530, "created_at" = '2013-07-18 04:39:21.558946', "updated_at" = '2013-07-18 04:39:21.558946', "auth_token" = '6tMJs51qc6hppVanH8fJ' WHERE "public"."cadenero_accounts"."id" = 428 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 428], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["user_id", 530]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'smLg6fyzJMBzJxYxH1nj' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 428, "user_id" = 530, "created_at" = '2013-07-18 04:39:21.566198', "updated_at" = '2013-07-18 04:39:21.566198', "auth_token" = 'smLg6fyzJMBzJxYxH1nj' WHERE "public"."cadenero_members"."id" = 530 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test9" +  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$xxXoLTGMVXeTh/eUjMiMduLNn2oUK9Ac5dGKgUXMGg4VSYcw8aCOy"], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 531], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '9Hii8Ryz2y9ky4yaYT36' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 531, "created_at" = '2013-07-18 04:39:21.710613', "updated_at" = '2013-07-18 04:39:21.710613', "auth_token" = '9Hii8Ryz2y9ky4yaYT36' WHERE "public"."cadenero_accounts"."id" = 429 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 429], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["user_id", 531]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WYNzoZadVYNcbJAZZMf9' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 429, "user_id" = 531, "created_at" = '2013-07-18 04:39:21.715728', "updated_at" = '2013-07-18 04:39:21.715728', "auth_token" = 'WYNzoZadVYNcbJAZZMf9' WHERE "public"."cadenero_members"."id" = 531 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 428 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (2.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$41f72y0tcnMzHLmVvJSA8euJWKdJRszvtW3cNwoQ6KBQt7Gk20cK2"], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 532], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'RGE1fTxed3mV5nczBbaB' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 532, "created_at" = '2013-07-18 04:39:21.841179', "updated_at" = '2013-07-18 04:39:21.841179', "auth_token" = 'RGE1fTxed3mV5nczBbaB' WHERE "public"."cadenero_accounts"."id" = 430 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 430], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:21 UTC +00:00], ["user_id", 532]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XpXBhvRsjusyqfDqysge' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 430, "user_id" = 532, "created_at" = '2013-07-18 04:39:21.846768', "updated_at" = '2013-07-18 04:39:21.846768', "auth_token" = 'XpXBhvRsjusyqfDqysge' WHERE "public"."cadenero_members"."id" = 532 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test11" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:21 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 430 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (3.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$u0ko4wdWeHQqINcqOuit.ODZCdbN1t0Dnt6p.KYBTJtK.YKl7GJBe"], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 533], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'SJyxspqf7ozhKGPcfYUt' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 533, "created_at" = '2013-07-18 04:39:22.020965', "updated_at" = '2013-07-18 04:39:22.020965', "auth_token" = 'SJyxspqf7ozhKGPcfYUt' WHERE "public"."cadenero_accounts"."id" = 431 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 431], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["user_id", 533]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Wq18zSYtjmyHthGCVf8N' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 431, "user_id" = 533, "created_at" = '2013-07-18 04:39:22.026359', "updated_at" = '2013-07-18 04:39:22.026359', "auth_token" = 'Wq18zSYtjmyHthGCVf8N' WHERE "public"."cadenero_members"."id" = 533 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test12" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:39:22 -0500 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (3.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.0ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$mddJo8yVWSjvmm34Clf/0.JE2e3QS9aAPTx/2VAXdwIQgTaitzAZC"], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 534], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'i7NzvnBuHd7PWfBEzbNT' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 534, "created_at" = '2013-07-18 04:39:22.217757', "updated_at" = '2013-07-18 04:39:22.217757', "auth_token" = 'i7NzvnBuHd7PWfBEzbNT' WHERE "public"."cadenero_accounts"."id" = 432 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 432], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["user_id", 534]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Z2A3QH2zpqjVwyGXF6Eq' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 432, "user_id" = 534, "created_at" = '2013-07-18 04:39:22.223281', "updated_at" = '2013-07-18 04:39:22.223281', "auth_token" = 'Z2A3QH2zpqjVwyGXF6Eq' WHERE "public"."cadenero_members"."id" = 534 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test13" +  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:22 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:39:22 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$51AMGW.lPeJK7B4i6K/JyuhARNf0.8MDnMkjcGauKb5/wTvrAEW.S"], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 432], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["user_id", 535]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ABwecKNZqHqQHKRm6bdk' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 432, "user_id" = 535, "created_at" = '2013-07-18 04:39:22.377699', "updated_at" = '2013-07-18 04:39:22.377699', "auth_token" = 'ABwecKNZqHqQHKRm6bdk' WHERE "public"."cadenero_members"."id" = 535 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 535 LIMIT 1 + Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 535 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 535 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 535 +Completed 201 Created in 115ms (Views: 6.8ms | ActiveRecord: 4.9ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/535" for 127.0.0.1 at 2013-07-17 23:39:22 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"535"} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 432 AND "public"."cadenero_users"."id" = 535 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 535 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 535 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 535 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 535 +Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 1.9ms) + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 534 +Started GET "/v1?auth_token[]=Z2A3QH2zpqjVwyGXF6Eq" for 127.0.0.1 at 2013-07-17 23:39:22 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["Z2A3QH2zpqjVwyGXF6Eq"], "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 432 AND "public"."cadenero_members"."auth_token" IN ('Z2A3QH2zpqjVwyGXF6Eq') LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 534 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 534 LIMIT 1 +Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.8ms) + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 535 +Started GET "/v1?auth_token[]=ABwecKNZqHqQHKRm6bdk" for 127.0.0.1 at 2013-07-17 23:39:22 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["ABwecKNZqHqQHKRm6bdk"], "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 432 AND "public"."cadenero_members"."auth_token" IN ('ABwecKNZqHqQHKRm6bdk') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 535 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 535 LIMIT 1 +Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.9ms) +  (6.0ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$BTL5mvAtAuCxJmzBkBaF5ego1bMHtDY1knRCMWptIfQyzTqDmllv."], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 + SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 536], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'aakEqqJT3pPCDCqqxjex' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 536, "created_at" = '2013-07-18 04:39:22.546098', "updated_at" = '2013-07-18 04:39:22.546098', "auth_token" = 'aakEqqJT3pPCDCqqxjex' WHERE "public"."cadenero_accounts"."id" = 433 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 433], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["user_id", 536]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jRTaVM9jxsiiq5KMEUcc' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 433, "user_id" = 536, "created_at" = '2013-07-18 04:39:22.552704', "updated_at" = '2013-07-18 04:39:22.552704', "auth_token" = 'jRTaVM9jxsiiq5KMEUcc' WHERE "public"."cadenero_members"."id" = 536 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test14" +  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.8ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$lP39YM19.cel9v9jToLy5OJEtrAX96D8OpHCMKAf/2rrFdyt2npVC"], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 537], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'NGq7CjHT5Zq83KJ95Px7' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 537, "created_at" = '2013-07-18 04:39:22.697820', "updated_at" = '2013-07-18 04:39:22.697820', "auth_token" = 'NGq7CjHT5Zq83KJ95Px7' WHERE "public"."cadenero_accounts"."id" = 434 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 434], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["user_id", 537]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gt8LKvxhQWWQVZYGBja8' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 434, "user_id" = 537, "created_at" = '2013-07-18 04:39:22.703729', "updated_at" = '2013-07-18 04:39:22.703729', "auth_token" = 'gt8LKvxhQWWQVZYGBja8' WHERE "public"."cadenero_members"."id" = 537 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test15" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:22 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 537 +Started GET "/v1?auth_token[]=gt8LKvxhQWWQVZYGBja8" for 127.0.0.1 at 2013-07-17 23:39:22 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["gt8LKvxhQWWQVZYGBja8"], "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 433 AND "public"."cadenero_members"."auth_token" IN ('gt8LKvxhQWWQVZYGBja8') LIMIT 1 +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms) +  (4.8ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$11mOkQbOVKZF37qUfbvtSOUL/r81puYvIylYcWdmd00SGL55UeLxq"], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 538], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'wzgU9y1ABpq8UB6pVEgp' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 538, "created_at" = '2013-07-18 04:39:22.925999', "updated_at" = '2013-07-18 04:39:22.925999', "auth_token" = 'wzgU9y1ABpq8UB6pVEgp' WHERE "public"."cadenero_accounts"."id" = 435 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 435], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:22 UTC +00:00], ["user_id", 538]] + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'M7hhHtfxfgv4jPzery4g' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 435, "user_id" = 538, "created_at" = '2013-07-18 04:39:22.931567', "updated_at" = '2013-07-18 04:39:22.931567', "auth_token" = 'M7hhHtfxfgv4jPzery4g' WHERE "public"."cadenero_members"."id" = 538 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test16" +  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:22 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 538 +Started GET "/v1?auth_token[]=M7hhHtfxfgv4jPzery4g" for 127.0.0.1 at 2013-07-17 23:39:22 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["M7hhHtfxfgv4jPzery4g"], "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test16') LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 435 AND "public"."cadenero_members"."auth_token" IN ('M7hhHtfxfgv4jPzery4g') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 538 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 538 LIMIT 1 +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 1.0ms) +  (3.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:23 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$IpfDIdsFeBZMFp1//gsT4ONHYwQ37Tvk5HWKOydyRH7xlNnnL0NNG"], ["updated_at", Thu, 18 Jul 2013 04:39:23 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:23 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 539], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 04:39:23 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ko4JXnxzH14wATwaGWyZ' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 539, "created_at" = '2013-07-18 04:39:23.104351', "updated_at" = '2013-07-18 04:39:23.104351', "auth_token" = 'ko4JXnxzH14wATwaGWyZ' WHERE "public"."cadenero_accounts"."id" = 436 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 436], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:23 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:23 UTC +00:00], ["user_id", 539]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'm5W312NHz9j1c1vezbss' LIMIT 1 +  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 436, "user_id" = 539, "created_at" = '2013-07-18 04:39:23.109890', "updated_at" = '2013-07-18 04:39:23.109890', "auth_token" = 'm5W312NHz9j1c1vezbss' WHERE "public"."cadenero_members"."id" = 539 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test17" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:39:23 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 539 +Started GET "/v1?auth_token[]=m5W312NHz9j1c1vezbss" for 127.0.0.1 at 2013-07-17 23:39:23 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["m5W312NHz9j1c1vezbss"], "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 436 AND "public"."cadenero_members"."auth_token" IN ('m5W312NHz9j1c1vezbss') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 539 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 539 LIMIT 1 +Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.9ms) +Started GET "/v1/users/539" for 127.0.0.1 at 2013-07-17 23:39:23 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"539"} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started GET "/v1/users/539?auth_token[]=m5W312NHz9j1c1vezbss" for 127.0.0.1 at 2013-07-17 23:39:23 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"auth_token"=>["m5W312NHz9j1c1vezbss"], "default"=>:json, "id"=>"539"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test17') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 436 AND "public"."cadenero_members"."auth_token" IN ('m5W312NHz9j1c1vezbss') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 539 LIMIT 1 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 436 AND "public"."cadenero_users"."id" = 539 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 539 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 539 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 539 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 539 +Completed 200 OK in 15ms (Views: 6.0ms | ActiveRecord: 2.3ms) +  (2.8ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Connecting to database specified by database.yml +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Migrating to CreateCadeneroV1Accounts (20130612061604) +Migrating to CreateCadeneroV1Users (20130612064652) +Migrating to CreateCadeneroV1Members (20130612073709) +Migrating to AddAuthTokenToCadeneroMembers (20130715174857) +  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (5.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (1.8ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$WCYmbyKsMhFe.qrZ/mKCm.hO88nWuiaiJfwixlW7vPAgFsKd08OJC"], ["updated_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00], ["name", "Test Account #18"], ["owner_id", 540], ["subdomain", "test18"], ["updated_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'A8c7jvGjBKRSGnGcDxLx' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #18', "subdomain" = 'test18', "owner_id" = 540, "created_at" = '2013-07-18 04:39:31.164527', "updated_at" = '2013-07-18 04:39:31.164527', "auth_token" = 'A8c7jvGjBKRSGnGcDxLx' WHERE "public"."cadenero_accounts"."id" = 437 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 437], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00], ["user_id", 540]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GSXMqWteSZQbPqCszmtV' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 437, "user_id" = 540, "created_at" = '2013-07-18 04:39:31.171211', "updated_at" = '2013-07-18 04:39:31.171211', "auth_token" = 'GSXMqWteSZQbPqCszmtV' WHERE "public"."cadenero_members"."id" = 540 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (2.0ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$b9TtlB46En3R7oJ3lg0i/eBOx3DdUEtZdo4RCFSxbRz0VwsU3usK."], ["updated_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$AJCv.Ss1Zblw9f3LcwDUXOcuAZU/fkcUECagSyywFzTzbWUW9PaGm"], ["updated_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00], ["name", "Root"], ["owner_id", 542], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zA9xypp4VtsxsWW2A19F' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 542, "created_at" = '2013-07-18 04:39:31.384811', "updated_at" = '2013-07-18 04:39:31.384811', "auth_token" = 'zA9xypp4VtsxsWW2A19F' WHERE "public"."cadenero_accounts"."id" = 438 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 438], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:31 UTC +00:00], ["user_id", 542]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'M4n32VBt11SBMyu75J6L' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 438, "user_id" = 542, "created_at" = '2013-07-18 04:39:31.390016', "updated_at" = '2013-07-18 04:39:31.390016', "auth_token" = 'M4n32VBt11SBMyu75J6L' WHERE "public"."cadenero_members"."id" = 541 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "www" +  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (3.2ms) SELECT version FROM "schema_migrations" +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (2.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (3.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (5.1ms) ROLLBACK +  (2.8ms) BEGIN +  (1.9ms) COMMIT +  (3.0ms) BEGIN +  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 +Completed 200 OK in 106ms (Views: 102.3ms | ActiveRecord: 3.5ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 +Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 1.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (3.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:39:52 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$MT7QTBMO4rrGxlwtYcv7quvu1gPC7sB5Yej4YSIcAinnMUrTLDave"], ["updated_at", Thu, 18 Jul 2013 04:39:52 UTC +00:00]] + SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:52 UTC +00:00], ["name", "Test Account"], ["owner_id", 543], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:39:52 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'vvsFMFwKc3XY3ijw6zup' LIMIT 1 +  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 543, "created_at" = '2013-07-18 04:39:52.834570', "updated_at" = '2013-07-18 04:39:52.834570', "auth_token" = 'vvsFMFwKc3XY3ijw6zup' WHERE "public"."cadenero_accounts"."id" = 439 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 439], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:39:52 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:39:52 UTC +00:00], ["user_id", 543]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uFkqR2gR2PAprA4VzhcH' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 439, "user_id" = 543, "created_at" = '2013-07-18 04:39:52.866560', "updated_at" = '2013-07-18 04:39:52.866560', "auth_token" = 'uFkqR2gR2PAprA4VzhcH' WHERE "public"."cadenero_members"."id" = 542 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) CREATE SCHEMA "test" +  (8.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 439 LIMIT 1 +  (4.0ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.4ms) BEGIN +Connecting to database specified by database.yml +  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Migrating to CreateCadeneroV1Accounts (20130612061604) +Migrating to CreateCadeneroV1Users (20130612064652) +Migrating to CreateCadeneroV1Members (20130612073709) +Migrating to AddAuthTokenToCadeneroMembers (20130715174857) +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +  (0.1ms) ROLLBACK +  (0.3ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (0.3ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$KjguN98OjS8JfPwTTaLd3OwXh2YaAAn4skQnLVQsWXHQQOxSiafkC"], ["updated_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 544], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'a1GpsJhtkyfRY3ipUqYX' LIMIT 1 +  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 544, "created_at" = '2013-07-18 04:40:01.752382', "updated_at" = '2013-07-18 04:40:01.752382', "auth_token" = 'a1GpsJhtkyfRY3ipUqYX' WHERE "public"."cadenero_accounts"."id" = 440 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 440], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00], ["user_id", 544]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dWyWCsFQqh5s7bpd6KxM' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 440, "user_id" = 544, "created_at" = '2013-07-18 04:40:01.761271', "updated_at" = '2013-07-18 04:40:01.761271', "auth_token" = 'dWyWCsFQqh5s7bpd6KxM' WHERE "public"."cadenero_members"."id" = 543 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$8/XJJggEkf22t9TzXQiJaeyyHJ3CQDV4aK9QnIxVEdGS34EiDK2Oi"], ["updated_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$pN/QuUiya3EvhyYlGmWzY./tdgtjO4rs9q/rjkmXDp9UndO1pUvFy"], ["updated_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00], ["name", "Root"], ["owner_id", 546], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'iNBrkrTfCbwyEYRNWjSS' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 546, "created_at" = '2013-07-18 04:40:01.966331', "updated_at" = '2013-07-18 04:40:01.966331', "auth_token" = 'iNBrkrTfCbwyEYRNWjSS' WHERE "public"."cadenero_accounts"."id" = 441 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 441], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:01 UTC +00:00], ["user_id", 546]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hEPqCahobr47XneiqKw3' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 441, "user_id" = 546, "created_at" = '2013-07-18 04:40:01.972797', "updated_at" = '2013-07-18 04:40:01.972797', "auth_token" = 'hEPqCahobr47XneiqKw3' WHERE "public"."cadenero_members"."id" = 544 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "www" +  (4.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (4.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.0ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$urjnlWx7Pb6kUxeMkYjmRuMOPT3QafAWxmvB0UkE803DXlMZPWwem"], ["updated_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 547], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'vi3L9zmapfxXxqChPQU3' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 547, "created_at" = '2013-07-18 04:40:02.239868', "updated_at" = '2013-07-18 04:40:02.239868', "auth_token" = 'vi3L9zmapfxXxqChPQU3' WHERE "public"."cadenero_accounts"."id" = 442 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 442], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["user_id", 547]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yCrNaqps7iGGL8rL2gKx' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 442, "user_id" = 547, "created_at" = '2013-07-18 04:40:02.246908', "updated_at" = '2013-07-18 04:40:02.246908', "auth_token" = 'yCrNaqps7iGGL8rL2gKx' WHERE "public"."cadenero_members"."id" = 545 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test2" +  (5.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (2.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (3.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (9.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:02 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 + Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 442 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 547 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 547 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 547 + Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 547 +Completed 201 Created in 120ms (Views: 7.8ms | ActiveRecord: 4.4ms) + Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 547 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:02 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"547", "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 547 LIMIT 1 +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:02 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (2.9ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$Mo5cei6P2BP0H2Cziepyy.919YL1U7xUK0Y90QBwtGAqotV1CBRBS"], ["updated_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 548], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '7o5PMHv4cA3gqgyeD4tE' LIMIT 1 +  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 548, "created_at" = '2013-07-18 04:40:02.604852', "updated_at" = '2013-07-18 04:40:02.604852', "auth_token" = '7o5PMHv4cA3gqgyeD4tE' WHERE "public"."cadenero_accounts"."id" = 443 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 443], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["user_id", 548]] + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xDuMjzm6ytpsQQdFAL8T' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 443, "user_id" = 548, "created_at" = '2013-07-18 04:40:02.612486', "updated_at" = '2013-07-18 04:40:02.612486', "auth_token" = 'xDuMjzm6ytpsQQdFAL8T' WHERE "public"."cadenero_members"."id" = 546 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test3" +  (6.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (2.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (5.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:02 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 + Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 443 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 548 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 548 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 548 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 548 +Completed 201 Created in 117ms (Views: 5.4ms | ActiveRecord: 3.3ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 548 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:02 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"548", "default"=>:json} + Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 548 LIMIT 1 +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 1.0ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:02 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:40:02 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 +  (0.7ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$k6zqWIG.B01NGLu58A91C.r1748/DzCJd30tvrZ/YsI3mpYgIo/4m"], ["updated_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00]] + SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 443], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:02 UTC +00:00], ["user_id", 549]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uj6r6TUDrFY6NLTrHHLq' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 443, "user_id" = 549, "created_at" = '2013-07-18 04:40:02.925459', "updated_at" = '2013-07-18 04:40:02.925459', "auth_token" = 'uj6r6TUDrFY6NLTrHHLq' WHERE "public"."cadenero_members"."id" = 547 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 549 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 549 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 549 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 549 +Completed 201 Created in 121ms (Views: 7.5ms | ActiveRecord: 5.0ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/549" for 127.0.0.1 at 2013-07-17 23:40:02 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"549"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + Cadenero::User Load (2.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 443 AND "public"."cadenero_users"."id" = 549 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 549 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 549 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 549 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 549 +Completed 200 OK in 13ms (Views: 5.9ms | ActiveRecord: 3.9ms) + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:02 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 549 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 549 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 549 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 549 +Completed 201 Created in 8ms (Views: 5.3ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (5.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$eDEWpAR34AFJDxx4MsNdDeAHGLEEe4pIj.ecfIKkbOf54PET6fyC."], ["updated_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 550], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'voqjDtcJcV1XrN6uSwMm' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 550, "created_at" = '2013-07-18 04:40:03.089214', "updated_at" = '2013-07-18 04:40:03.089214', "auth_token" = 'voqjDtcJcV1XrN6uSwMm' WHERE "public"."cadenero_accounts"."id" = 444 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 444], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["user_id", 550]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'XDY4A6xsBxzheddsBM2i' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 444, "user_id" = 550, "created_at" = '2013-07-18 04:40:03.094698', "updated_at" = '2013-07-18 04:40:03.094698', "auth_token" = 'XDY4A6xsBxzheddsBM2i' WHERE "public"."cadenero_members"."id" = 548 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test4" +  (4.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.4ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:03 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:40:03 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$X1TI4vgsa0ld4nB/2q977./N.SbeCQS3PVpPdmpwIRFZCf5Jf/1v."], ["updated_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 444], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["user_id", 551]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zq1ctuUMz9ALt2G4wE3c' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 444, "user_id" = 551, "created_at" = '2013-07-18 04:40:03.249804', "updated_at" = '2013-07-18 04:40:03.249804', "auth_token" = 'zq1ctuUMz9ALt2G4wE3c' WHERE "public"."cadenero_members"."id" = 549 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 551 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 551 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 551 + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 551 +Completed 201 Created in 117ms (Views: 5.9ms | ActiveRecord: 4.1ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/551" for 127.0.0.1 at 2013-07-17 23:40:03 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"551"} + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 444 AND "public"."cadenero_users"."id" = 551 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 551 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 551 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 551 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 551 +Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 1.6ms) + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:03 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 551 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 551 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 551 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 551 +Completed 201 Created in 8ms (Views: 5.0ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:03 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 551 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (5.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$RV5DvFnbgjZ63MJ3kBIUgOXVfIu//TBHvAag2S5TrBSaZy3cLEeYW"], ["updated_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + SQL (1.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 552], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00]] + Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'DJK4qvn9ksye4GWQybWs' LIMIT 1 +  (1.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 552, "created_at" = '2013-07-18 04:40:03.565292', "updated_at" = '2013-07-18 04:40:03.565292', "auth_token" = 'DJK4qvn9ksye4GWQybWs' WHERE "public"."cadenero_accounts"."id" = 445 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (7.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 445], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:03 UTC +00:00], ["user_id", 552]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fsCT2BwFFxkTZ7rsqCnJ' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 445, "user_id" = 552, "created_at" = '2013-07-18 04:40:03.575726', "updated_at" = '2013-07-18 04:40:03.575726', "auth_token" = 'fsCT2BwFFxkTZ7rsqCnJ' WHERE "public"."cadenero_members"."id" = 550 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test5" +  (11.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (12.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (9.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (7.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (8.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (10.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:03 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:03 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 445 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 552 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 552 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 552 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 552 +Completed 201 Created in 182ms (Views: 5.9ms | ActiveRecord: 5.4ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 552 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:03 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 552 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (15.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$OSbKsyICPC1SmEGAuKW/H.qctX7.TZGjKP77AbtI58RI/GMcqYE.i"], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 553], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '5pr5HjLnLxpYMEzifNei' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 553, "created_at" = '2013-07-18 04:40:04.124435', "updated_at" = '2013-07-18 04:40:04.124435', "auth_token" = '5pr5HjLnLxpYMEzifNei' WHERE "public"."cadenero_accounts"."id" = 446 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 446], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["user_id", 553]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QGmMF7uEw6dTW2mQvyGE' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 446, "user_id" = 553, "created_at" = '2013-07-18 04:40:04.130277', "updated_at" = '2013-07-18 04:40:04.130277', "auth_token" = 'QGmMF7uEw6dTW2mQvyGE' WHERE "public"."cadenero_members"."id" = 551 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test6" +  (7.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (3.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (4.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (10.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$f/J/RyGbLs7NtYz76U6ifO79T9cMwJvkebIKBVCJifYH3zxYoFy2G"], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (3.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 554], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00]] + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'dY1nVsEUN6ADShMJQ9ej' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 554, "created_at" = '2013-07-18 04:40:04.366398', "updated_at" = '2013-07-18 04:40:04.366398', "auth_token" = 'dY1nVsEUN6ADShMJQ9ej' WHERE "public"."cadenero_accounts"."id" = 447 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 447], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["user_id", 554]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GGsXAx5FD3xiWn4GyzpX' LIMIT 1 +  (4.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 447, "user_id" = 554, "created_at" = '2013-07-18 04:40:04.376409', "updated_at" = '2013-07-18 04:40:04.376409', "auth_token" = 'GGsXAx5FD3xiWn4GyzpX' WHERE "public"."cadenero_members"."id" = 552 +  (2.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:04 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:04 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 446 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 9ms (Views: 0.4ms | ActiveRecord: 2.8ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (3.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (3.3ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$m9nfK9Kvji2b3Pug0fi0JOPptHbqJUskK5Ff9uKGeiEDq2x5m2MUW"], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 555], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'hvCUtpuxFDXxqPnq78Pu' LIMIT 1 +  (2.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 555, "created_at" = '2013-07-18 04:40:04.606155', "updated_at" = '2013-07-18 04:40:04.606155', "auth_token" = 'hvCUtpuxFDXxqPnq78Pu' WHERE "public"."cadenero_accounts"."id" = 448 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 448], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["user_id", 555]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'u617wyQ4kuHpn2oBWiA3' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 448, "user_id" = 555, "created_at" = '2013-07-18 04:40:04.618725', "updated_at" = '2013-07-18 04:40:04.618725', "auth_token" = 'u617wyQ4kuHpn2oBWiA3' WHERE "public"."cadenero_members"."id" = 553 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test8" +  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (7.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (11.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (5.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:04 -0500 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (6.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) COMMIT +  (8.7ms) BEGIN +  (1.0ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$EmXPER5Qp2EgRI1cyBEmue8//t0NAYHKj5fqS/lZsWzMssxt7s00G"], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 556], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '2dRyyqrAXBwJkRz2eKfz' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 556, "created_at" = '2013-07-18 04:40:04.848669', "updated_at" = '2013-07-18 04:40:04.848669', "auth_token" = '2dRyyqrAXBwJkRz2eKfz' WHERE "public"."cadenero_accounts"."id" = 449 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 449], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:04 UTC +00:00], ["user_id", 556]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oHDUdQqjEjCtEostahtG' LIMIT 1 +  (1.8ms) UPDATE "public"."cadenero_members" SET "account_id" = 449, "user_id" = 556, "created_at" = '2013-07-18 04:40:04.854232', "updated_at" = '2013-07-18 04:40:04.854232', "auth_token" = 'oHDUdQqjEjCtEostahtG' WHERE "public"."cadenero_members"."id" = 554 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test9" +  (11.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (11.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (12.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (5.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (7.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (5.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.6ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:04 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:04 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 + Cadenero::User Load (1.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 449 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 2.1ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (2.9ms) ROLLBACK +  (0.8ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (7.4ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$gcl7IVsPtNSpvArRDeg28OEjismuEWM72hIzQ.8oDUpLlsGFdn.DK"], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 557], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'PbhhotUFDPmu5R4xYzwy' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 557, "created_at" = '2013-07-18 04:40:05.113264', "updated_at" = '2013-07-18 04:40:05.113264', "auth_token" = 'PbhhotUFDPmu5R4xYzwy' WHERE "public"."cadenero_accounts"."id" = 450 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 450], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["user_id", 557]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4xARV5Aispnp9QQdC1V3' LIMIT 1 +  (3.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 450, "user_id" = 557, "created_at" = '2013-07-18 04:40:05.118906', "updated_at" = '2013-07-18 04:40:05.118906', "auth_token" = '4xARV5Aispnp9QQdC1V3' WHERE "public"."cadenero_members"."id" = 555 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test10" +  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (6.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (6.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (3.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (6.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:05 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:40:05 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 + Cadenero::User Load (5.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 450 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 9ms (Views: 0.4ms | ActiveRecord: 5.5ms) + Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (4.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$K1bLBuKkCiafp.Zk7mwqFehn69En519vvCNW/7cXgU7n3e2rix6DO"], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 558], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Vmwje6pxnRLAgA8fjsyV' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 558, "created_at" = '2013-07-18 04:40:05.380308', "updated_at" = '2013-07-18 04:40:05.380308', "auth_token" = 'Vmwje6pxnRLAgA8fjsyV' WHERE "public"."cadenero_accounts"."id" = 451 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 451], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["user_id", 558]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YDTY7ZzANyNBNsyvzyzF' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 451, "user_id" = 558, "created_at" = '2013-07-18 04:40:05.385644', "updated_at" = '2013-07-18 04:40:05.385644', "auth_token" = 'YDTY7ZzANyNBNsyvzyzF' WHERE "public"."cadenero_members"."id" = 556 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test11" +  (11.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (4.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (1.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$itq3y9kphNxkydG40u6eY.OZJettXOcJNB24Pzf2ch9vHGJeBxfxW"], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 559], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'hCqFyiHpZzuwjWtHNZyX' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 559, "created_at" = '2013-07-18 04:40:05.603200', "updated_at" = '2013-07-18 04:40:05.603200', "auth_token" = 'hCqFyiHpZzuwjWtHNZyX' WHERE "public"."cadenero_accounts"."id" = 452 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 452], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["user_id", 559]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'R8pV9vpX16xsQmjUcwzp' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 452, "user_id" = 559, "created_at" = '2013-07-18 04:40:05.608466', "updated_at" = '2013-07-18 04:40:05.608466', "auth_token" = 'R8pV9vpX16xsQmjUcwzp' WHERE "public"."cadenero_members"."id" = 557 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test12" +  (13.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (9.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (5.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:05 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (2.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 559 +Started GET "/v1?auth_token[]=R8pV9vpX16xsQmjUcwzp" for 127.0.0.1 at 2013-07-17 23:40:05 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["R8pV9vpX16xsQmjUcwzp"], "default"=>:json} + Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 451 AND "public"."cadenero_members"."auth_token" IN ('R8pV9vpX16xsQmjUcwzp') LIMIT 1 +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.9ms) +  (7.9ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (6.4ms) SAVEPOINT active_record_1 + SQL (3.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$tqeJV7zug8uvG7qa2gcqh.m10QlvlB5t/PgJrOFXj1XsXYvFbNH8m"], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (2.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 560], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'rAqFsAtsipxRCCbBpj1q' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 560, "created_at" = '2013-07-18 04:40:05.864321', "updated_at" = '2013-07-18 04:40:05.864321', "auth_token" = 'rAqFsAtsipxRCCbBpj1q' WHERE "public"."cadenero_accounts"."id" = 453 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (3.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 453], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:05 UTC +00:00], ["user_id", 560]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dwTpfk4A4izVDK6Rwi9E' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 453, "user_id" = 560, "created_at" = '2013-07-18 04:40:05.869941', "updated_at" = '2013-07-18 04:40:05.869941', "auth_token" = 'dwTpfk4A4izVDK6Rwi9E' WHERE "public"."cadenero_members"."id" = 558 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test13" +  (9.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (9.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (2.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (2.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:05 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (3.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 560 +Started GET "/v1?auth_token[]=dwTpfk4A4izVDK6Rwi9E" for 127.0.0.1 at 2013-07-17 23:40:05 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["dwTpfk4A4izVDK6Rwi9E"], "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 + Cadenero::Member Load (3.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 453 AND "public"."cadenero_members"."auth_token" IN ('dwTpfk4A4izVDK6Rwi9E') LIMIT 1 + Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 560 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 560 LIMIT 1 +Completed 200 OK in 12ms (Views: 0.2ms | ActiveRecord: 6.1ms) +Started GET "/v1/users/560" for 127.0.0.1 at 2013-07-17 23:40:05 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"560"} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started GET "/v1/users/560?auth_token[]=dwTpfk4A4izVDK6Rwi9E" for 127.0.0.1 at 2013-07-17 23:40:05 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"auth_token"=>["dwTpfk4A4izVDK6Rwi9E"], "default"=>:json, "id"=>"560"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 453 AND "public"."cadenero_members"."auth_token" IN ('dwTpfk4A4izVDK6Rwi9E') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 560 LIMIT 1 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + Cadenero::User Load (7.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 453 AND "public"."cadenero_users"."id" = 560 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 560 LIMIT 1 + Cadenero::Member Load (3.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 560 + Cadenero::V1::Account Load (4.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 560 + Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 560 +Completed 200 OK in 70ms (Views: 8.3ms | ActiveRecord: 16.8ms) +  (4.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) COMMIT +  (0.1ms) BEGIN +  (5.8ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$.oWg4pbXfo.87cZppi2Ne.xZgVlVzMhyNVRL/N0viSq8bvyfRZwYe"], ["updated_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 561], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'hHxXdzRkrucxKr7K2GwD' LIMIT 1 +  (1.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 561, "created_at" = '2013-07-18 04:40:06.213101', "updated_at" = '2013-07-18 04:40:06.213101', "auth_token" = 'hHxXdzRkrucxKr7K2GwD' WHERE "public"."cadenero_accounts"."id" = 454 +  (2.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 454], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["user_id", 561]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zU85h5K2SG8hPkWu7kHh' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 454, "user_id" = 561, "created_at" = '2013-07-18 04:40:06.222967', "updated_at" = '2013-07-18 04:40:06.222967', "auth_token" = 'zU85h5K2SG8hPkWu7kHh' WHERE "public"."cadenero_members"."id" = 559 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test14" +  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (2.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (6.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (5.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (10.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.1ms) SELECT version FROM "schema_migrations" +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:06 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:40:06 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (12.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$9WTBtRlD4W.YeRRbIu6R/.iFwMiQGl1CeqDjXnzB/aocS20RubUSS"], ["updated_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00]] + SQL (10.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 454], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["user_id", 562]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'aYuykNbwu1QuJeq2z5AX' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 454, "user_id" = 562, "created_at" = '2013-07-18 04:40:06.461784', "updated_at" = '2013-07-18 04:40:06.461784', "auth_token" = 'aYuykNbwu1QuJeq2z5AX' WHERE "public"."cadenero_members"."id" = 560 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 562 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 562 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 562 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 562 +Completed 201 Created in 185ms (Views: 7.2ms | ActiveRecord: 27.9ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/562" for 127.0.0.1 at 2013-07-17 23:40:06 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"562"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 454 AND "public"."cadenero_users"."id" = 562 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 562 LIMIT 1 + Cadenero::Member Load (6.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 562 + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 562 + Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 562 +Completed 200 OK in 20ms (Views: 7.0ms | ActiveRecord: 9.3ms) + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 561 +Started GET "/v1?auth_token[]=zU85h5K2SG8hPkWu7kHh" for 127.0.0.1 at 2013-07-17 23:40:06 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["zU85h5K2SG8hPkWu7kHh"], "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 + Cadenero::Member Load (5.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 454 AND "public"."cadenero_members"."auth_token" IN ('zU85h5K2SG8hPkWu7kHh') LIMIT 1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 561 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 561 LIMIT 1 +Completed 200 OK in 14ms (Views: 0.3ms | ActiveRecord: 6.6ms) + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 562 +Started GET "/v1?auth_token[]=aYuykNbwu1QuJeq2z5AX" for 127.0.0.1 at 2013-07-17 23:40:06 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["aYuykNbwu1QuJeq2z5AX"], "default"=>:json} + Cadenero::V1::Account Load (5.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test14') LIMIT 1 + Cadenero::Member Load (2.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 454 AND "public"."cadenero_members"."auth_token" IN ('aYuykNbwu1QuJeq2z5AX') LIMIT 1 + Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 562 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 562 LIMIT 1 +Completed 200 OK in 18ms (Views: 0.2ms | ActiveRecord: 9.7ms) +  (7.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (2.0ms) SAVEPOINT active_record_1 + SQL (8.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$TMUNSgcfRZIVV9xce8Vzz.P8yiPZbf/T0lE72YovzipZnznqsT5UO"], ["updated_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00]] +  (7.8ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 563], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00]] + Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'XprStVhwMfnkHx3AGn2U' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 563, "created_at" = '2013-07-18 04:40:06.733626', "updated_at" = '2013-07-18 04:40:06.733626', "auth_token" = 'XprStVhwMfnkHx3AGn2U' WHERE "public"."cadenero_accounts"."id" = 455 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 455], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:06 UTC +00:00], ["user_id", 563]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'h2VhiT3eCiE6QGSwpuze' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 455, "user_id" = 563, "created_at" = '2013-07-18 04:40:06.742410', "updated_at" = '2013-07-18 04:40:06.742410', "auth_token" = 'h2VhiT3eCiE6QGSwpuze' WHERE "public"."cadenero_members"."id" = 561 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test15" +  (14.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (8.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (2.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (6.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:40:06 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 563 +Started GET "/v1?auth_token[]=h2VhiT3eCiE6QGSwpuze" for 127.0.0.1 at 2013-07-17 23:40:06 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["h2VhiT3eCiE6QGSwpuze"], "default"=>:json} + Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 + Cadenero::Member Load (10.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 455 AND "public"."cadenero_members"."auth_token" IN ('h2VhiT3eCiE6QGSwpuze') LIMIT 1 + Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 563 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 563 LIMIT 1 +Completed 200 OK in 19ms (Views: 0.2ms | ActiveRecord: 13.1ms) +  (2.8ms) ROLLBACK +  (0.3ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (2.6ms) SAVEPOINT active_record_1 + SQL (4.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00], ["user_id", 101]] + Cadenero::Member Load (6.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BqNsVNuohwwy3VrS4seX' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 04:40:07.084637', "updated_at" = '2013-07-18 04:40:07.084637', "auth_token" = 'BqNsVNuohwwy3VrS4seX' WHERE "public"."cadenero_members"."id" = 562 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:40:07 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$chw54IhclKe/wqlxGSCwh.65ViKjM7O8vQ/xyaaoBA42yKO8/sX0W"], ["updated_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00]] + SQL (1.2ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00], ["name", "Testy"], ["owner_id", 564], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '2UokqJVtggvx2wEsdEFh' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 564, "created_at" = '2013-07-18 04:40:07.244300', "updated_at" = '2013-07-18 04:40:07.244300', "auth_token" = '2UokqJVtggvx2wEsdEFh' WHERE "public"."cadenero_accounts"."id" = 456 +  (0.9ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 456], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00], ["user_id", 564]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MD9UEzY2pzpfucfYBwN9' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 456, "user_id" = 564, "created_at" = '2013-07-18 04:40:07.252307', "updated_at" = '2013-07-18 04:40:07.252307', "auth_token" = 'MD9UEzY2pzpfucfYBwN9' WHERE "public"."cadenero_members"."id" = 563 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test" +  (10.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (7.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (10.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (7.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (9.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (7.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (16.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (10.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 456) LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 564 LIMIT 1 + Cadenero::User Load (5.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 456 +Completed 201 Created in 453ms (Views: 166.0ms | ActiveRecord: 125.4ms) + Cadenero::V1::Account Load (4.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (3.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.9ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (2.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$tVDiN1XyxuvB7YtIgRrJT.DPuJhKqZvemSQHx0delJ6lSom3jt9i2"], ["updated_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00], ["name", "Testy"], ["owner_id", 565], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:40:07 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '6naw5sfM8yHyqYAMiTbF' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 565, "created_at" = '2013-07-18 04:40:07.707308', "updated_at" = '2013-07-18 04:40:07.707308', "auth_token" = '6naw5sfM8yHyqYAMiTbF' WHERE "public"."cadenero_accounts"."id" = 457 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:40:07 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (1.0ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (20.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (6.8ms) ROLLBACK TO SAVEPOINT active_record_1 + CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 195ms (Views: 0.3ms | ActiveRecord: 27.9ms) + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (1.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} + Cadenero::User Load (13.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1001 +Completed 201 Created in 19ms (Views: 4.7ms | ActiveRecord: 13.0ms) +  (0.1ms) ROLLBACK +  (0.3ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account"}} +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (11.6ms) SAVEPOINT active_record_1 + SQL (5.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$30xdjKQJXeSU1UkwZSTRreCngIOAI4xgr0MXvKa6LAB/VW/rnow/2"], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00]] +  (1.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 566], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'FryqUSrUKVuj1nDTgzmn' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 566, "created_at" = '2013-07-18 04:40:08.133223', "updated_at" = '2013-07-18 04:40:08.133223', "auth_token" = 'FryqUSrUKVuj1nDTgzmn' WHERE "public"."cadenero_accounts"."id" = 458 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 458], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["user_id", 566]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xZ779uC7zLHa6B6JLxcQ' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 458, "user_id" = 566, "created_at" = '2013-07-18 04:40:08.138881', "updated_at" = '2013-07-18 04:40:08.138881', "auth_token" = 'xZ779uC7zLHa6B6JLxcQ' WHERE "public"."cadenero_members"."id" = 564 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test16" +  (7.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (8.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (11.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (6.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (3.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (9.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.4ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (4.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:40:08 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (7.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$CicRgmK7NiyMdq/EtTCVzeEUnmCRlV3O46ZkmUTOzABYiFBr3gJ8K"], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 458], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["user_id", 567]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mHmTwSZFwz8vuxqLyjxJ' LIMIT 1 +  (8.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 458, "user_id" = 567, "created_at" = '2013-07-18 04:40:08.373693', "updated_at" = '2013-07-18 04:40:08.373693', "auth_token" = 'mHmTwSZFwz8vuxqLyjxJ' WHERE "public"."cadenero_members"."id" = 565 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 567 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 567 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 567 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 567 +Completed 201 Created in 154ms (Views: 20.4ms | ActiveRecord: 19.1ms) + Cadenero::V1::Account Load (6.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/567" for 127.0.0.1 at 2013-07-17 23:40:08 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"567"} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 + Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 458 AND "public"."cadenero_users"."id" = 567 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 567 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 567 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 567 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 567 +Completed 200 OK in 29ms (Views: 6.0ms | ActiveRecord: 2.4ms) +  (9.9ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$NJ2A1MPNC3aOYK4.Vr6Jj.SpuyzQ8t3WD5wpSUUuEcoCLMTojg3Le"], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (11.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 568], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'dniico4dDko3gQXz4VNa' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 568, "created_at" = '2013-07-18 04:40:08.580568', "updated_at" = '2013-07-18 04:40:08.580568', "auth_token" = 'dniico4dDko3gQXz4VNa' WHERE "public"."cadenero_accounts"."id" = 459 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 459], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["user_id", 568]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ef1fxpEQfaeHK8PLZSGY' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 459, "user_id" = 568, "created_at" = '2013-07-18 04:40:08.586317', "updated_at" = '2013-07-18 04:40:08.586317', "auth_token" = 'ef1fxpEQfaeHK8PLZSGY' WHERE "public"."cadenero_members"."id" = 566 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) CREATE SCHEMA "test17" +  (4.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (6.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (7.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (7.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (6.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (7.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (9.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (25.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:40:08 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$DtkC7VzE61KCR1VcLdZ3wuAByrBr.HxQrGil0okMPvNXH/TA9eAou"], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 459], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["user_id", 569]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jE8Dzf1zbH2qohTqqsd8' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 459, "user_id" = 569, "created_at" = '2013-07-18 04:40:08.865482', "updated_at" = '2013-07-18 04:40:08.865482', "auth_token" = 'jE8Dzf1zbH2qohTqqsd8' WHERE "public"."cadenero_members"."id" = 567 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 569 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 569 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 569 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 569 +Completed 201 Created in 146ms (Views: 5.8ms | ActiveRecord: 3.4ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/569" for 127.0.0.1 at 2013-07-17 23:40:08 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"569"} + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 459 AND "public"."cadenero_users"."id" = 569 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 569 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 569 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 569 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 569 +Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.5ms) + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["name", "Test Account #18"], ["owner_id", 569], ["subdomain", "test18"], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '8UpDSUDHcGmjXrpf3YxP' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #18', "subdomain" = 'test18', "owner_id" = 569, "created_at" = '2013-07-18 04:40:08.895611', "updated_at" = '2013-07-18 04:40:08.895611', "auth_token" = '8UpDSUDHcGmjXrpf3YxP' WHERE "public"."cadenero_accounts"."id" = 460 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 460], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:08 UTC +00:00], ["user_id", 569]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'So83fBs73sihbxY32fVh' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 460, "user_id" = 569, "created_at" = '2013-07-18 04:40:08.901334', "updated_at" = '2013-07-18 04:40:08.901334', "auth_token" = 'So83fBs73sihbxY32fVh' WHERE "public"."cadenero_members"."id" = 568 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test18" +  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (2.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (5.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (16.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (3.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (6.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:40:09 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:40:09 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$YebseVudRIn9OqV8fPi7tuKZMVgIOak7FVXEiW81/w8PRokyckbr2"], ["updated_at", Thu, 18 Jul 2013 04:40:09 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 460], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:40:09 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:40:09 UTC +00:00], ["user_id", 570]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Yemjjap7zpsCAfRNxWBb' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 460, "user_id" = 570, "created_at" = '2013-07-18 04:40:09.149446', "updated_at" = '2013-07-18 04:40:09.149446', "auth_token" = 'Yemjjap7zpsCAfRNxWBb' WHERE "public"."cadenero_members"."id" = 569 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 570 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 570 + Cadenero::V1::Account Load (3.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 570 + Cadenero::V1::Account Load (5.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 570 +Completed 201 Created in 154ms (Views: 6.5ms | ActiveRecord: 14.4ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/570" for 127.0.0.1 at 2013-07-17 23:40:09 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"570"} + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 + Cadenero::User Load (2.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 460 AND "public"."cadenero_users"."id" = 570 LIMIT 1 + Cadenero::User Load (8.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 570 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 570 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 570 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 570 +Completed 200 OK in 68ms (Views: 7.9ms | ActiveRecord: 11.4ms) +Started GET "/v1/users/569" for 127.0.0.1 at 2013-07-17 23:40:09 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"569"} + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 459 AND "public"."cadenero_users"."id" = 569 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 569 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 569 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 569 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 569 +Completed 200 OK in 12ms (Views: 6.2ms | ActiveRecord: 2.2ms) +Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 23:40:09 -0500 +Processing by Cadenero::V1::Account::UsersController#index as HTML + Parameters: {"default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 459 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 569 LIMIT 1 + Cadenero::Member Load (1.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 569 + Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 569 + Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 569 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 568 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 568 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 568 +Completed 200 OK in 21ms (Views: 13.7ms | ActiveRecord: 6.0ms) +  (10.5ms) ROLLBACK +Connecting to database specified by database.yml +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (0.2ms) SAVEPOINT active_record_1 + SQL (10.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:22 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$.Oj5FooTUQei/QERgNndK.zjKhLU6ERZwCOLAs1zGL85trmqV6M3O"], ["updated_at", Thu, 18 Jul 2013 04:59:22 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + SQL (22.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:22 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 571], ["subdomain", "test1"], ["updated_at", Thu, 18 Jul 2013 04:59:22 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'HvyexzpqGNyUmfQMsNUR' LIMIT 1 +  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 571, "created_at" = '2013-07-18 04:59:22.918690', "updated_at" = '2013-07-18 04:59:22.918690', "auth_token" = 'HvyexzpqGNyUmfQMsNUR' WHERE "public"."cadenero_accounts"."id" = 461 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 461], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:23 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:23 UTC +00:00], ["user_id", 571]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tDpvyRn7L5wsWnxVVs3V' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 461, "user_id" = 571, "created_at" = '2013-07-18 04:59:23.018901', "updated_at" = '2013-07-18 04:59:23.018901', "auth_token" = 'tDpvyRn7L5wsWnxVVs3V' WHERE "public"."cadenero_members"."id" = 570 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:23 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$DaZyGcmsBHMMTzSnusv8zum6ybLS4wWu/cOjp1jJjpOGnPbBeY3rG"], ["updated_at", Thu, 18 Jul 2013 04:59:23 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:23 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$B8FAGq3ITsbeYFTNeCHRFuoVr5OFnYNFQVcYbC3seKnD9Op22RXAO"], ["updated_at", Thu, 18 Jul 2013 04:59:23 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:23 UTC +00:00], ["name", "Root"], ["owner_id", 573], ["subdomain", "www"], ["updated_at", Thu, 18 Jul 2013 04:59:23 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'c74p375NkLqzVfQqHaR8' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 573, "created_at" = '2013-07-18 04:59:23.223364', "updated_at" = '2013-07-18 04:59:23.223364', "auth_token" = 'c74p375NkLqzVfQqHaR8' WHERE "public"."cadenero_accounts"."id" = 462 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 462], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:23 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:23 UTC +00:00], ["user_id", 573]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'L6qGDsNf2gLVbtzhwZTY' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 462, "user_id" = 573, "created_at" = '2013-07-18 04:59:23.229632', "updated_at" = '2013-07-18 04:59:23.229632', "auth_token" = 'L6qGDsNf2gLVbtzhwZTY' WHERE "public"."cadenero_members"."id" = 571 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) CREATE SCHEMA "www" +  (7.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (4.0ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Connecting to database specified by database.yml +  (3.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  +Migrating to CreateCadeneroV1Accounts (20130612061604) +Migrating to CreateCadeneroV1Users (20130612064652) +Migrating to CreateCadeneroV1Members (20130612073709) +Migrating to AddAuthTokenToCadeneroMembers (20130715174857) +  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 +Completed 200 OK in 34ms (Views: 32.3ms | ActiveRecord: 1.4ms) +  (0.1ms) ROLLBACK +  (0.4ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (7.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 +Completed 200 OK in 15ms (Views: 6.5ms | ActiveRecord: 7.7ms) +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (1.2ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:28 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$7TfckDagtzcEywn/YxNkmu6eGcQzXX6eIyjkB7ihYO.TLopDYAWly"], ["updated_at", Thu, 18 Jul 2013 04:59:28 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:28 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 574], ["subdomain", "test2"], ["updated_at", Thu, 18 Jul 2013 04:59:28 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'KRQ59V8amVu7dyzPmgvd' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 574, "created_at" = '2013-07-18 04:59:28.816139', "updated_at" = '2013-07-18 04:59:28.816139', "auth_token" = 'KRQ59V8amVu7dyzPmgvd' WHERE "public"."cadenero_accounts"."id" = 463 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 463], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:28 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:28 UTC +00:00], ["user_id", 574]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qxHCzEFNpHJqKHPbgpxW' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 463, "user_id" = 574, "created_at" = '2013-07-18 04:59:28.822087', "updated_at" = '2013-07-18 04:59:28.822087', "auth_token" = 'qxHCzEFNpHJqKHPbgpxW' WHERE "public"."cadenero_members"."id" = 572 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test2" +  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:28 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +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-07-17 23:59:28 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 463 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 574 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 574 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 574 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 574 +Completed 201 Created in 144ms (Views: 15.0ms | ActiveRecord: 2.9ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 574 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:29 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 574 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.5ms) +  (9.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:29 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$.uRWOFrvo4jrD1Z6rgaJyOXCw33by9jqlY6yT3nwvWTqsbFMDRjma"], ["updated_at", Thu, 18 Jul 2013 04:59:29 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:29 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 575], ["subdomain", "test3"], ["updated_at", Thu, 18 Jul 2013 04:59:29 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'L9ybsNZkz8CR6mEdBxJL' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 575, "created_at" = '2013-07-18 04:59:29.264720', "updated_at" = '2013-07-18 04:59:29.264720', "auth_token" = 'L9ybsNZkz8CR6mEdBxJL' WHERE "public"."cadenero_accounts"."id" = 464 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 464], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:29 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:29 UTC +00:00], ["user_id", 575]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HrCScVHFFhiG6pW5x8zi' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 464, "user_id" = 575, "created_at" = '2013-07-18 04:59:29.270306', "updated_at" = '2013-07-18 04:59:29.270306', "auth_token" = 'HrCScVHFFhiG6pW5x8zi' WHERE "public"."cadenero_members"."id" = 573 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test3" +  (5.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (4.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (5.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (24.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:29 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 + Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 464 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 + Cadenero::User Load (2.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 575 LIMIT 1 + Cadenero::Member Load (11.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 575 + Cadenero::V1::Account Load (7.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 575 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 575 +Completed 201 Created in 418ms (Views: 18.1ms | ActiveRecord: 25.0ms) + Cadenero::V1::Account Load (15.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (4.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 575 + Cadenero::User Load (4.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:29 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"575", "default"=>:json} + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 575 LIMIT 1 +Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.5ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:29 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:59:29 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$RPI8zJa1SgH/kEQUAPBs3eTbxCAH3G.ZRmRIGIMmnXA62FjuKVffu"], ["updated_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 464], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["user_id", 576]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pHNPmWTutjjhCx1Kzih9' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 464, "user_id" = 576, "created_at" = '2013-07-18 04:59:30.034251', "updated_at" = '2013-07-18 04:59:30.034251', "auth_token" = 'pHNPmWTutjjhCx1Kzih9' WHERE "public"."cadenero_members"."id" = 574 +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (11.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 576 LIMIT 1 + Cadenero::Member Load (1.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 576 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 576 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 576 +Completed 201 Created in 234ms (Views: 8.8ms | ActiveRecord: 15.9ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/576" for 127.0.0.1 at 2013-07-17 23:59:30 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"576"} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + Cadenero::User Load (11.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 464 AND "public"."cadenero_users"."id" = 576 LIMIT 1 + Cadenero::User Load (10.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 576 LIMIT 1 + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 576 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 576 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 576 +Completed 200 OK in 33ms (Views: 6.7ms | ActiveRecord: 23.1ms) + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:30 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 576 LIMIT 1 + Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 576 + Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 576 + Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 576 +Completed 201 Created in 11ms (Views: 5.3ms | ActiveRecord: 4.3ms) + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (4.0ms) ROLLBACK +  (0.9ms) BEGIN +  (1.2ms) COMMIT +  (0.7ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$y5C8aUwAcIKP75qOkouJSunKohU9ivjuHaom5St6QUwwWCqiT.vEa"], ["updated_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (2.3ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (2.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + SQL (4.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 577], ["subdomain", "test4"], ["updated_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00]] + Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'GpZNLroVZay22Me29QpN' LIMIT 1 +  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 577, "created_at" = '2013-07-18 04:59:30.327816', "updated_at" = '2013-07-18 04:59:30.327816', "auth_token" = 'GpZNLroVZay22Me29QpN' WHERE "public"."cadenero_accounts"."id" = 465 +  (1.3ms) RELEASE SAVEPOINT active_record_1 +  (5.9ms) SAVEPOINT active_record_1 + SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 465], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["user_id", 577]] + Cadenero::Member Load (3.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qeQftvm7d1ruiFkPVtau' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 465, "user_id" = 577, "created_at" = '2013-07-18 04:59:30.349085', "updated_at" = '2013-07-18 04:59:30.349085', "auth_token" = 'qeQftvm7d1ruiFkPVtau' WHERE "public"."cadenero_members"."id" = 575 +  (0.8ms) RELEASE SAVEPOINT active_record_1 +  (1.1ms) CREATE SCHEMA "test4" +  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (4.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (3.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (6.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:30 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (4.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 + Cadenero::User Load (5.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 465 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 + Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 577 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 577 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 577 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 577 +Completed 201 Created in 170ms (Views: 5.5ms | ActiveRecord: 11.8ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 577 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:30 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"577", "default"=>:json} + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 577 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.5ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:30 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (23.0ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (25.5ms) SAVEPOINT active_record_1 + SQL (39.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$8OZuKsUqw6BtQjQ4tbl82.IVKNakpkC6VNtKUBit17QG..Nb/7IVi"], ["updated_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00]] +  (10.1ms) RELEASE SAVEPOINT active_record_1 +  (1.6ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (6.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 578], ["subdomain", "test5"], ["updated_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'NLxDVS7YnQoBuYy4iGTn' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 578, "created_at" = '2013-07-18 04:59:30.952695', "updated_at" = '2013-07-18 04:59:30.952695', "auth_token" = 'NLxDVS7YnQoBuYy4iGTn' WHERE "public"."cadenero_accounts"."id" = 466 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (6.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 466], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:30 UTC +00:00], ["user_id", 578]] + Cadenero::Member Load (3.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JquoYNi3DDRYhrNducJZ' LIMIT 1 +  (2.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 466, "user_id" = 578, "created_at" = '2013-07-18 04:59:30.958803', "updated_at" = '2013-07-18 04:59:30.958803', "auth_token" = 'JquoYNi3DDRYhrNducJZ' WHERE "public"."cadenero_members"."id" = 576 +  (2.9ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test5" +  (13.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (10.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (7.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (3.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:31 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:59:31 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$1VF8B8/Db9yXCR4O4GWL/ew7zkZT1icSyC/dirmsNA/RG9mjKYc6O"], ["updated_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 466], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["user_id", 579]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mpp7PhLHqph5sCU8pqqh' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 466, "user_id" = 579, "created_at" = '2013-07-18 04:59:31.218876', "updated_at" = '2013-07-18 04:59:31.218876', "auth_token" = 'mpp7PhLHqph5sCU8pqqh' WHERE "public"."cadenero_members"."id" = 577 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 579 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 579 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 579 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 579 +Completed 201 Created in 169ms (Views: 7.3ms | ActiveRecord: 5.8ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/579" for 127.0.0.1 at 2013-07-17 23:59:31 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"579"} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 466 AND "public"."cadenero_users"."id" = 579 LIMIT 1 + Cadenero::User Load (4.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 579 LIMIT 1 + Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 579 + Cadenero::V1::Account Load (4.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 579 + Cadenero::V1::Account Load (2.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 579 +Completed 200 OK in 26ms (Views: 7.4ms | ActiveRecord: 13.9ms) + Cadenero::User Load (6.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:31 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 579 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 579 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 579 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 579 +Completed 201 Created in 8ms (Views: 5.2ms | ActiveRecord: 1.3ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:31 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 579 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (4.0ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) COMMIT +  (0.5ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (12.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$CCWYPOcqLQ.dy7JHizM0TeFxK93toYajvkYCWukvK5Z4yjUUqv.kq"], ["updated_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00]] +  (11.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 580], ["subdomain", "test6"], ["updated_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'KV6cY2s2uTyRxsNgLyFM' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 580, "created_at" = '2013-07-18 04:59:31.570324', "updated_at" = '2013-07-18 04:59:31.570324', "auth_token" = 'KV6cY2s2uTyRxsNgLyFM' WHERE "public"."cadenero_accounts"."id" = 467 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 467], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["user_id", 580]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bi9pF5bphXJg8rf9zs4s' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 467, "user_id" = 580, "created_at" = '2013-07-18 04:59:31.576837', "updated_at" = '2013-07-18 04:59:31.576837', "auth_token" = 'bi9pF5bphXJg8rf9zs4s' WHERE "public"."cadenero_members"."id" = 578 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test6" +  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (6.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:31 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:31 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 467 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (3.7ms) ROLLBACK +  (0.4ms) BEGIN +  (0.2ms) COMMIT +  (0.1ms) BEGIN +  (1.9ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$xn1GvxcL8v14l6bo0TuJNOAE71knoOosx1NY.6cDR/udW9EH7Id6q"], ["updated_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (4.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (3.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 581], ["subdomain", "test7"], ["updated_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'qsdGAAizPrHpNzxfQBEK' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 581, "created_at" = '2013-07-18 04:59:31.939876', "updated_at" = '2013-07-18 04:59:31.939876', "auth_token" = 'qsdGAAizPrHpNzxfQBEK' WHERE "public"."cadenero_accounts"."id" = 468 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 468], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:31 UTC +00:00], ["user_id", 581]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HuBkmrnezTTEHNzQC2fp' LIMIT 1 +  (3.9ms) UPDATE "public"."cadenero_members" SET "account_id" = 468, "user_id" = 581, "created_at" = '2013-07-18 04:59:31.949891', "updated_at" = '2013-07-18 04:59:31.949891', "auth_token" = 'HuBkmrnezTTEHNzQC2fp' WHERE "public"."cadenero_members"."id" = 579 +  (3.7ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test7" +  (6.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (7.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (7.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (5.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (5.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (6.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.4ms) SELECT version FROM "schema_migrations" +  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:32 -0500 + Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (2.8ms) ROLLBACK +  (1.2ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (1.3ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$pKem0MpCladRyf3MS5U9deObuEFci8twSuQlAH6Fj3QwQtzE4INVq"], ["updated_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 582], ["subdomain", "test8"], ["updated_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ofh94r9pDJiqoVqYeCvy' LIMIT 1 +  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 582, "created_at" = '2013-07-18 04:59:32.263235', "updated_at" = '2013-07-18 04:59:32.263235', "auth_token" = 'ofh94r9pDJiqoVqYeCvy' WHERE "public"."cadenero_accounts"."id" = 469 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 469], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["user_id", 582]] + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9xiemoGyehwS4YQaLcRo' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 469, "user_id" = 582, "created_at" = '2013-07-18 04:59:32.270619', "updated_at" = '2013-07-18 04:59:32.270619', "auth_token" = '9xiemoGyehwS4YQaLcRo' WHERE "public"."cadenero_members"."id" = 580 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test8" +  (3.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (4.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (9.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (4.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (8.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (10.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (6.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (3.4ms) SELECT version FROM "schema_migrations" +  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (5.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (9.9ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$5oFzZA8IiA4WGjmlPqWmcORBaX56hbct5VgDmN5EjjbIC9d2QNps6"], ["updated_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 583], ["subdomain", "test9"], ["updated_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00]] + Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = '5mXjjUTfcpMNgCk9D2ue' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 583, "created_at" = '2013-07-18 04:59:32.540070', "updated_at" = '2013-07-18 04:59:32.540070', "auth_token" = '5mXjjUTfcpMNgCk9D2ue' WHERE "public"."cadenero_accounts"."id" = 470 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 470], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["user_id", 583]] + Cadenero::Member Load (2.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pcSmRryNhH7kYyDFQsta' LIMIT 1 +  (1.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 470, "user_id" = 583, "created_at" = '2013-07-18 04:59:32.547088', "updated_at" = '2013-07-18 04:59:32.547088', "auth_token" = 'pcSmRryNhH7kYyDFQsta' WHERE "public"."cadenero_members"."id" = 581 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:32 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:32 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user10@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 + Cadenero::User Load (3.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 469 AND "public"."cadenero_users"."email" = 'user10@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 3.7ms) + Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (4.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$Ybvb7gdooT57xNagnm/mk.zPQxR05XAhUJ.mtkgajEnErWJ9KfKP6"], ["updated_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 + SQL (2.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 584], ["subdomain", "test10"], ["updated_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'HxqXHkjwQcseCoZ9vpHr' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 584, "created_at" = '2013-07-18 04:59:32.742337', "updated_at" = '2013-07-18 04:59:32.742337', "auth_token" = 'HxqXHkjwQcseCoZ9vpHr' WHERE "public"."cadenero_accounts"."id" = 471 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 471], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:32 UTC +00:00], ["user_id", 584]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kpsxyMZZ9HRB4ZhKCjs6' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 471, "user_id" = 584, "created_at" = '2013-07-18 04:59:32.749901', "updated_at" = '2013-07-18 04:59:32.749901', "auth_token" = 'kpsxyMZZ9HRB4ZhKCjs6' WHERE "public"."cadenero_members"."id" = 582 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test10" +  (11.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (13.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (6.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (4.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (3.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (6.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (6.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:32 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-17 23:59:32 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 + Cadenero::User Load (2.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 471 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 3.6ms) + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (4.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (1.5ms) SAVEPOINT active_record_1 + SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$s60EPpL8nhx9tuK3lkJCeO.EQ2FC4jUrE1KmDnHNGW6jX0IVXwPgC"], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 585], ["subdomain", "test11"], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'FPB7srJqeuBgeLACxqgn' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 585, "created_at" = '2013-07-18 04:59:33.024065', "updated_at" = '2013-07-18 04:59:33.024065', "auth_token" = 'FPB7srJqeuBgeLACxqgn' WHERE "public"."cadenero_accounts"."id" = 472 +  (1.5ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 472], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["user_id", 585]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1AyqVENGKx1yeUCxnx1s' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 472, "user_id" = 585, "created_at" = '2013-07-18 04:59:33.032239', "updated_at" = '2013-07-18 04:59:33.032239', "auth_token" = '1AyqVENGKx1yeUCxnx1s' WHERE "public"."cadenero_members"."id" = 583 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test11" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (10.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (2.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (11.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:33 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 585 +Started GET "/v1?auth_token[]=1AyqVENGKx1yeUCxnx1s" for 127.0.0.1 at 2013-07-17 23:59:33 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["1AyqVENGKx1yeUCxnx1s"], "default"=>:json} + Cadenero::V1::Account Load (8.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 + Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 472 AND "public"."cadenero_members"."auth_token" IN ('1AyqVENGKx1yeUCxnx1s') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 585 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 585 LIMIT 1 +Completed 200 OK in 14ms (Views: 0.2ms | ActiveRecord: 9.1ms) +  (3.2ms) ROLLBACK +  (0.9ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.8ms) SAVEPOINT active_record_1 + SQL (3.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$3O0Ht3BN.eMQyplgc8luGeh47qJUq4RYpiY1ULiLwoIOAoNEgKSnu"], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (1.4ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 + SQL (3.1ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 586], ["subdomain", "test12"], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'zUuqT6ZFwHXfJCqs4zts' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 586, "created_at" = '2013-07-18 04:59:33.320071', "updated_at" = '2013-07-18 04:59:33.320071', "auth_token" = 'zUuqT6ZFwHXfJCqs4zts' WHERE "public"."cadenero_accounts"."id" = 473 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 473], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["user_id", 586]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PqqextSTwEqjibqeLrqQ' LIMIT 1 +  (1.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 473, "user_id" = 586, "created_at" = '2013-07-18 04:59:33.330477', "updated_at" = '2013-07-18 04:59:33.330477', "auth_token" = 'PqqextSTwEqjibqeLrqQ' WHERE "public"."cadenero_members"."id" = 584 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test12" +  (10.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (3.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (6.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.6ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:33 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 586 +Started GET "/v1?auth_token[]=PqqextSTwEqjibqeLrqQ" for 127.0.0.1 at 2013-07-17 23:59:33 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["PqqextSTwEqjibqeLrqQ"], "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 473 AND "public"."cadenero_members"."auth_token" IN ('PqqextSTwEqjibqeLrqQ') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 586 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 586 LIMIT 1 +Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.9ms) +Started GET "/v1/users/586" for 127.0.0.1 at 2013-07-17 23:59:33 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"586"} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +Started GET "/v1/users/586?auth_token[]=PqqextSTwEqjibqeLrqQ" for 127.0.0.1 at 2013-07-17 23:59:33 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"auth_token"=>["PqqextSTwEqjibqeLrqQ"], "default"=>:json, "id"=>"586"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 + Cadenero::Member Load (2.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 473 AND "public"."cadenero_members"."auth_token" IN ('PqqextSTwEqjibqeLrqQ') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 586 LIMIT 1 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 473 AND "public"."cadenero_users"."id" = 586 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 586 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 586 + Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 586 + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 586 +Completed 200 OK in 20ms (Views: 6.4ms | ActiveRecord: 5.6ms) +  (5.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["email", "user14@example.com"], ["password_digest", "$2a$10$ksla0d980BY1r56W2IRgher5ZXRDCPXq9AiIvRU.STgAJQwpbkfRa"], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00]] +  (3.5ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 587], ["subdomain", "test13"], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ppY5ZYoKNYCJkM7G4gp4' LIMIT 1 +  (2.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 587, "created_at" = '2013-07-18 04:59:33.621252', "updated_at" = '2013-07-18 04:59:33.621252', "auth_token" = 'ppY5ZYoKNYCJkM7G4gp4' WHERE "public"."cadenero_accounts"."id" = 474 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 474], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["user_id", 587]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AF34dsTmt5xvbr5j5KSk' LIMIT 1 +  (7.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 474, "user_id" = 587, "created_at" = '2013-07-18 04:59:33.634079', "updated_at" = '2013-07-18 04:59:33.634079', "auth_token" = 'AF34dsTmt5xvbr5j5KSk' WHERE "public"."cadenero_members"."id" = 585 +  (8.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test13" +  (7.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (2.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (1.6ms) SAVEPOINT active_record_1 + SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["email", "user15@example.com"], ["password_digest", "$2a$10$5O/5nc6bpr2NMqKl.sY04ukx355zTh1bglB8d19Nulh9KnpbUodvm"], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test14' LIMIT 1 + SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["name", "Test Account #14"], ["owner_id", 588], ["subdomain", "test14"], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00]] + Cadenero::V1::Account Load (5.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'ZzhA9e7LjcbNAtay8v6i' LIMIT 1 +  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #14', "subdomain" = 'test14', "owner_id" = 588, "created_at" = '2013-07-18 04:59:33.858449', "updated_at" = '2013-07-18 04:59:33.858449', "auth_token" = 'ZzhA9e7LjcbNAtay8v6i' WHERE "public"."cadenero_accounts"."id" = 475 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (4.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 475], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:33 UTC +00:00], ["user_id", 588]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Jzgrq8pSFXMoJMchq9Cz' LIMIT 1 +  (3.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 475, "user_id" = 588, "created_at" = '2013-07-18 04:59:33.871489', "updated_at" = '2013-07-18 04:59:33.871489', "auth_token" = 'Jzgrq8pSFXMoJMchq9Cz' WHERE "public"."cadenero_members"."id" = 586 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test14" +  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (9.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (10.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (2.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (3.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (4.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (8.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:33 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 588 +Started GET "/v1?auth_token[]=Jzgrq8pSFXMoJMchq9Cz" for 127.0.0.1 at 2013-07-17 23:59:33 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["Jzgrq8pSFXMoJMchq9Cz"], "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test13') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 474 AND "public"."cadenero_members"."auth_token" IN ('Jzgrq8pSFXMoJMchq9Cz') LIMIT 1 +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms) +  (9.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (8.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["email", "user16@example.com"], ["password_digest", "$2a$10$RGn9Fkae/S4UbGZC65mdpu4zEg/n8AQJldB4vaZdPBULWe.pG6E8K"], ["updated_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00]] +  (2.4ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["name", "Test Account #15"], ["owner_id", 589], ["subdomain", "test15"], ["updated_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'EZHDtsUyACVeirxwExxB' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #15', "subdomain" = 'test15', "owner_id" = 589, "created_at" = '2013-07-18 04:59:34.194595', "updated_at" = '2013-07-18 04:59:34.194595', "auth_token" = 'EZHDtsUyACVeirxwExxB' WHERE "public"."cadenero_accounts"."id" = 476 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 476], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["user_id", 589]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TqhscF3p4xkg75SsYzkn' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 476, "user_id" = 589, "created_at" = '2013-07-18 04:59:34.200931', "updated_at" = '2013-07-18 04:59:34.200931', "auth_token" = 'TqhscF3p4xkg75SsYzkn' WHERE "public"."cadenero_members"."id" = 587 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test15" +  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (3.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (8.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (2.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (3.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.6ms) SELECT version FROM "schema_migrations" +  (5.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-17 23:59:34 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:59:34 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (2.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 +  (2.8ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$OfTObVlN1sYuTptBvCrg6Os5NFedebO6oieJygpn9Fe9ZIo5yWKL2"], ["updated_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 476], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["user_id", 590]] + Cadenero::Member Load (13.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6ZDzbxb3aspQrUforZHc' LIMIT 1 +  (12.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 476, "user_id" = 590, "created_at" = '2013-07-18 04:59:34.488869', "updated_at" = '2013-07-18 04:59:34.488869', "auth_token" = '6ZDzbxb3aspQrUforZHc' WHERE "public"."cadenero_members"."id" = 588 +  (6.8ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 590 LIMIT 1 + Cadenero::Member Load (5.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 590 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 590 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 590 +Completed 201 Created in 235ms (Views: 7.8ms | ActiveRecord: 45.8ms) + Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/590" for 127.0.0.1 at 2013-07-17 23:59:34 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"590"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test15' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 476 AND "public"."cadenero_users"."id" = 590 LIMIT 1 + Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 590 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 590 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 590 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 590 +Completed 200 OK in 14ms (Views: 6.6ms | ActiveRecord: 3.2ms) + Cadenero::User Load (5.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 589 +Started GET "/v1?auth_token[]=TqhscF3p4xkg75SsYzkn" for 127.0.0.1 at 2013-07-17 23:59:34 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["TqhscF3p4xkg75SsYzkn"], "default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 476 AND "public"."cadenero_members"."auth_token" IN ('TqhscF3p4xkg75SsYzkn') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 589 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 589 LIMIT 1 +Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.8ms) + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 590 +Started GET "/v1?auth_token[]=6ZDzbxb3aspQrUforZHc" for 127.0.0.1 at 2013-07-17 23:59:34 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"auth_token"=>["6ZDzbxb3aspQrUforZHc"], "default"=>:json} + Cadenero::V1::Account Load (4.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test15') LIMIT 1 + Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 476 AND "public"."cadenero_members"."auth_token" IN ('6ZDzbxb3aspQrUforZHc') LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 590 LIMIT 1 + CACHE (0.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 590 LIMIT 1 +Completed 200 OK in 12ms (Views: 0.2ms | ActiveRecord: 5.7ms) +  (6.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (14.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (5.6ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ScJVCYzncwDQbpfREgxAlOwhiC2WPusHU287T9YOCYWZHsebyzA3e"], ["updated_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["name", "Test Account"], ["owner_id", 591], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'QqXoPDPX1RqDoGzUbqhc' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 591, "created_at" = '2013-07-18 04:59:34.971742', "updated_at" = '2013-07-18 04:59:34.971742', "auth_token" = 'QqXoPDPX1RqDoGzUbqhc' WHERE "public"."cadenero_accounts"."id" = 477 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 477], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:34 UTC +00:00], ["user_id", 591]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wzufV7pV6yys5yJyS5cv' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 477, "user_id" = 591, "created_at" = '2013-07-18 04:59:34.978465', "updated_at" = '2013-07-18 04:59:34.978465', "auth_token" = 'wzufV7pV6yys5yJyS5cv' WHERE "public"."cadenero_members"."id" = 589 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test" +  (7.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (11.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (5.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (4.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (6.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 477 LIMIT 1 +  (16.8ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.9ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:35 UTC +00:00], ["email", "user17@example.com"], ["password_digest", "$2a$10$B1hrOs0BUCRR1yeHoDbADOnOJgdB66zWoL2eL0v.WF1gVgY4T2axi"], ["updated_at", Thu, 18 Jul 2013 04:59:35 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:35 UTC +00:00], ["name", "Test Account #16"], ["owner_id", 592], ["subdomain", "test16"], ["updated_at", Thu, 18 Jul 2013 04:59:35 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'n7xV95YsVqADRRsNxpEC' LIMIT 1 +  (1.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #16', "subdomain" = 'test16', "owner_id" = 592, "created_at" = '2013-07-18 04:59:35.739412', "updated_at" = '2013-07-18 04:59:35.739412', "auth_token" = 'n7xV95YsVqADRRsNxpEC' WHERE "public"."cadenero_accounts"."id" = 478 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 478], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:35 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:35 UTC +00:00], ["user_id", 592]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5inNFes86QJLZJUegneA' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 478, "user_id" = 592, "created_at" = '2013-07-18 04:59:35.760689', "updated_at" = '2013-07-18 04:59:35.760689', "auth_token" = '5inNFes86QJLZJUegneA' WHERE "public"."cadenero_members"."id" = 590 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test16" +  (9.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (4.7ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (6.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (4.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (12.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (4.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:59:35 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 +  (1.9ms) SAVEPOINT active_record_1 + SQL (5.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$5DVzq3gows0TlcDySQg9qORqIwHLDIYSq1wlGz9TVQlNCFK5aLca2"], ["updated_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00]] + SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 478], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["user_id", 593]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JGvc2XJeTGQcpkzqqgvf' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 478, "user_id" = 593, "created_at" = '2013-07-18 04:59:36.085643', "updated_at" = '2013-07-18 04:59:36.085643', "auth_token" = 'JGvc2XJeTGQcpkzqqgvf' WHERE "public"."cadenero_members"."id" = 591 +  (0.5ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 593 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 593 + Cadenero::V1::Account Load (7.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 593 + Cadenero::V1::Account Load (8.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 593 +Completed 201 Created in 229ms (Views: 10.4ms | ActiveRecord: 28.2ms) + Cadenero::V1::Account Load (2.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/593" for 127.0.0.1 at 2013-07-17 23:59:36 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"593"} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test16' LIMIT 1 + Cadenero::User Load (7.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 478 AND "public"."cadenero_users"."id" = 593 LIMIT 1 + Cadenero::User Load (3.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 593 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 593 + Cadenero::V1::Account Load (3.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 593 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 593 +Completed 200 OK in 31ms (Views: 7.6ms | ActiveRecord: 16.1ms) +  (13.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["email", "user18@example.com"], ["password_digest", "$2a$10$c.tqacqkAvwNz5Z.wqiFcOB3L4jncwPW8FOWgceZTJTVJf6.nDxxa"], ["updated_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00]] +  (4.0ms) RELEASE SAVEPOINT active_record_1 +  (1.7ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 + SQL (1.1ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["name", "Test Account #17"], ["owner_id", 594], ["subdomain", "test17"], ["updated_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'Xc6wBmxU5B7HcFuiYQzN' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #17', "subdomain" = 'test17', "owner_id" = 594, "created_at" = '2013-07-18 04:59:36.340508', "updated_at" = '2013-07-18 04:59:36.340508', "auth_token" = 'Xc6wBmxU5B7HcFuiYQzN' WHERE "public"."cadenero_accounts"."id" = 479 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 479], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["user_id", 594]] + Cadenero::Member Load (2.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yDt9s64pz7xypvLShbx6' LIMIT 1 +  (1.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 479, "user_id" = 594, "created_at" = '2013-07-18 04:59:36.348152', "updated_at" = '2013-07-18 04:59:36.348152', "auth_token" = 'yDt9s64pz7xypvLShbx6' WHERE "public"."cadenero_members"."id" = 592 +  (5.7ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) CREATE SCHEMA "test17" +  (8.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (3.9ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (11.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (24.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (2.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (22.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (11.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:59:36 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (4.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$w1j9FJ7yXInpDjomEjpXEOk0vL0dTwVyQKlrCcizBrxx.VggeLV5K"], ["updated_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00]] + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 479], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["user_id", 595]] + Cadenero::Member Load (4.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UiNtP1JRs1TzqwskySss' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 479, "user_id" = 595, "created_at" = '2013-07-18 04:59:36.645355', "updated_at" = '2013-07-18 04:59:36.645355', "auth_token" = 'UiNtP1JRs1TzqwskySss' WHERE "public"."cadenero_members"."id" = 593 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 595 LIMIT 1 + Cadenero::Member Load (2.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 595 + Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 595 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 595 +Completed 201 Created in 171ms (Views: 6.4ms | ActiveRecord: 19.4ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/595" for 127.0.0.1 at 2013-07-17 23:59:36 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"595"} + Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 + Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 479 AND "public"."cadenero_users"."id" = 595 LIMIT 1 + Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 595 LIMIT 1 + Cadenero::Member Load (9.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 595 + Cadenero::V1::Account Load (7.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 595 + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 595 +Completed 200 OK in 38ms (Views: 7.9ms | ActiveRecord: 21.5ms) + Cadenero::User Load (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (4.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 + SQL (9.3ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["name", "Test Account #18"], ["owner_id", 595], ["subdomain", "test18"], ["updated_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'E1qvoac2uPrE1qR49LaJ' LIMIT 1 +  (15.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #18', "subdomain" = 'test18', "owner_id" = 595, "created_at" = '2013-07-18 04:59:36.731845', "updated_at" = '2013-07-18 04:59:36.731845', "auth_token" = 'E1qvoac2uPrE1qR49LaJ' WHERE "public"."cadenero_accounts"."id" = 480 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 480], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:36 UTC +00:00], ["user_id", 595]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'b9YTFNPgz9hsNpBBMGuh' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 480, "user_id" = 595, "created_at" = '2013-07-18 04:59:36.782206', "updated_at" = '2013-07-18 04:59:36.782206', "auth_token" = 'b9YTFNPgz9hsNpBBMGuh' WHERE "public"."cadenero_members"."id" = 594 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test18" +  (8.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp) +  (11.0ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (5.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (8.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255))  +  (4.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp)  +  (5.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-17 23:59:36 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (4.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$CjIQF8Cxrb6waXp8fOmf6ex3SYppayura/q1CSThXOEv6.btCcmAC"], ["updated_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00]] + SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 480], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00], ["user_id", 596]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BdseFLpRFWjyeU6RGe5y' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 480, "user_id" = 596, "created_at" = '2013-07-18 04:59:37.046993', "updated_at" = '2013-07-18 04:59:37.046993', "auth_token" = 'BdseFLpRFWjyeU6RGe5y' WHERE "public"."cadenero_members"."id" = 595 +  (8.2ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 596 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 596 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 596 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 596 +Completed 201 Created in 157ms (Views: 5.9ms | ActiveRecord: 16.7ms) + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/596" for 127.0.0.1 at 2013-07-17 23:59:37 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"596"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test18' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 480 AND "public"."cadenero_users"."id" = 596 LIMIT 1 + Cadenero::User Load (8.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 596 LIMIT 1 + Cadenero::Member Load (1.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 596 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 596 + Cadenero::V1::Account Load (9.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 596 +Completed 200 OK in 34ms (Views: 9.7ms | ActiveRecord: 20.6ms) +Started GET "/v1/users/595" for 127.0.0.1 at 2013-07-17 23:59:37 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"595"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 479 AND "public"."cadenero_users"."id" = 595 LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 595 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 595 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 595 + Cadenero::V1::Account Load (4.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 595 +Completed 200 OK in 19ms (Views: 7.5ms | ActiveRecord: 6.3ms) +Started GET "/v1/users" for 127.0.0.1 at 2013-07-17 23:59:37 -0500 +Processing by Cadenero::V1::Account::UsersController#index as HTML + Parameters: {"default"=>:json} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test17' LIMIT 1 + Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 479 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 595 LIMIT 1 + Cadenero::Member Load (6.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 595 + Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 595 + Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 595 + Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 594 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 594 + Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 594 +Completed 200 OK in 37ms (Views: 16.3ms | ActiveRecord: 18.8ms) +  (14.6ms) ROLLBACK +  (5.1ms) BEGIN +  (11.5ms) COMMIT +  (0.2ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1001 +Completed 201 Created in 29ms (Views: 27.5ms | ActiveRecord: 0.6ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (4.2ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account"}} +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00], ["user_id", 101]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wFsy8PTggnvWXmyz5XoV' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-18 04:59:37.443884', "updated_at" = '2013-07-18 04:59:37.443884', "auth_token" = 'wFsy8PTggnvWXmyz5XoV' WHERE "public"."cadenero_members"."id" = 596 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (1.3ms) COMMIT +  (0.2ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:59:37 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (3.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$9AUof3gNcdzEXbi.nx1rdujR0takzj2ewfSYMECoilw8eNlUgvHoW"], ["updated_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00]] + SQL (4.6ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00], ["name", "Testy"], ["owner_id", 597], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'XqZ1xzJxFEUYZGujMhsx' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 597, "created_at" = '2013-07-18 04:59:37.669480', "updated_at" = '2013-07-18 04:59:37.669480', "auth_token" = 'XqZ1xzJxFEUYZGujMhsx' WHERE "public"."cadenero_accounts"."id" = 481 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 481], ["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00], ["updated_at", Thu, 18 Jul 2013 04:59:37 UTC +00:00], ["user_id", 597]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 't1mNzYFsH6jhWg1G6C3z' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 481, "user_id" = 597, "created_at" = '2013-07-18 04:59:37.680217', "updated_at" = '2013-07-18 04:59:37.680217', "auth_token" = 't1mNzYFsH6jhWg1G6C3z' WHERE "public"."cadenero_members"."id" = 597 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test" +  (6.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "auth_token" character varying(255), "owner_id" integer, "created_at" timestamp, "updated_at" timestamp)  +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_auth_token" ON "cadenero_accounts" ("auth_token") +  (3.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp, "updated_at" timestamp, "auth_token" character varying(255)) +  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (8.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp, "updated_at" timestamp) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (3.5ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 481) LIMIT 1 + Cadenero::User Load (3.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 597 LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 481 +Completed 201 Created in 532ms (Views: 186.0ms | ActiveRecord: 65.6ms) + Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (9.7ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (2.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 18 Jul 2013 04:59:38 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$ZeQA1l31H1SsqsjfIneCROmWWBsq8IRb9ZgFRbgSwKL6F7BY9bOS2"], ["updated_at", Thu, 18 Jul 2013 04:59:38 UTC +00:00]] + SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("auth_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["auth_token", nil], ["created_at", Thu, 18 Jul 2013 04:59:38 UTC +00:00], ["name", "Testy"], ["owner_id", 598], ["subdomain", "test"], ["updated_at", Thu, 18 Jul 2013 04:59:38 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."auth_token" = 'xz5HrS3C2fjLhUFPkK2d' LIMIT 1 +  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 598, "created_at" = '2013-07-18 04:59:38.235522', "updated_at" = '2013-07-18 04:59:38.235522', "auth_token" = 'xz5HrS3C2fjLhUFPkK2d' WHERE "public"."cadenero_accounts"."id" = 482 +  (0.5ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-17 23:59:38 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (0.6ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (4.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (3.9ms) ROLLBACK TO SAVEPOINT active_record_1 + CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 205ms (Views: 0.3ms | ActiveRecord: 8.7ms) + Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (1.0ms) ROLLBACK