spec/dummy/log/test.log in cadenero-0.0.2.b5 vs spec/dummy/log/test.log in cadenero-0.0.2.b6

- old
+ new

@@ -64181,5 +64181,8802 @@ 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.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (14.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.3ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:42: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.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (8.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$FwunHHoFtSUliN1lQRB3Fu4nmyaJFnTXdYZs91XTYp6wrXwHnryvK"], ["updated_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00]] + SQL (1.2ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00]] + Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rDEoXb8KtxgHCqtAGdNN' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (2.3ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 1 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 1], ["created_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["id", 1], ["authentication_token", "rDEoXb8KtxgHCqtAGdNN"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["user_id", 1]] + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JxSBsiK1e6nRLjgjy2yp' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 1 [["account_id", 1], ["user_id", 1], ["created_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["id", 1], ["auth_token", "JxSBsiK1e6nRLjgjy2yp"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) CREATE SCHEMA "test" +  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (218.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (8.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (24.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (11.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (5.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 + Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1]] +Completed 201 Created in 678ms (Views: 14.9ms | ActiveRecord: 326.5ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (15.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (9.9ms) ROLLBACK +  (1.0ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$TaVU0xWUumuwURXNV7tidOZN47IHlWyPcNiOtrFMiQEETPg9mRklW"], ["updated_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00]] + SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LETy9QK91szsQwTxbpt7' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 2 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 2], ["created_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:55 UTC +00:00], ["id", 2], ["authentication_token", "LETy9QK91szsQwTxbpt7"]] +  (0.8ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:42: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.6ms) 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 +  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 + CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 35ms (Views: 0.7ms | ActiveRecord: 1.8ms) + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (10.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (4.7ms) ROLLBACK +  (0.3ms) 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.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (13.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (18.4ms) ROLLBACK +  (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.3ms | ActiveRecord: 0.0ms) +  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (13.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (3.5ms) ROLLBACK +  (0.9ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} + Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["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" = $1 [["user_id", 101]] +Completed 200 OK in 94ms (Views: 90.7ms | ActiveRecord: 2.6ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (12.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (4.6ms) ROLLBACK +  (0.2ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON + Cadenero::Member Load (1.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["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" = $1 [["user_id", 101]] +Completed 200 OK in 10ms (Views: 6.9ms | ActiveRecord: 2.4ms) +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (9.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (2.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (4.8ms) ROLLBACK +  (0.1ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 + SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$xg.QOJJSYh.fTsZBKMnWL.lZupRK7Xqm4nQ3ieCkID8MjwPG5TEPO"], ["updated_at", Mon, 15 Jul 2013 18:42:56 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" = 'test1' LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 3], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QLiQFBbBKDxtHNp9Ly1p' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 3 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 3], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 3], ["authentication_token", "QLiQFBbBKDxtHNp9Ly1p"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["user_id", 3]] + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3fakztPM65A6nrUznozU' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 2 [["account_id", 3], ["user_id", 3], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 2], ["auth_token", "3fakztPM65A6nrUznozU"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test1" +  (27.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.0ms) 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") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (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.3ms) 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/users" for 127.0.0.1 at 2013-07-15 13:42: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 (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (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", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$GckZY2T0L2qgYK9qTRAqYuCTx.IQMRpYmVMNNXlCWOuHcBSyAOPGm"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["user_id", 4]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iXpD5DYFHv74fXBzfdRV' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 3 [["account_id", 3], ["user_id", 4], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 3], ["auth_token", "iXpD5DYFHv74fXBzfdRV"]] +  (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" = 4 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] + Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] +Completed 201 Created in 26ms (Views: 7.5ms | ActiveRecord: 6.9ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/4" for 127.0.0.1 at 2013-07-15 13:42:56 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"4"} + 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.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 4 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 3]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] +Completed 200 OK in 13ms (Views: 6.3ms | ActiveRecord: 2.3ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (10.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (7.0ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$UsdKEIm5QsGs41/RsXzzZ.e46fswdRF.RumyeU8xM1ZvBQe5TUAjG"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 5], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'S6jmJQiByUzRNfgUUt5f' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (1.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 4 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 5], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 4], ["authentication_token", "S6jmJQiByUzRNfgUUt5f"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["user_id", 5]] + Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7esyS7m1gqZAsbcZaTCY' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (2.8ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 4 [["account_id", 4], ["user_id", 5], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 4], ["auth_token", "7esyS7m1gqZAsbcZaTCY"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) CREATE SCHEMA "test2" +  (20.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.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") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:42: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.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.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", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$m72aLW6Xyc9beNPXFvt.ser6oUUBM0dTzF7Hxw1Gaw.LvM4/VG4SK"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["user_id", 6]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qzu5DLvhAorDbevYRMsh' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 5 [["account_id", 4], ["user_id", 6], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 5], ["auth_token", "qzu5DLvhAorDbevYRMsh"]] +  (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" = 6 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] + Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] +Completed 201 Created in 25ms (Views: 6.6ms | ActiveRecord: 7.2ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/6" for 127.0.0.1 at 2013-07-15 13:42:56 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"6"} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = $1 AND "public"."cadenero_users"."id" = 6 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 4]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] +Completed 200 OK in 12ms (Views: 5.8ms | ActiveRecord: 2.2ms) + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 6], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'AZvAbf3yLUXxFZz5gGNC' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 5 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 6], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 5], ["authentication_token", "AZvAbf3yLUXxFZz5gGNC"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["user_id", 6]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sgSTKhFSaL4pDrDFAtAT' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 6 [["account_id", 5], ["user_id", 6], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 6], ["auth_token", "sgSTKhFSaL4pDrDFAtAT"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test3" +  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.3ms) 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 NOT NULL, "updated_at" timestamp NOT NULL)  +  (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.3ms) 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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:42: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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$UxDdNVKdGRSutQK7kmzfL.LKP.2ATLO53OZUVtSc3T0YCnrSndBci"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["user_id", 7]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oDhGpechWDbs4qmbSAzX' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 7 [["account_id", 5], ["user_id", 7], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 7], ["auth_token", "oDhGpechWDbs4qmbSAzX"]] +  (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" = 7 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 7]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] +Completed 201 Created in 23ms (Views: 6.5ms | ActiveRecord: 4.9ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/7" for 127.0.0.1 at 2013-07-15 13:42:56 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"7"} + 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.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 7 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 5]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 7]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] +Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 2.3ms) +Started GET "/v1/users/6" for 127.0.0.1 at 2013-07-15 13:42:56 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"6"} + 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.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 6 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 4]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] +Completed 200 OK in 13ms (Views: 7.8ms | ActiveRecord: 2.1ms) +Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 13:42:56 -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.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 4]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 5]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 5]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 5]] +Completed 200 OK in 22ms (Views: 16.4ms | ActiveRecord: 3.5ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (27.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (11.6ms) ROLLBACK +  (0.3ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} + Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1001]] +Completed 201 Created in 5ms (Views: 3.1ms | ActiveRecord: 1.5ms) +  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (14.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (6.3ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account"}} +Completed 422 Unprocessable Entity in 4ms (Views: 0.4ms | ActiveRecord: 0.0ms) +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (12.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (5.5ms) ROLLBACK +  (0.3ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 + SQL (2.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1001], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["user_id", 101]] + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uqAESa2Qwxh1xdSSu8Br' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 8 [["account_id", 1001], ["user_id", 101], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 8], ["auth_token", "uqAESa2Qwxh1xdSSu8Br"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (1.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (15.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (3.7ms) ROLLBACK +  (0.3ms) 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", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$Gf4M1DbSAdG1rjcd80pX0Os.C/3xcu53ftFNJl4z6/6ImkpwSYmMa"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] +  (4.3ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 8], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PxVJemEKg2MxyP8sz2AR' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.9ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 6 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 8], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 6], ["authentication_token", "PxVJemEKg2MxyP8sz2AR"]] +  (1.9ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["user_id", 8]] + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'c8Nxw5H7sPpzwBkABV89' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (1.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 9 [["account_id", 6], ["user_id", 8], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 9], ["auth_token", "c8Nxw5H7sPpzwBkABV89"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) CREATE SCHEMA "test4" +  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (2.5ms) 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.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:42:56 -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 ('test4') LIMIT 1 + Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 6]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 8]] + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] +Completed 201 Created in 19ms (Views: 6.8ms | ActiveRecord: 3.8ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 6]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user3@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:42:56 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"8", "default"=>:json} + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:42: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-15 13:42: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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$habdqJlnad6sxYlQ6eto8ujKzSba9eqFdGrRnnftj7R0wisXLQ3Om"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["user_id", 9]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hBNJS2VvuvPVasz2FG4m' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 10 [["account_id", 6], ["user_id", 9], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 10], ["auth_token", "hBNJS2VvuvPVasz2FG4m"]] +  (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" = 9 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] +Completed 201 Created in 75ms (Views: 7.3ms | ActiveRecord: 4.5ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/9" for 127.0.0.1 at 2013-07-15 13:42:56 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"9"} + 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 (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 9 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 6]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] +Completed 200 OK in 12ms (Views: 6.2ms | ActiveRecord: 2.3ms) + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:42: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" = 9 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] +Completed 201 Created in 8ms (Views: 5.1ms | ActiveRecord: 1.3ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (10.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (6.0ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$FCn9Gl7utUVb0J8e1hm7Qe.h2HAKELXG3/w/nvtXCrf.Kz2jFTBwe"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 10], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vQqrry9xKKr1CHzg2o9y' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 7 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 10], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 7], ["authentication_token", "vQqrry9xKKr1CHzg2o9y"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["user_id", 10]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8ihpxsoEYdsypCcSx6Yt' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 11 [["account_id", 7], ["user_id", 10], ["created_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:56 UTC +00:00], ["id", 11], ["auth_token", "8ihpxsoEYdsypCcSx6Yt"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test5" +  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (3.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (2.2ms) 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 NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 13:42:57 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 7]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 10 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 10]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 10]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 10]] +Completed 201 Created in 15ms (Views: 6.2ms | ActiveRecord: 3.0ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 7]] +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:42:57 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"10", "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 10 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:42: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) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (9.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (5.9ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$s7lI0AmfpdL0unIF6WlxC.sNLQ4hCiO3lADjZxxoU.BzQJJx2k9Du"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 11], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qqw2zNigZn6BTzkt7Uyd' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 8 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 11], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 8], ["authentication_token", "qqw2zNigZn6BTzkt7Uyd"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 8], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["user_id", 11]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kS5n6YJGbbNJzeiaaSxv' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 12 [["account_id", 8], ["user_id", 11], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 12], ["auth_token", "kS5n6YJGbbNJzeiaaSxv"]] +  (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), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (4.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.3ms) 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") +  (4.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.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.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-15 13:42: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-15 13:42: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 (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$DaZV7WKZsL2uUdYSadIgrufE4v/6VklzNC7etuCZXYc7bKN2PQiKW"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 8], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["user_id", 12]] + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DNEpqzC1eesjCcxQpBxy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 13 [["account_id", 8], ["user_id", 12], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 13], ["auth_token", "DNEpqzC1eesjCcxQpBxy"]] +  (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" = 12 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 12]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 12]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 12]] +Completed 201 Created in 22ms (Views: 6.0ms | ActiveRecord: 4.9ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/12" for 127.0.0.1 at 2013-07-15 13:42:57 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"12"} + 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.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 12 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 8]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 12 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 12]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 12]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 12]] +Completed 200 OK in 12ms (Views: 6.3ms | 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' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:42:57 -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" = 12 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 12]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 12]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 12]] +Completed 201 Created in 8ms (Views: 5.0ms | ActiveRecord: 1.3ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:42:57 -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" = 12 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (9.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (4.5ms) ROLLBACK +  (0.8ms) 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", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$3p3qAOw7ktwSPVY1Gx0VEOl8qTNkY1tyi.uYrJaUlEeCI9b7sdtLu"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 13], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MyMzpdv7WzPWbTVby3xq' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 9 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 13], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 9], ["authentication_token", "MyMzpdv7WzPWbTVby3xq"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 9], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["user_id", 13]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Srss2xvxDtGvQRUrqUGS' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 14 [["account_id", 9], ["user_id", 13], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 14], ["auth_token", "Srss2xvxDtGvQRUrqUGS"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test7" +  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (2.3ms) 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.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 NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 13:42: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-15 13:42:57 -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.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 9]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 13 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 13]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 13]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 13]] +Completed 201 Created in 15ms (Views: 6.1ms | ActiveRecord: 3.0ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 9]] +Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:42:57 -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" = 13 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (9.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (4.6ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$RgHU.GbyYtj3UnsjQshYyeSgSKO9K0caErrj/KkRPUPgt83JFyTzq"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 14], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rwvAmmrdnu6E2oKDMUvs' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 10 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 14], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 10], ["authentication_token", "rwvAmmrdnu6E2oKDMUvs"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 10], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["user_id", 14]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'b61tKpzgJGs9bQ8mGu8c' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 15 [["account_id", 10], ["user_id", 14], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 15], ["auth_token", "b61tKpzgJGs9bQ8mGu8c"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test8" +  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (3.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (5.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (2.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") +  (5.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.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.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-15 13:42:57 -0500 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (9.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (6.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$vsaTj9FLWZY1x3n62i5XT.0eaFaQXHHhAcrxp/j3gpNDgkL/m.J9G"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 15], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rVs1tRUSALH8oijGqTfx' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 11 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 15], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 11], ["authentication_token", "rVs1tRUSALH8oijGqTfx"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 11], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["user_id", 15]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8yqKUz8fpbnaCwMoocqz' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 16 [["account_id", 11], ["user_id", 15], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 16], ["auth_token", "8yqKUz8fpbnaCwMoocqz"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test9" +  (4.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (5.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (6.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "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") +  (10.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (16.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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.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", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$VORNABA7f2fP67lhfrlVOer4cDBEQ7XL63hCOdkieE55qUhjb7MlG"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 16], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CAr9CxfX2Y8XWXFryXvA' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 12 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 16], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 12], ["authentication_token", "CAr9CxfX2Y8XWXFryXvA"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 12], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["user_id", 16]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YT1d4MyxFXf7zRAauHBF' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 17 [["account_id", 12], ["user_id", 16], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 17], ["auth_token", "YT1d4MyxFXf7zRAauHBF"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:42: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-15 13:42:57 -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.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 [["account_id", 11]] +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (9.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (6.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$EGo7DetOGQaco9yA9Unz1.4LdB5Bj8BRHCZ11EcPs8CUiqqi1R1Be"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 17], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'euuAqbp8usHsQXiGyTwb' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 13 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 17], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 13], ["authentication_token", "euuAqbp8usHsQXiGyTwb"]] +  (0.8ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 13], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["user_id", 17]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8uAZ37yu1jQCtHmBkh33' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 18 [["account_id", 13], ["user_id", 17], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 18], ["auth_token", "8uAZ37yu1jQCtHmBkh33"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test11" +  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (3.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (2.2ms) 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 NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 13:42: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-15 13:42: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.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 13]] +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (10.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (5.9ms) ROLLBACK +  (0.3ms) 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", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$vGMK/VDra1/NrUUrIrVl9.qcZ6V2lzY1vfzhvi9LMonYlkxTTJgRG"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 18], ["subdomain", "test12"], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xxvoTEyBSUj2UErAdgXt' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (1.5ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 14 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 18], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 14], ["authentication_token", "xxvoTEyBSUj2UErAdgXt"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 14], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["user_id", 18]] + Cadenero::Member Load (1.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'b4snJhhpzSs5LMsg2E1s' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 19 [["account_id", 14], ["user_id", 18], ["created_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:42:57 UTC +00:00], ["id", 19], ["auth_token", "b4snJhhpzSs5LMsg2E1s"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test12" +  (4.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "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") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) 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-15 13:42: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-15 13:42: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 + Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 14]] +Completed 422 Unprocessable Entity in 6ms (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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (10.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (5.5ms) ROLLBACK +  (0.2ms) BEGIN + ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (10.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (3.0ms) ROLLBACK +  (0.2ms) BEGIN +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (12.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (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", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$P78NMbow/ovPzguyjqAMh.jChW/w7635Oidp.zudIdB1Cu7rpXlMi"], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 19], ["subdomain", "test13"], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RJrJzSUsgHW4AKzzYdLU' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 15 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 19], ["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["id", 15], ["authentication_token", "RJrJzSUsgHW4AKzzYdLU"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 15], ["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["user_id", 19]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'H8Zbhu6nfCddVzKVSmpL' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 20 [["account_id", 15], ["user_id", 19], ["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["id", 20], ["auth_token", "H8Zbhu6nfCddVzKVSmpL"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (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", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$8U4/vmu9ft9d1IM./CxAtOkqgoInXf4mGcsgzDQnY5PNpPMVuhuyS"], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$AdpxRWo50Bp5LHWzHPgNF.gB2R8HKV5i8tw/IN5k.u44nZoJYsEBy"], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["name", "Root"], ["owner_id", 21], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ngLezt1fWEqYqxNfqwbW' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 16 [["name", "Root"], ["subdomain", "www"], ["owner_id", 21], ["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["id", 16], ["authentication_token", "ngLezt1fWEqYqxNfqwbW"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "www" + SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (1.0ms) 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) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (9.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (5.9ms) ROLLBACK +  (0.2ms) BEGIN +  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (9.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (3.0ms) ROLLBACK +  (0.1ms) BEGIN +  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (12.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (3.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$79xa57KInvp90nNMbbbF9.AspNv8hXmwDZdcYlBhtUAHLyOLPGHzi"], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["name", "Test Account"], ["owner_id", 22], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qaNoD7ApUkSn4aLvxzpM' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 17 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 22], ["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["id", 17], ["authentication_token", "qaNoD7ApUkSn4aLvxzpM"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 17], ["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["user_id", 22]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hw2DjzaBqKq1cDE9rHFq' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 21 [["account_id", 17], ["user_id", 22], ["created_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:43:03 UTC +00:00], ["id", 21], ["auth_token", "hw2DjzaBqKq1cDE9rHFq"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (4.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.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') + Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 17]] +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (12.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (6.1ms) ROLLBACK +  (0.2ms) BEGIN + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (1.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (9.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (3.8ms) ROLLBACK +  (0.2ms) BEGIN + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (15.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (6.1ms) ROLLBACK +  (0.2ms) BEGIN + Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (10.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.3ms) ROLLBACK +  (3.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (3.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (25.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.8ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (96.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1001], ["created_at", Mon, 15 Jul 2013 22:07:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:56 UTC +00:00], ["user_id", 101]] + Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PAkskjasBH8B7Nf6hJqN' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (3.1ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 1 [["account_id", 1001], ["user_id", 101], ["created_at", Mon, 15 Jul 2013 22:07:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:56 UTC +00:00], ["id", 1], ["auth_token", "PAkskjasBH8B7Nf6hJqN"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (21.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (12.3ms) ROLLBACK +  (0.3ms) 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 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (24.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (5.0ms) ROLLBACK +  (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.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (34.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (5.3ms) ROLLBACK +  (0.2ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} + Cadenero::Member Load (3.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] + Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] +Completed 200 OK in 207ms (Views: 199.0ms | ActiveRecord: 7.2ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (12.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (3.9ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON + Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] +Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 1.7ms) +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (9.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$TyooFAv0aCUq1hygBKjnguyIKy14GoDMszi1WzL3y.WVsIRL9N2LS"], ["updated_at", Mon, 15 Jul 2013 22:07:57 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" = 'test1' LIMIT 1 + SQL (1.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Pm6qi5rKrzd74DyeNBFH' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["id", 1], ["authentication_token", "Pm6qi5rKrzd74DyeNBFH"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["user_id", 1]] + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Nb2yNMygqDVQsb9Eqxp9' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 2 [["account_id", 1], ["user_id", 1], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["id", 2], ["auth_token", "Nb2yNMygqDVQsb9Eqxp9"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) CREATE SCHEMA "test1" + SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (7.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 17:07: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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$4e36kkxzk.GCKCoLE0DSeOtALpXSNRyvA5c93nubTF0Zn1yr56z/W"], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00]] + SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["user_id", 2]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Bj6Lk5pHV4A4YbkQ8aAZ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 3 [["account_id", 1], ["user_id", 2], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["id", 3], ["auth_token", "Bj6Lk5pHV4A4YbkQ8aAZ"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (2.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 2]] + Cadenero::V1::Account Load (3.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 2]] + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 2]] +Completed 201 Created in 98ms (Views: 16.7ms | ActiveRecord: 12.1ms) + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 17:07:57 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"2"} + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 2 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 1]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 2]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 2]] + Cadenero::V1::Account Load (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" = $1 [["user_id", 2]] +Completed 200 OK in 29ms (Views: 16.0ms | ActiveRecord: 4.6ms) +  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (24.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (4.9ms) ROLLBACK +  (2.4ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$QEgzkt3c9zbEqV72ozYwV.X5PnujmUVNE8qUORa6OAQqoFzZi.o0e"], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 3], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XxYwcbWhsWxbaaUSL8pf' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (2.4ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 2 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 3], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["id", 2], ["authentication_token", "XxYwcbWhsWxbaaUSL8pf"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["user_id", 3]] + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AqAcwTXfdeux7Tq9sRKA' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 4 [["account_id", 2], ["user_id", 3], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["id", 4], ["auth_token", "AqAcwTXfdeux7Tq9sRKA"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test2" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (3.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.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/users" for 127.0.0.1 at 2013-07-15 17:07: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' ORDER BY "public"."cadenero_accounts"."id" ASC 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", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$uhsm/unO1.GT/6NHn9gI3epN0765k4siWyK9oBB5ju4uoOMbmSny2"], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00]] + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["user_id", 4]] + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2UyzLa86n7vyTpzfbjnm' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 5 [["account_id", 2], ["user_id", 4], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["id", 5], ["auth_token", "2UyzLa86n7vyTpzfbjnm"]] +  (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" = 4 LIMIT 1 + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] +Completed 201 Created in 23ms (Views: 6.4ms | ActiveRecord: 5.1ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/4" for 127.0.0.1 at 2013-07-15 17:07:57 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"4"} + Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = $1 AND "public"."cadenero_users"."id" = 4 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 2]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] +Completed 200 OK in 14ms (Views: 7.4ms | ActiveRecord: 3.2ms) + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 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.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 4], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XhwpB6BjydwwipwcRd3q' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 3 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 4], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["id", 3], ["authentication_token", "XhwpB6BjydwwipwcRd3q"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["user_id", 4]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BiKxvsxFdvq7wVBBTJTX' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 6 [["account_id", 3], ["user_id", 4], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["id", 6], ["auth_token", "BiKxvsxFdvq7wVBBTJTX"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) CREATE SCHEMA "test3" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (2.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 17:07: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$4W/nxnrYAF1.Ga6hqZv1uul1J5svqZ6VmVsmI/rCMB5xLwQz5HCXm"], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00]] + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["user_id", 5]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'q1MxhrUTD9rVgybtANmT' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 7 [["account_id", 3], ["user_id", 5], ["created_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:57 UTC +00:00], ["id", 7], ["auth_token", "q1MxhrUTD9rVgybtANmT"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 LIMIT 1 + Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 5]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 5]] + Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 5]] +Completed 201 Created in 24ms (Views: 6.6ms | ActiveRecord: 5.8ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/5" for 127.0.0.1 at 2013-07-15 17:07:57 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"5"} + 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.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 5 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 3]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 5]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 5]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 5]] +Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 2.2ms) +Started GET "/v1/users/4" for 127.0.0.1 at 2013-07-15 17:07:57 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"4"} + Cadenero::V1::Account Load (0.4ms) 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" = $1 AND "public"."cadenero_users"."id" = 4 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 2]] + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] +Completed 200 OK in 32ms (Views: 26.1ms | ActiveRecord: 2.7ms) +Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 17:07:57 -0500 +Processing by Cadenero::V1::Account::UsersController#index as HTML + Parameters: {"default"=>:json} + Cadenero::V1::Account Load (0.6ms) 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" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 + Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 2]] + Cadenero::Member Load (1.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] + Cadenero::Member Load (2.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 3]] + Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 3]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 3]] +Completed 200 OK in 39ms (Views: 26.2ms | ActiveRecord: 8.4ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (26.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (26.5ms) ROLLBACK +  (0.2ms) BEGIN +  (0.7ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$6vBNIiuygDxuMVkpl.8nJe1bCThnXHVOTs7D6CIOaLuI7DhNddPZW"], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + SQL (3.2ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 6], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'C7eFqsRiUarE6WsWezW3' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (25.4ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 4 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 6], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["id", 4], ["authentication_token", "C7eFqsRiUarE6WsWezW3"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["user_id", 6]] + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KBRBtpzkiku9zpEs5zYJ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (2.9ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 8 [["account_id", 4], ["user_id", 6], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["id", 8], ["auth_token", "KBRBtpzkiku9zpEs5zYJ"]] +  (6.4ms) RELEASE SAVEPOINT active_record_1 +  (1.6ms) CREATE SCHEMA "test4" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (7.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (9.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (3.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (2.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (7.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (25.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (3.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 17:07: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/sessions" for 127.0.0.1 at 2013-07-15 17:07:58 -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 ('test4') LIMIT 1 + Cadenero::User Load (6.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 4]] + Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 + Cadenero::Member Load (6.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] +Completed 201 Created in 34ms (Views: 9.4ms | ActiveRecord: 16.2ms) + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 4]] +Started GET "/v1" for 127.0.0.1 at 2013-07-15 17:07:58 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} + Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 1.2ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (15.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (11.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$Xvv29hF8feeK3PC/TX5hmubDsFqtGfPr/qUfpd2jVn84sJ6UocAVO"], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (2.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 7], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VuqTxQSAB9LmGtC1Qbzf' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 5 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 7], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["id", 5], ["authentication_token", "VuqTxQSAB9LmGtC1Qbzf"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["user_id", 7]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3rzfL6knHfF45YtWLxJc' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 9 [["account_id", 5], ["user_id", 7], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["id", 9], ["auth_token", "3rzfL6knHfF45YtWLxJc"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) CREATE SCHEMA "test5" + SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 17:07:58 -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.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 5]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 7]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] +Completed 201 Created in 17ms (Views: 6.5ms | ActiveRecord: 3.2ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 5]] +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 17:07:58 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"7", "default"=>:json} + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-15 17:07: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.2ms | ActiveRecord: 0.0ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (10.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (6.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$52oSWKGzv68kHyoF.v402.B24CIl/6W1e4vWauyFGxSFPX8pNxH6K"], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 8], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'szjqJp4pipxfmKKTTcs7' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 6 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 8], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["id", 6], ["authentication_token", "szjqJp4pipxfmKKTTcs7"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["user_id", 8]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vpjmmgzX2MXxwhzqBqdA' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (1.2ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 10 [["account_id", 6], ["user_id", 8], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["id", 10], ["auth_token", "vpjmmgzX2MXxwhzqBqdA"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (1.2ms) CREATE SCHEMA "test6" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (3.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (3.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (4.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.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-15 17:07: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-15 17:07: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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$B0d7xLwQW/2zZsv4r03TJeMlSJO1ZtZ9ONShc2gxSr2HlAYcGCp3i"], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00]] + SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["user_id", 9]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NfgTZtbaJQSiyBxy54nn' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.9ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 11 [["account_id", 6], ["user_id", 9], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["id", 11], ["auth_token", "NfgTZtbaJQSiyBxy54nn"]] +  (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" = 9 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] +Completed 201 Created in 27ms (Views: 6.6ms | ActiveRecord: 6.4ms) + Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/9" for 127.0.0.1 at 2013-07-15 17:07:58 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"9"} + 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.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 9 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 6]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] +Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 2.3ms) + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 17:07:58 -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" = 9 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] +Completed 201 Created in 9ms (Views: 5.9ms | ActiveRecord: 1.5ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-07-15 17:07:58 -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" = 9 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.4ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (9.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (5.7ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$rnnxyCT4XllGIiMXTMDMlOsFzXe9RemEFAaqlYuJ0ag6OyLAbj55W"], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 10], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dzwGyt2CCcQZZqGqFvAJ' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 7 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 10], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["id", 7], ["authentication_token", "dzwGyt2CCcQZZqGqFvAJ"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["user_id", 10]] + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HGQpzqmrtvobVhCJctEr' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 12 [["account_id", 7], ["user_id", 10], ["created_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:58 UTC +00:00], ["id", 12], ["auth_token", "HGQpzqmrtvobVhCJctEr"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test7" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (19.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (3.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (13.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (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.3ms) SELECT version FROM "schema_migrations" +  (0.7ms) 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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 17:07:58 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 + Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 7]] + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 10 LIMIT 1 + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 10]] + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 10]] + Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 10]] +Completed 201 Created in 22ms (Views: 7.2ms | ActiveRecord: 5.0ms) + Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 7]] + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user6@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 17:07:59 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"10", "default"=>:json} + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 10 LIMIT 1 +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-15 17:07:59 -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-15 17:07:59 -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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.4ms) SAVEPOINT active_record_1 + SQL (6.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$4DqxI1AHsGAMDkSjT3eh0u2hOHEn/L91iOixP/QxakH2nSnwUfSci"], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["user_id", 11]] + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mAWwFkh5nCBaUiN7z6Yj' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 13 [["account_id", 7], ["user_id", 11], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 13], ["auth_token", "mAWwFkh5nCBaUiN7z6Yj"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 11 LIMIT 1 + Cadenero::Member Load (4.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 11]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 11]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 11]] +Completed 201 Created in 46ms (Views: 9.8ms | ActiveRecord: 17.4ms) + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/11" for 127.0.0.1 at 2013-07-15 17:07:59 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"11"} + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 11 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 7]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 11 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 11]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 11]] + Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 11]] +Completed 200 OK in 17ms (Views: 9.2ms | ActiveRecord: 3.2ms) + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 17:07:59 -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" = 11 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 11]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 11]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 11]] +Completed 201 Created in 8ms (Views: 5.1ms | ActiveRecord: 1.4ms) + Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (10.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (6.5ms) ROLLBACK +  (0.5ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$0p4Qx6WnwXxKee66GT.10uAGbYPJ3ojg3VhRnSnj0XtzcHI7y1Ufi"], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 12], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RqWM6SMtZGwmTa7ATLHp' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 8 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 12], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 8], ["authentication_token", "RqWM6SMtZGwmTa7ATLHp"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 8], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["user_id", 12]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BqkpZqMq1qzzTyAxiQee' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 14 [["account_id", 8], ["user_id", 12], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 14], ["auth_token", "BqkpZqMq1qzzTyAxiQee"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test8" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (6.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 17:07:59 -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-15 17:07:59 -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.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 8]] +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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (10.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (4.7ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$QEJ2u.uDSfMAH.o/r8Jr2eQc1UDOec1Qr4z.1hqzb5ITgV2zi10S2"], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 13], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nsxeT4F4pg7mpijKsp7d' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 9 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 13], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 9], ["authentication_token", "nsxeT4F4pg7mpijKsp7d"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 9], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["user_id", 13]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RU6irZqKTVMwfSpsFMf1' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 15 [["account_id", 9], ["user_id", 13], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 15], ["auth_token", "RU6irZqKTVMwfSpsFMf1"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test9" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (28.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (5.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (5.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (10.6ms) SELECT version FROM "schema_migrations" +  (1.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') +  (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", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$f2YGTKarcbAspyQLN2BPSefa0A4R6CUe9ue5bjQcChjZsVi31VZra"], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 14], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qEyDRttDugFRmbAcrndx' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 10 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 14], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 10], ["authentication_token", "qEyDRttDugFRmbAcrndx"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 10], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["user_id", 14]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fqeHK2sJZBwpXyiphsqK' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 16 [["account_id", 10], ["user_id", 14], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 16], ["auth_token", "fqeHK2sJZBwpXyiphsqK"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-07-15 17:07:59 -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-15 17:07:59 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 + Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 [["account_id", 9]] +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.2ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (10.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (11.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$9N0FGtiVnS3ZxYk.TVT8kOhcGzjRemDxyuN44dVY8Nu0Ar1JZ0bG."], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]] +  (2.0ms) RELEASE SAVEPOINT active_record_1 +  (3.0ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 15], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZyndAUt8o5YxT2AJDYpG' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 11 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 15], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 11], ["authentication_token", "ZyndAUt8o5YxT2AJDYpG"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 11], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["user_id", 15]] + Cadenero::Member Load (1.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ygXDGkKWsHVTDxpZ5Y8x' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (1.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 17 [["account_id", 11], ["user_id", 15], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 17], ["auth_token", "ygXDGkKWsHVTDxpZ5Y8x"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test11" + SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (6.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (5.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.2ms) 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" +  (1.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-15 17:07:59 -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-15 17:07:59 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 + Cadenero::User Load (4.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 11]] +Completed 422 Unprocessable Entity in 11ms (Views: 0.4ms | ActiveRecord: 4.9ms) + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (12.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (12.3ms) ROLLBACK +  (3.3ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$CO/XDgJMd.wcqa5lgW.Ka.OgjxbO4rNkGW4o3au1yQgy9OiHLe6N2"], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 16], ["subdomain", "test12"], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5TqMMH7k7kzNyzDhwhxp' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (1.0ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 12 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 16], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 12], ["authentication_token", "5TqMMH7k7kzNyzDhwhxp"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 12], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["user_id", 16]] + Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NRHUpsqVxUytTceatN6s' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 18 [["account_id", 12], ["user_id", 16], ["created_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:07:59 UTC +00:00], ["id", 18], ["auth_token", "NRHUpsqVxUytTceatN6s"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test12" + SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (7.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (6.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (3.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 17:07:59 -0500 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (9.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (7.9ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} + Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1001]] +Completed 201 Created in 6ms (Views: 3.6ms | ActiveRecord: 1.2ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (10.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (4.8ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account"}} +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (11.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (4.5ms) ROLLBACK +  (0.2ms) BEGIN +  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (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", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$t4wnRpdfZGt3rmi/wYBdzubik7wvzUAFR4/..CHCRaKbP/2J2r0Eq"], ["updated_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 17], ["subdomain", "test13"], ["updated_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3YaJ5pRk3xSaSetajwhh' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 13 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 17], ["created_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["id", 13], ["authentication_token", "3YaJ5pRk3xSaSetajwhh"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 13], ["created_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["user_id", 17]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qPhtMj5GmUMJWxXApSLY' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 19 [["account_id", 13], ["user_id", 17], ["created_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["id", 19], ["auth_token", "qPhtMj5GmUMJWxXApSLY"]] +  (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", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$clMwLBLScVOmnZex88w8/O0aUeAc30kbtb39/LUgPGg4D6ZPEQ81G"], ["updated_at", Mon, 15 Jul 2013 22:08:03 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", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$4RakMNUScRsYw6k1mZgF3ekE/pay/sktczPOrDBvziwZmYmP1P/5u"], ["updated_at", Mon, 15 Jul 2013 22:08: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" = 'www' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["name", "Root"], ["owner_id", 19], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TK7oHBs1osXD9FcSBest' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 14 [["name", "Root"], ["subdomain", "www"], ["owner_id", 19], ["created_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:03 UTC +00:00], ["id", 14], ["authentication_token", "TK7oHBs1osXD9FcSBest"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "www" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) 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') +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (15.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (6.9ms) ROLLBACK +  (0.2ms) BEGIN + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (11.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (19.5ms) ROLLBACK +  (0.7ms) BEGIN +  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (11.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (18.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (26.0ms) ROLLBACK +  (2.0ms) BEGIN +  (2.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (34.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (8.8ms) ROLLBACK +  (0.2ms) BEGIN +  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (10.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.7ms) ROLLBACK +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 17:08:07 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$uTif9uiOLikskjYlrGWt2eA806YdA5RE5m9U4e1M4LF9eJvsKdd7y"], ["updated_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["name", "Testy"], ["owner_id", 20], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8pqtxczu6QS1HzfVpQou' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 15 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 20], ["created_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["id", 15], ["authentication_token", "8pqtxczu6QS1HzfVpQou"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 15], ["created_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["user_id", 20]] + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HAoKz7ThbjePntzW5qcX' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 20 [["account_id", 15], ["user_id", 20], ["created_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["id", 20], ["auth_token", "HAoKz7ThbjePntzW5qcX"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 15) LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 20 LIMIT 1 + Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 15]] +Completed 201 Created in 92ms (Views: 6.3ms | ActiveRecord: 40.7ms) + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (9.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (5.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$smTwvjBaAdwF/0.fWWV8mOykHQLLdZqrmq.vCZYw3yBEiWElIKNta"], ["updated_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["name", "Testy"], ["owner_id", 21], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'KePKvR1RCePKSrDRxKqj' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 16 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 21], ["created_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:07 UTC +00:00], ["id", 16], ["authentication_token", "KePKvR1RCePKSrDRxKqj"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 17:08:07 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 + CACHE (0.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 32ms (Views: 0.4ms | ActiveRecord: 1.0ms) + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (342.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (17.1ms) ROLLBACK +  (2.5ms) BEGIN + Cadenero::V1::Account Exists (3.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (25.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (9.5ms) ROLLBACK +  (0.2ms) BEGIN + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (10.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (6.4ms) ROLLBACK +  (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.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (10.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:08:08 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$IazGRVanh3mnYPZgrzpOUO641jRYt62H757Zgi/ulT3pPPyFkrOla"], ["updated_at", Mon, 15 Jul 2013 22:08:08 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 22:08:08 UTC +00:00], ["name", "Test Account"], ["owner_id", 22], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 22:08:08 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'f5Gys4JxsaUyRPAbs4dR' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 17 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 22], ["created_at", Mon, 15 Jul 2013 22:08:08 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:08 UTC +00:00], ["id", 17], ["authentication_token", "f5Gys4JxsaUyRPAbs4dR"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 17], ["created_at", Mon, 15 Jul 2013 22:08:08 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:08 UTC +00:00], ["user_id", 22]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tSztxd3K96yPzoKkp8WP' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 21 [["account_id", 17], ["user_id", 22], ["created_at", Mon, 15 Jul 2013 22:08:08 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 22:08:08 UTC +00:00], ["id", 21], ["auth_token", "tSztxd3K96yPzoKkp8WP"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) CREATE SCHEMA "test" + SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (3.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.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.3ms) 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" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 17]] +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (12.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (9.6ms) ROLLBACK +  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (24.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.2ms) BEGIN +  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.2ms) SAVEPOINT active_record_1 + SQL (61.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$UQQAgsXVX3H2EvIYbLhri.SHsxwSeCIRMtjpZKmqpBPYI9N1Z0soi"], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + SQL (1.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00]] + Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pRNHi2sXTmAVurxmHPG3' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (1.2ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["id", 1], ["authentication_token", "pRNHi2sXTmAVurxmHPG3"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["user_id", 1]] + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Xsscy2rWQvrKpE2ShpBH' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 1 [["account_id", 1], ["user_id", 1], ["created_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["id", 1], ["auth_token", "Xsscy2rWQvrKpE2ShpBH"]] +  (0.2ms) RELEASE SAVEPOINT active_record_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", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$9864jb38kkEU9eJGa5kQGu/iS4aMHEoL8zDHSNDbFbJLHXnTCPQRC"], ["updated_at", Tue, 16 Jul 2013 00:32:30 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", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$kvizL66/iZ7qLTrZfRM5FeyMAqPM8q3F5uyb3ewP9bP5lODMcgaDm"], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VjAdq1xKab69vqqp1Qm1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 2 [["name", "Root"], ["subdomain", "www"], ["owner_id", 3], ["created_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["id", 2], ["authentication_token", "VjAdq1xKab69vqqp1Qm1"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["user_id", 3]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7uxCZ3NNJofyLesp29jZ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 2 [["account_id", 2], ["user_id", 3], ["created_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:30 UTC +00:00], ["id", 2], ["auth_token", "7uxCZ3NNJofyLesp29jZ"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) CREATE SCHEMA "www" + SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (6.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (12.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (8.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (9.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (3.8ms) ROLLBACK +  (0.2ms) BEGIN + ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (3.5ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (20.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (9.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (12.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (5.7ms) ROLLBACK +  (0.4ms) 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 4ms (Views: 0.6ms | ActiveRecord: 0.0ms) +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (20.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (16.0ms) ROLLBACK +  (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.3ms | ActiveRecord: 0.0ms) +  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (12.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (6.4ms) ROLLBACK +  (0.5ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} + Cadenero::Member Load (2.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] + Cadenero::V1::Account Load (2.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] + Cadenero::V1::Account Load (2.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] +Completed 200 OK in 159ms (Views: 150.2ms | ActiveRecord: 7.8ms) +  (2.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (19.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (6.0ms) ROLLBACK +  (2.7ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#index as JSON + Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["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" = $1 [["user_id", 101]] +Completed 200 OK in 9ms (Views: 6.0ms | ActiveRecord: 2.3ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (8.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (9.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$zLndLRdz/WXPfGEzYzLxCO6DdrUofHxBn69sUDlVvzMRZWGp2VB2q"], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 4], ["subdomain", "test2"], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UxWCCPpLvx9s6EeN9LLD' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 3 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 4], ["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["id", 3], ["authentication_token", "UxWCCPpLvx9s6EeN9LLD"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 3], ["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["user_id", 4]] + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'na5AyirzUbLwspRyjpVQ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.8ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 3 [["account_id", 3], ["user_id", 4], ["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["id", 3], ["auth_token", "na5AyirzUbLwspRyjpVQ"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test2" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (6.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (10.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (7.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.6ms) SELECT version FROM "schema_migrations" +  (0.5ms) 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-15 19:32:35 -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 53ms (Views: 0.4ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:32:35 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 + Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 3]] + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 + Cadenero::Member Load (2.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] + Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] +Completed 201 Created in 27ms (Views: 11.2ms | ActiveRecord: 5.2ms) + Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 3]] +Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:32:35 -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" = 4 LIMIT 1 +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (9.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (10.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$MHROtIKFP9V76OzccoVfVe8xBc.ZAGmO5YodphU1tr3tDcl2y9PjG"], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 5], ["subdomain", "test3"], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'geViznmmbtvyFqZwk9rw' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 4 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 5], ["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["id", 4], ["authentication_token", "geViznmmbtvyFqZwk9rw"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["user_id", 5]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GcBCzGRycaVRM15Nrugu' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 4 [["account_id", 4], ["user_id", 5], ["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["id", 4], ["auth_token", "GcBCzGRycaVRM15Nrugu"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test3" + SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (15.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (5.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.8ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 19:32:35 -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-15 19:32:35 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' ORDER BY "public"."cadenero_accounts"."id" ASC 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", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$fty4SrjQEjfo3qkOi17aWedlXQMmT6FraSlR7uxL8zZYK6yY96flm"], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 4], ["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["user_id", 6]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oEsgtw3t9qqUfUiHHjpR' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 5 [["account_id", 4], ["user_id", 6], ["created_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:35 UTC +00:00], ["id", 5], ["auth_token", "oEsgtw3t9qqUfUiHHjpR"]] +  (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" = 6 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] + Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] +Completed 201 Created in 26ms (Views: 7.8ms | ActiveRecord: 6.3ms) + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/6" for 127.0.0.1 at 2013-07-15 19:32:35 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"6"} + 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.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 6 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 4]] + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] +Completed 200 OK in 13ms (Views: 6.4ms | ActiveRecord: 2.3ms) + Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:32:35 -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" = 6 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] +Completed 201 Created in 8ms (Views: 5.3ms | ActiveRecord: 1.3ms) + Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:32:35 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.6ms) +  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (12.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (7.5ms) ROLLBACK +  (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", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$eXWetL.JT9X0QXJ60kXyzO29ne52/6k6ff1kcMeuQRliL4rQIDfVK"], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 7], ["subdomain", "test4"], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QMsQSB33p3z4XQEvZ1jX' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 5 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 7], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["id", 5], ["authentication_token", "QMsQSB33p3z4XQEvZ1jX"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["user_id", 7]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qJnPhQ9K23MptBPvWchG' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 6 [["account_id", 5], ["user_id", 7], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["id", 6], ["auth_token", "qJnPhQ9K23MptBPvWchG"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test4" + SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (7.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (15.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (7.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.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.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-15 19:32:36 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 [["account_id", 5]] + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 7]] + Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 7]] +Completed 201 Created in 19ms (Views: 8.1ms | ActiveRecord: 4.1ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 5]] + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user5@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:32:36 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"7", "default"=>:json} + Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 1.6ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:32:36 -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-15 19:32:36 -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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.1ms) 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", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$coWUr0bLprBUg4CZL1H39OBN3FFOWbCnFPaUPk/c5DhRTngIrntdm"], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 5], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["user_id", 8]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 's2sHCzqX1cdUQkA1DMKG' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 7 [["account_id", 5], ["user_id", 8], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["id", 7], ["auth_token", "s2sHCzqX1cdUQkA1DMKG"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (19.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 8]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] +Completed 201 Created in 150ms (Views: 18.0ms | ActiveRecord: 31.4ms) + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/8" for 127.0.0.1 at 2013-07-15 19:32:36 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"8"} + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 8 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 5]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 + Cadenero::Member Load (28.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 8]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] +Completed 200 OK in 54ms (Views: 9.5ms | ActiveRecord: 31.4ms) + Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:32:36 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::User Load (2.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 + Cadenero::Member Load (1.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] + Cadenero::V1::Account Load (46.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 8]] + Cadenero::V1::Account Load (26.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 8]] +Completed 201 Created in 89ms (Views: 8.6ms | ActiveRecord: 77.7ms) + Cadenero::V1::Account Load (4.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (14.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (18.1ms) ROLLBACK +  (4.4ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$aqWurEG8cL.bwCQADR6aMuC30RIn7waHpGuonIDDhaxX0azbc2zvW"], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + SQL (3.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 9], ["subdomain", "test5"], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MyxdmJ14Kohu4qvxGc1x' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 6 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 9], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["id", 6], ["authentication_token", "MyxdmJ14Kohu4qvxGc1x"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (4.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 6], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["user_id", 9]] + Cadenero::Member Load (2.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SfuA57PpxkDBHMCapQaP' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (1.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 8 [["account_id", 6], ["user_id", 9], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["id", 8], ["auth_token", "SfuA57PpxkDBHMCapQaP"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test5" + SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (10.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (7.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (8.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (6.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.6ms) SELECT version FROM "schema_migrations" +  (0.9ms) 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-15 19:32:36 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 + Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 6]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 + Cadenero::Member Load (7.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] + Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 9]] +Completed 201 Created in 29ms (Views: 7.4ms | ActiveRecord: 11.3ms) + Cadenero::V1::Account Load (7.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + Cadenero::Member Load (9.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 6]] +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:32:36 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"9", "default"=>:json} + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:32:36 -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) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (37.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (11.7ms) ROLLBACK +  (0.5ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$wEWm/dem1Gymvy/r0Jf03.NAbEp0C5thbR3bJcQBcLvRcQjb4W1US"], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 10], ["subdomain", "test6"], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZooxyrjYKVMxfTTZJyUF' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (4.1ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 7 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 10], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["id", 7], ["authentication_token", "ZooxyrjYKVMxfTTZJyUF"]] +  (9.9ms) RELEASE SAVEPOINT active_record_1 +  (1.9ms) SAVEPOINT active_record_1 + SQL (3.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 7], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["user_id", 10]] + Cadenero::Member Load (5.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PdofgbsRhbgYgjcZ7Ha4' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (4.4ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 9 [["account_id", 7], ["user_id", 10], ["created_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:36 UTC +00:00], ["id", 9], ["auth_token", "PdofgbsRhbgYgjcZ7Ha4"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test6" + SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (7.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (7.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (9.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (31.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (26.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.9ms) 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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (1.5ms) 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-15 19:32:37 -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.4ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:32:37 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (3.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 + Cadenero::User Load (12.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 7]] +Completed 422 Unprocessable Entity in 21ms (Views: 0.4ms | ActiveRecord: 16.4ms) + Cadenero::V1::Account Load (10.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (29.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (8.0ms) ROLLBACK +  (0.3ms) BEGIN +  (1.8ms) SAVEPOINT active_record_1 + SQL (8.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$EgAWk0pjQHalaJCgxRNPROIinfQ6ZBACLOCbTN7zj/pCuek9gdKce"], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00]] +  (6.4ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 11], ["subdomain", "test7"], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YCAqxVCkRzqRpqYzg9j7' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (5.9ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 8 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 11], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["id", 8], ["authentication_token", "YCAqxVCkRzqRpqYzg9j7"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 8], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["user_id", 11]] + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wCQi6LLYMsxxER9TRxAs' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (6.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 10 [["account_id", 8], ["user_id", 11], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["id", 10], ["auth_token", "wCQi6LLYMsxxER9TRxAs"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test7" + SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (4.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.0ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:32:37 -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-15 19:32:37 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 + Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 8]] +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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (46.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (11.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$XqbkGEMOU4ETrXIt1sercuIHCJ56r8pQGqMOzpk9BkAT4C06D8d7e"], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 12], ["subdomain", "test8"], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YEUuHQJhpHTFKpuokG4v' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 9 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 12], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["id", 9], ["authentication_token", "YEUuHQJhpHTFKpuokG4v"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 9], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["user_id", 12]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'D7J4rZFUsB2Tm563C5sS' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (6.3ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 11 [["account_id", 9], ["user_id", 12], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["id", 11], ["auth_token", "D7J4rZFUsB2Tm563C5sS"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test8" + SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (30.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (26.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (11.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (9.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (10.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (4.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-15 19:32:37 -0500 + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (2.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (9.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (7.5ms) ROLLBACK +  (0.6ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$qqXGfssZsY3uqb02WHIIruEgy/rcHKd7KNusN2mXTGzzZSoiQIfbe"], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 13], ["subdomain", "test9"], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QGrfiJ9UmxHjX55qUTZG' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 10 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 13], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["id", 10], ["authentication_token", "QGrfiJ9UmxHjX55qUTZG"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 10], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["user_id", 13]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZqvbTozUEJXdXkgUsnzL' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 12 [["account_id", 10], ["user_id", 13], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["id", 12], ["auth_token", "ZqvbTozUEJXdXkgUsnzL"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test9" + SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (6.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (6.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.5ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$L04SR99ZbFNFEzM85cQMSOrHdeHQYQHpHbziZdRqnwhcbkkGcGz0W"], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 14], ["subdomain", "test10"], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TbDGhZghnzs5fvoSWpWF' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 11 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 14], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["id", 11], ["authentication_token", "TbDGhZghnzs5fvoSWpWF"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 11], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["user_id", 14]] + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bCxQCjKJVPDVEkz2Xq8A' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 13 [["account_id", 11], ["user_id", 14], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["id", 13], ["auth_token", "bCxQCjKJVPDVEkz2Xq8A"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:32:37 -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-15 19:32:37 -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 ('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" = $1 AND "public"."cadenero_users"."email" = 'user11@example.com' LIMIT 1 [["account_id", 10]] +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | 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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (14.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (10.8ms) ROLLBACK +  (0.7ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} + Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1001]] +Completed 201 Created in 50ms (Views: 47.4ms | ActiveRecord: 1.2ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (8.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (3.0ms) ROLLBACK +  (1.7ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account"}} +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (10.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.1ms) ROLLBACK +  (0.1ms) BEGIN +  (1.3ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1001], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["user_id", 101]] + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fMipLurF8Xh2RkRo9nTR' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 14 [["account_id", 1001], ["user_id", 101], ["created_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:37 UTC +00:00], ["id", 14], ["auth_token", "fMipLurF8Xh2RkRo9nTR"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (10.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.1ms) ROLLBACK +  (0.2ms) BEGIN + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (10.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.1ms) ROLLBACK +  (0.2ms) BEGIN + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (9.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.3ms) ROLLBACK +  (0.7ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$8KUcThhs68r7iOnL96idw.tVk8mX2dT48xmnDvJ7IO.gnUxq9ZQT6"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["name", "Test Account"], ["owner_id", 15], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oUptgVex9kQ538eVMmKH' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 12 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 15], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 12], ["authentication_token", "oUptgVex9kQ538eVMmKH"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 12], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["user_id", 15]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'KXFMLUgszqgfaQPJ3CgJ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 15 [["account_id", 12], ["user_id", 15], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 15], ["auth_token", "KXFMLUgszqgfaQPJ3CgJ"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (8.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (5.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('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::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 12]] +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (10.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (6.8ms) ROLLBACK +  (0.2ms) BEGIN + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (11.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (3.1ms) ROLLBACK +  (0.2ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 19:32: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.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$939bH5G9e2/ZIvhryZTCF.L4EqvaSwBLno33wlhr5uWTEpug.PunC"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] + SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["name", "Testy"], ["owner_id", 16], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Peu551rRLYiVs7wWcsU5' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 13 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 16], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 13], ["authentication_token", "Peu551rRLYiVs7wWcsU5"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 13], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["user_id", 16]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ckWTmuX7bZW7NPkiLrqr' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 16 [["account_id", 13], ["user_id", 16], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 16], ["auth_token", "ckWTmuX7bZW7NPkiLrqr"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test" + SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (2.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.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') + 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" != 13) LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 16 LIMIT 1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 13]] +Completed 201 Created in 146ms (Views: 6.5ms | ActiveRecord: 43.2ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (10.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (7.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$aztgeGi2ItieZ2bx9asnEeDhNuMM2Zv4zSfM/spe.by8sXWY8tWgG"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["name", "Testy"], ["owner_id", 17], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'G8egJttYZVpd3FTKcNuM' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 14 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 17], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 14], ["authentication_token", "G8egJttYZVpd3FTKcNuM"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 19:32: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.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 + CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 12ms (Views: 0.4ms | ActiveRecord: 0.7ms) + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (15.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (3.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$0Uk.vi5rfuBITsE8O2ROWeps1NuCCPCooUprctDEshXIZ49WtWZ5C"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 18], ["subdomain", "test11"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GnwZVZpcKAERqWAsiYKN' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 15 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 18], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 15], ["authentication_token", "GnwZVZpcKAERqWAsiYKN"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 15], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["user_id", 18]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GCU9tqRXS4qdPPVPx2Km' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 17 [["account_id", 15], ["user_id", 18], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 17], ["auth_token", "GCU9tqRXS4qdPPVPx2Km"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test11" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (4.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.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/users" for 127.0.0.1 at 2013-07-15 19:32:38 -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" = 'test11' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$keOSCtnIAvIUSzsa.k0Ix.mhbm8x2AFmHHjXeK..8LFD2Ds6pdyd2"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] + SQL (2.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 15], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["user_id", 19]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iAZrz55AsPTmAVBAdxsp' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 18 [["account_id", 15], ["user_id", 19], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 18], ["auth_token", "iAZrz55AsPTmAVBAdxsp"]] +  (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" = 19 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 19]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 19]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 19]] +Completed 201 Created in 25ms (Views: 6.3ms | ActiveRecord: 6.6ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/19" for 127.0.0.1 at 2013-07-15 19:32:38 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"19"} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = $1 AND "public"."cadenero_users"."id" = 19 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 15]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 19 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 19]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 19]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 19]] +Completed 200 OK in 11ms (Views: 5.9ms | ActiveRecord: 2.3ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (11.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (7.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$Tnv95M/TEpOTZpK4.SXjbe7K09mYg.PERotERUWPTc8FrYysiBXoO"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 20], ["subdomain", "test12"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'szqL2kcKsnB4D64PUU27' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 16 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 20], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 16], ["authentication_token", "szqL2kcKsnB4D64PUU27"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 16], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["user_id", 20]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CMCoeyzyEuWVwNfzuzxC' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 19 [["account_id", 16], ["user_id", 20], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 19], ["auth_token", "CMCoeyzyEuWVwNfzuzxC"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test12" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (6.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 19:32:38 -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" = 'test12' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$HZvwz6XUL.vGnjmf8OVEIO1YMaP1vjwHz3/BFCocY9TLv3xyU/L5e"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 16], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["user_id", 21]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pBKUzK4CwCh1aY3ey4hQ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 20 [["account_id", 16], ["user_id", 21], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 20], ["auth_token", "pBKUzK4CwCh1aY3ey4hQ"]] +  (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" = 21 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 21]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 21]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 21]] +Completed 201 Created in 22ms (Views: 6.1ms | ActiveRecord: 4.8ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/21" for 127.0.0.1 at 2013-07-15 19:32:38 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"21"} + 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.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 21 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 16]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 21 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 21]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 21]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 21]] +Completed 200 OK in 12ms (Views: 5.8ms | ActiveRecord: 2.3ms) + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 21], ["subdomain", "test13"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pV9qqqkCRwzyazQyyyLZ' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 17 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 21], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 17], ["authentication_token", "pV9qqqkCRwzyazQyyyLZ"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 17], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["user_id", 21]] + Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'su9PzwcF3psLrX7yeQLG' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 21 [["account_id", 17], ["user_id", 21], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 21], ["auth_token", "su9PzwcF3psLrX7yeQLG"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test13" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 19:32:38 -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" = 'test13' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$xuLvfVsU.McYVtvjsDBXjO/HRamMAD9FrDC.ew4KRkoljPcdwacI6"], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 17], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["user_id", 22]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '367fpEyTtP11aYk34T1s' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 22 [["account_id", 17], ["user_id", 22], ["created_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:32:38 UTC +00:00], ["id", 22], ["auth_token", "367fpEyTtP11aYk34T1s"]] +  (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" = 22 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 22]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 22]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 22]] +Completed 201 Created in 23ms (Views: 6.7ms | ActiveRecord: 4.7ms) + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/22" for 127.0.0.1 at 2013-07-15 19:32:38 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"22"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 22 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 17]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 22 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 22]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 22]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 22]] +Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 2.2ms) +Started GET "/v1/users/21" for 127.0.0.1 at 2013-07-15 19:32:38 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"21"} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = $1 AND "public"."cadenero_users"."id" = 21 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 16]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 21 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 21]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 21]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 21]] +Completed 200 OK in 13ms (Views: 7.3ms | ActiveRecord: 2.2ms) +Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 19:32:38 -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" = 'test12' LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 21 LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 16]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 21]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 21]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 21]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 20]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 20]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 20]] +Completed 200 OK in 19ms (Views: 13.6ms | ActiveRecord: 3.5ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (12.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (13.4ms) ROLLBACK +  (0.2ms) 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.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (1.6ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (1.4ms) SELECT currval('cadenero_accounts_id_seq'); +PG::Error: ERROR: currval of sequence "cadenero_accounts_id_seq" is not yet defined in this session +: SELECT currval('cadenero_accounts_id_seq'); +  (0.3ms) SELECT currval('cadenero_users_id_seq'); +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT currval('cadenero_members_id_seq'); +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT tablename + FROM pg_tables + WHERE schemaname = ANY (current_schemas(false)) + +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT tablename + FROM pg_tables + WHERE schemaname = ANY (current_schemas(false)) + +  (0.3ms) ROLLBACK +  (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.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.3ms) SELECT currval('cadenero_accounts_id_seq'); +PG::Error: ERROR: currval of sequence "cadenero_accounts_id_seq" is not yet defined in this session +: SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT currval('cadenero_users_id_seq'); +  (0.3ms) SELECT currval('cadenero_members_id_seq'); +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT currval('cadenero_members_id_seq'); +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT tablename + FROM pg_tables + WHERE schemaname = ANY (current_schemas(false)) + +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT tablename + FROM pg_tables + WHERE schemaname = ANY (current_schemas(false)) + +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} + Cadenero::Member Load (9.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] + Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] +Completed 200 OK in 131ms (Views: 118.3ms | ActiveRecord: 12.1ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.3ms) SELECT currval('cadenero_accounts_id_seq'); +PG::Error: ERROR: currval of sequence "cadenero_accounts_id_seq" is not yet defined in this session +: SELECT currval('cadenero_accounts_id_seq'); +  (0.3ms) SELECT currval('cadenero_users_id_seq'); +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT currval('cadenero_members_id_seq'); +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT tablename + FROM pg_tables + WHERE schemaname = ANY (current_schemas(false)) + +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT tablename + FROM pg_tables + WHERE schemaname = ANY (current_schemas(false)) + +  (0.1ms) ROLLBACK +  (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" = $1 [["user_id", 101]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["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" = $1 [["user_id", 101]] +Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 1.1ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.3ms) SELECT currval('cadenero_accounts_id_seq'); +PG::Error: ERROR: currval of sequence "cadenero_accounts_id_seq" is not yet defined in this session +: SELECT currval('cadenero_accounts_id_seq'); +  (0.3ms) SELECT currval('cadenero_users_id_seq'); +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT currval('cadenero_users_id_seq'); +  (0.3ms) SELECT currval('cadenero_members_id_seq'); +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT currval('cadenero_members_id_seq'); +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT tablename + FROM pg_tables + WHERE schemaname = ANY (current_schemas(false)) + +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT tablename + FROM pg_tables + WHERE schemaname = ANY (current_schemas(false)) + +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN + Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.3ms) SELECT currval('cadenero_accounts_id_seq'); +PG::Error: ERROR: currval of sequence "cadenero_accounts_id_seq" is not yet defined in this session +: SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT currval('cadenero_members_id_seq'); +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT tablename + FROM pg_tables + WHERE schemaname = ANY (current_schemas(false)) + +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT tablename + FROM pg_tables + WHERE schemaname = ANY (current_schemas(false)) + +  (0.8ms) ROLLBACK +  (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.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (1.4ms) SELECT currval('cadenero_accounts_id_seq'); +PG::Error: ERROR: currval of sequence "cadenero_accounts_id_seq" is not yet defined in this session +: SELECT currval('cadenero_accounts_id_seq'); +  (0.3ms) SELECT currval('cadenero_users_id_seq'); +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT currval('cadenero_members_id_seq'); +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT tablename + FROM pg_tables + WHERE schemaname = ANY (current_schemas(false)) + +PG::Error: ERROR: current transaction is aborted, commands ignored until end of transaction block +: SELECT tablename + FROM pg_tables + WHERE schemaname = ANY (current_schemas(false)) + +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (4.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$/Vdx0GGOhlqzy5FQhvHOH.KrEtHQ0Dabm/79DFT65idFDmG7TeyHO"], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00]] + SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["name", "Test Account"], ["owner_id", 23], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00]] + Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZYLgvhCG2m5qZ1Es2aic' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 18 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 23], ["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["id", 18], ["authentication_token", "ZYLgvhCG2m5qZ1Es2aic"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 18], ["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["user_id", 23]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'GyYsPbqpSQg4yW8x2Gg2' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 23 [["account_id", 18], ["user_id", 23], ["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["id", 23], ["auth_token", "GyYsPbqpSQg4yW8x2Gg2"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) CREATE SCHEMA "test" + SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (6.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.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.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::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 18]] +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.2ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +  (10.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (5.7ms) ROLLBACK +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.2ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +  (9.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.8ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1001], ["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["user_id", 101]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1PuEspPrwttXtEykvJZc' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 24 [["account_id", 1001], ["user_id", 101], ["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["id", 24], ["auth_token", "1PuEspPrwttXtEykvJZc"]] +  (2.4ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.2ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +  (15.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (3.0ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$ifrmIuGm0RZGFE1YCQ6eZ.S/gHliZ8wMENliiX.S0tGZzLsxJLeC2"], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 24], ["subdomain", "test1"], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XCZDA2xxU16bAzBp9MN5' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 19 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 24], ["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["id", 19], ["authentication_token", "XCZDA2xxU16bAzBp9MN5"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 19], ["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["user_id", 24]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'AWWCfmqPctno5cG8fDep' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 25 [["account_id", 19], ["user_id", 24], ["created_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:55 UTC +00:00], ["id", 25], ["auth_token", "AWWCfmqPctno5cG8fDep"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test1" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (7.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (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.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-15 19:41: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 41ms (Views: 0.4ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:41:56 -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.8ms) 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" = $1 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 [["account_id", 19]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 24 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 24]] + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 24]] + Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 24]] +Completed 201 Created in 23ms (Views: 9.8ms | ActiveRecord: 4.0ms) + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 19]] +Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:41: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" = 24 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.2ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +  (14.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (4.5ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$FOxrrYA0eiz8IxbiLGfPA..JNY3BZx95EoWvB8FbCNo9JKbrOQWYy"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 25], ["subdomain", "test2"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nDG2y6dyBxBCzjnMK9sC' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 20 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 25], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 20], ["authentication_token", "nDG2y6dyBxBCzjnMK9sC"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 20], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["user_id", 25]] + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'P1X4XzxB696adzsXVLAq' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 26 [["account_id", 20], ["user_id", 25], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 26], ["auth_token", "P1X4XzxB696adzsXVLAq"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test2" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.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.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-15 19:41: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-15 19:41: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$jfF04uv2L4cOSIhf18qLAuIutCkRK1CMi3eyu/rqKtJs8Dbaj415K"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 20], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["user_id", 26]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Aqp2SwzijKWzvD7psTRw' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 27 [["account_id", 20], ["user_id", 26], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 27], ["auth_token", "Aqp2SwzijKWzvD7psTRw"]] +  (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" = 26 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 26]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 26]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 26]] +Completed 201 Created in 23ms (Views: 6.6ms | ActiveRecord: 4.7ms) + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/26" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"26"} + 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.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 26 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 20]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 26 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 26]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 26]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 26]] +Completed 200 OK in 11ms (Views: 5.6ms | 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' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:41: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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 26 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 26]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 26]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 26]] +Completed 201 Created in 8ms (Views: 5.1ms | ActiveRecord: 1.4ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:41: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" = 26 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.2ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +  (9.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (5.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$xW14HMXns3FOdXMobThvfOjbfmn9.5o1bpNDj1SDMXM2Xm0U98gLu"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 27], ["subdomain", "test3"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6PzqKebiYYfQdGaSrX44' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 21 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 27], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 21], ["authentication_token", "6PzqKebiYYfQdGaSrX44"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 21], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["user_id", 27]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ypUzsuSPftj4PWaRb3Gr' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.9ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 28 [["account_id", 21], ["user_id", 27], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 28], ["auth_token", "ypUzsuSPftj4PWaRb3Gr"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test3" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (3.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 21]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 27 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 27]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 27]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 27]] +Completed 201 Created in 16ms (Views: 6.9ms | ActiveRecord: 3.0ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 21]] + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user3@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"27", "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 27 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:41: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/users" for 127.0.0.1 at 2013-07-15 19:41: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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$QKq3oVxUd3TW/lB81VM/Det2NTLHF7/1ueOKWeWhYrliErntCLtLW"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 21], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["user_id", 28]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qzWppq6RcsPkyDg4wPKQ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 29 [["account_id", 21], ["user_id", 28], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 29], ["auth_token", "qzWppq6RcsPkyDg4wPKQ"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 28 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 28]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 28]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 28]] +Completed 201 Created in 22ms (Views: 6.4ms | ActiveRecord: 4.1ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/28" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"28"} + 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 (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 28 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 21]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 28 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 28]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 28]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 28]] +Completed 200 OK in 62ms (Views: 56.4ms | ActiveRecord: 2.3ms) + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:41: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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 28 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 28]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 28]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 28]] +Completed 201 Created in 9ms (Views: 5.7ms | ActiveRecord: 1.5ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.2ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +  (10.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (4.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$ZQ6ixZgbokAPCvJvwtg18.oZLTQiqb7gO0HOHxS19OR5k.LqiGyFu"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 29], ["subdomain", "test4"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vG57a5Jy6zhL9TFAyd4c' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 22 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 29], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 22], ["authentication_token", "vG57a5Jy6zhL9TFAyd4c"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 22], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["user_id", 29]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dsbGmWzzjEWzxENZxzvf' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 30 [["account_id", 22], ["user_id", 29], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 30], ["auth_token", "dsbGmWzzjEWzxENZxzvf"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test4" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 19:41:56 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 22]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 29 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 29]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 29]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 29]] +Completed 201 Created in 16ms (Views: 6.4ms | 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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 22]] +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:41:56 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"29", "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 29 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:41: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) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.2ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +  (10.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (6.0ms) ROLLBACK +  (0.6ms) 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", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$YkedX9A0R23nqPy/HeeHA.P5jjQGkxX5P7al0voHSFlWwz8oEDdLO"], ["updated_at", Tue, 16 Jul 2013 00:41:56 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" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 30], ["subdomain", "test5"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'uyWMpXzkZ6B3njjLUuyX' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 23 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 30], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 23], ["authentication_token", "uyWMpXzkZ6B3njjLUuyX"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 23], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["user_id", 30]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kDkPQJkAJa7kSYQpQGqZ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 31 [["account_id", 23], ["user_id", 30], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 31], ["auth_token", "kDkPQJkAJa7kSYQpQGqZ"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test5" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (6.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (7.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.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 GET "/v1" for 127.0.0.1 at 2013-07-15 19:41: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-15 19:41: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 ('test5') LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 23]] +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.2ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.2ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.4ms) SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +  (10.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (6.8ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$jXUJrPuyWUBb9eqFRUq82.rmzRr8/gx1nmL6q3RC4mSJlV3TfZgXS"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 31], ["subdomain", "test6"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XbpUkX8xipwqz1syg9mq' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 24 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 31], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 24], ["authentication_token", "XbpUkX8xipwqz1syg9mq"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 24], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["user_id", 31]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YdWpaD67wpqMSACVx8zp' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 32 [["account_id", 24], ["user_id", 31], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 32], ["auth_token", "YdWpaD67wpqMSACVx8zp"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test6" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (7.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (6.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.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') +Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:41: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-15 19:41: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 (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 24]] +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.2ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +  (0.1ms) SELECT currval('cadenero_members_id_seq'); +  (9.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (4.6ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$ZeCcUlvIdTXVuMsuYTkJy.SlAvpGKVM91dtgKIj5a3D.RU7N76sfi"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 32], ["subdomain", "test7"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QoYhEmqqJzhV53XSx8Aw' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 25 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 32], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 25], ["authentication_token", "QoYhEmqqJzhV53XSx8Aw"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 25], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["user_id", 32]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QNqGoxNPyAampMAnhVqT' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 33 [["account_id", 25], ["user_id", 32], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 33], ["auth_token", "QNqGoxNPyAampMAnhVqT"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test7" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (3.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (3.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (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-15 19:41:56 -0500 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.2ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +  (10.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (6.2ms) ROLLBACK +  (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", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$lcd16HAim6EWzZ5ZMHQtvuiwgc2pu3V9Ud71DsMSu1PsVzgPv0hOC"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 33], ["subdomain", "test8"], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'q624cZZfPUqsWupjdodf' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 26 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 33], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 26], ["authentication_token", "q624cZZfPUqsWupjdodf"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 26], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["user_id", 33]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'p8HnP6i1xT22d6QWp4i2' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 34 [["account_id", 26], ["user_id", 33], ["created_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:56 UTC +00:00], ["id", 34], ["auth_token", "p8HnP6i1xT22d6QWp4i2"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test8" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.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.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.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$CYSlta2QPddv/YzIrBF.T.oinFXdXHiZE3L218cpbwuG3jmIU6WQa"], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 34], ["subdomain", "test9"], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00]] + Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JyaUDpWutBzUZUZfXmKg' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 27 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 34], ["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["id", 27], ["authentication_token", "JyaUDpWutBzUZUZfXmKg"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 27], ["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["user_id", 34]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jYMfRZfNRTpTWLvmexiW' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 35 [["account_id", 27], ["user_id", 34], ["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["id", 35], ["auth_token", "jYMfRZfNRTpTWLvmexiW"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:41: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-15 19:41:57 -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 ('test8') LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 [["account_id", 26]] +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.2ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +  (10.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (6.1ms) ROLLBACK +  (0.2ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 19:41:57 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$EvFIvztJ2Lbmcu7Z.vPLJegJZg5LGHHpQVS0w536OZLMlo6OoBvpS"], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["name", "Testy"], ["owner_id", 35], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'm3zL6zb5ch2Tyq2iZM1n' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 28 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 35], ["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["id", 28], ["authentication_token", "m3zL6zb5ch2Tyq2iZM1n"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 28], ["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["user_id", 35]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YpszrayxYzm7cZjYSyso' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 36 [["account_id", 28], ["user_id", 35], ["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["id", 36], ["auth_token", "YpszrayxYzm7cZjYSyso"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test" + SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (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') + 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" != 28) LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 35 LIMIT 1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 28]] +Completed 201 Created in 122ms (Views: 6.3ms | ActiveRecord: 39.7ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.3ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +  (10.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (4.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$Uf3CDlfwznl/DCqQpUyUJ.H0kgSmcesPbS8jzIAYgMzmSqHLuqkFa"], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["name", "Testy"], ["owner_id", 36], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Nghw5RGkeKpZnpbpHU6j' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 29 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 36], ["created_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:57 UTC +00:00], ["id", 29], ["authentication_token", "Nghw5RGkeKpZnpbpHU6j"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 19:41:57 -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 (3.6ms) 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 18ms (Views: 0.4ms | ActiveRecord: 3.9ms) + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.2ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.1ms) SELECT currval('cadenero_users_id_seq'); +  (0.5ms) SELECT currval('cadenero_members_id_seq'); +  (13.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (5.7ms) ROLLBACK +  (0.2ms) BEGIN +  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (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", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$7AaNuwnXQHzk4G5zJMORcO42lT04riAz0oPNMaNag3E/oX/kvE8M2"], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 37], ["subdomain", "test10"], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZDqFufyy5pzTcGXz9GmS' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 30 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 37], ["created_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["id", 30], ["authentication_token", "ZDqFufyy5pzTcGXz9GmS"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 30], ["created_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["user_id", 37]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'huyAgKxgENmHNuVWxKMB' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 37 [["account_id", 30], ["user_id", 37], ["created_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["id", 37], ["auth_token", "huyAgKxgENmHNuVWxKMB"]] +  (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", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$xlVEFb1Y6F4aOxdsBzuYH.SgKMZfa8H3yxqKZ3wkBQWzBOqsoBp3q"], ["updated_at", Tue, 16 Jul 2013 00:41:59 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", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$5xq058ywrGLmvamIGDJcP.pBvJgHa2N4J76QdD/xU/EGX3plAqKXy"], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["name", "Root"], ["owner_id", 39], ["subdomain", "www"], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'aB3z3vceAwia17G4C4jA' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 31 [["name", "Root"], ["subdomain", "www"], ["owner_id", 39], ["created_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["id", 31], ["authentication_token", "aB3z3vceAwia17G4C4jA"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 31], ["created_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["user_id", 39]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'aGoYnTpyPmPQxhmq44Tq' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 38 [["account_id", 31], ["user_id", 39], ["created_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:41:59 UTC +00:00], ["id", 38], ["auth_token", "aGoYnTpyPmPQxhmq44Tq"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "www" + SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.3ms) 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.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.2ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +  (10.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (6.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.2ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +  (11.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (3.8ms) ROLLBACK +  (0.2ms) BEGIN + ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.3ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +  (9.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.2ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +  (11.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.1ms) ROLLBACK +  (0.7ms) BEGIN +  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.3ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +  (11.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (4.0ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$eKJmFpfM21etTRVWf610p.b.SacC6kEi9Inb.YzS2zokngALFTBHK"], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 40], ["subdomain", "test11"], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yZ14yMozaznvveqYz75m' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 32 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 40], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["id", 32], ["authentication_token", "yZ14yMozaznvveqYz75m"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 32], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["user_id", 40]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iwsAcyMJZZgjiJpNZxmy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 39 [["account_id", 32], ["user_id", 40], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["id", 39], ["auth_token", "iwsAcyMJZZgjiJpNZxmy"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test11" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (11.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 19:42:03 -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" = 'test11' ORDER BY "public"."cadenero_accounts"."id" ASC 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", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$pjc6QFPZ5yNqw0XL5irFeOwNrL7Me7EZvEUoKIZc6tV.pAGROq3.S"], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 32], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["user_id", 41]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rv4noSZVzVnqSaHo2SUQ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 40 [["account_id", 32], ["user_id", 41], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["id", 40], ["auth_token", "rv4noSZVzVnqSaHo2SUQ"]] +  (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" = 41 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 41]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 41]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 41]] +Completed 201 Created in 23ms (Views: 6.9ms | ActiveRecord: 4.8ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/41" for 127.0.0.1 at 2013-07-15 19:42:03 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"41"} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = $1 AND "public"."cadenero_users"."id" = 41 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 32]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 41 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 41]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 41]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 41]] +Completed 200 OK in 12ms (Views: 5.8ms | ActiveRecord: 2.3ms) +  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.2ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +  (9.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (6.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$nHrt/NOYfcenYZjZRI0h6eBgeb2w0cQ5z9P.BToeoFlt7JYZQSmGC"], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 42], ["subdomain", "test12"], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vpY2xv83Vq9tZDGr1bD9' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 33 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 42], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["id", 33], ["authentication_token", "vpY2xv83Vq9tZDGr1bD9"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 33], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["user_id", 42]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Xgy9qSdu5cDvaTeuJnxN' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 41 [["account_id", 33], ["user_id", 42], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["id", 41], ["auth_token", "Xgy9qSdu5cDvaTeuJnxN"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test12" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (4.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (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-15 19:42:03 -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" = 'test12' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$6qSlu8vrvd.stjC4fKr0Z.dGvIpbttIehBjjUh0o.nQi4Qq2CISdi"], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00]] + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 33], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["user_id", 43]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hN3mBZGUFs4LTCihgo4y' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 42 [["account_id", 33], ["user_id", 43], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["id", 42], ["auth_token", "hN3mBZGUFs4LTCihgo4y"]] +  (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" = 43 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 43]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 43]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 43]] +Completed 201 Created in 23ms (Views: 6.2ms | ActiveRecord: 5.3ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/43" for 127.0.0.1 at 2013-07-15 19:42:03 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"43"} + Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 43 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 33]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 43 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 43]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 43]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 43]] +Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 2.8ms) + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +  (0.2ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 43], ["subdomain", "test13"], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'kqWxdEzLc7K7hopWBc5f' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 34 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 43], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["id", 34], ["authentication_token", "kqWxdEzLc7K7hopWBc5f"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 34], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["user_id", 43]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'exBK2w47QdJyXsawjjzy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 43 [["account_id", 34], ["user_id", 43], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["id", 43], ["auth_token", "exBK2w47QdJyXsawjjzy"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test13" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (2.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 19:42:03 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (1.8ms) 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", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$gQlrLzAQI315Bxt9fsDT6OEoCyd03OjEnAFjgVfgdsa/eCqiREqn."], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 34], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["user_id", 44]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rGq6GqAWFQabMxtpj7J8' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 44 [["account_id", 34], ["user_id", 44], ["created_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:03 UTC +00:00], ["id", 44], ["auth_token", "rGq6GqAWFQabMxtpj7J8"]] +  (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" = 44 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 44]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 44]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 44]] +Completed 201 Created in 25ms (Views: 6.2ms | ActiveRecord: 7.0ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/44" for 127.0.0.1 at 2013-07-15 19:42:03 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"44"} + 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.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 44 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 34]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 44 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 44]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 44]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 44]] +Completed 200 OK in 13ms (Views: 5.9ms | ActiveRecord: 2.4ms) +Started GET "/v1/users/43" for 127.0.0.1 at 2013-07-15 19:42:03 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"43"} + 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.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 43 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 33]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 43 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 43]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 43]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 43]] +Completed 200 OK in 13ms (Views: 7.7ms | ActiveRecord: 2.3ms) +Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 19:42:03 -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" = 'test12' LIMIT 1 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 43 LIMIT 1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 33]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 43]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 43]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 43]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 42]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 42]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 42]] +Completed 200 OK in 56ms (Views: 50.6ms | ActiveRecord: 3.4ms) +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.3ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +  (10.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (9.3ms) ROLLBACK +  (0.2ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} + Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1001]] +Completed 201 Created in 6ms (Views: 3.1ms | ActiveRecord: 2.6ms) +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.2ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +  (11.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (9.8ms) ROLLBACK +  (0.2ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account"}} +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (0.2ms) SELECT currval('cadenero_accounts_id_seq'); +  (0.2ms) SELECT currval('cadenero_users_id_seq'); +  (0.2ms) SELECT currval('cadenero_members_id_seq'); +  (11.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (2.2ms) ROLLBACK +  (0.3ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +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 TO SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +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 TO SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +Processing by Cadenero::V1::Account::UsersController#show as JSON + Parameters: {"id"=>101} + Cadenero::Member Load (6.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] + Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] +Completed 200 OK in 123ms (Views: 112.6ms | ActiveRecord: 9.8ms) +  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +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" = $1 [["user_id", 101]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["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" = $1 [["user_id", 101]] +Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 1.1ms) +  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$m/uAliCSAsTe1OO8Rh/PPu30w5rz3iQJvnvVpZu8X2dJXK2rqCzpa"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] + Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 45], ["subdomain", "test1"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fjbtvrGfHUYx3E68scHq' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (1.0ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 35 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 45], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 35], ["authentication_token", "fjbtvrGfHUYx3E68scHq"]] + SQL (1.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 35], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["user_id", 45]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EoUtpwbXyWywxVozk4jH' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 45 [["account_id", 35], ["user_id", 45], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 45], ["auth_token", "EoUtpwbXyWywxVozk4jH"]] +  (0.4ms) CREATE SCHEMA "test1" + SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (7.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 19:42: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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$Q7nLfmFMys.52oF5uR4Za.LGZKp3fNgn/U.DQrp8H38eowoRnyegS"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 35], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["user_id", 46]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VsJc4zzPB6zftxD7YtNH' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 46 [["account_id", 35], ["user_id", 46], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 46], ["auth_token", "VsJc4zzPB6zftxD7YtNH"]] + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 46 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 46]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 46]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 46]] +Completed 201 Created in 67ms (Views: 9.9ms | ActiveRecord: 5.0ms) + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/46" for 127.0.0.1 at 2013-07-15 19:42:43 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"46"} + 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.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 46 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 35]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 46 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 46]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 46]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 46]] +Completed 200 OK in 14ms (Views: 6.3ms | ActiveRecord: 2.6ms) +  (4.4ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_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", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$nSedNT.xIN8LI2HlVys57OgQ/YFUsfSbX03KGqd/C9dHlyn0.eM22"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 47], ["subdomain", "test2"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'surQe3xFvZJLeh5rEeXB' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 36 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 47], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 36], ["authentication_token", "surQe3xFvZJLeh5rEeXB"]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 36], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["user_id", 47]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'eFYgw6zwApv5H5GdWisL' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 47 [["account_id", 36], ["user_id", 47], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 47], ["auth_token", "eFYgw6zwApv5H5GdWisL"]] +  (0.2ms) CREATE SCHEMA "test2" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (3.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (4.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (6.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.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') +  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 19:42: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$XXVdtjEtYqe4RhmCqZJ/luGeHPF.hPuU3zUkTZe5ciQ03LIHN7RY2"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 36], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["user_id", 48]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CxzMxeMYTHq2X9gL1rmk' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 48 [["account_id", 36], ["user_id", 48], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 48], ["auth_token", "CxzMxeMYTHq2X9gL1rmk"]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 48 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 48]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 48]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 48]] +Completed 201 Created in 22ms (Views: 6.4ms | ActiveRecord: 4.5ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/48" for 127.0.0.1 at 2013-07-15 19:42:43 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"48"} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 48 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 36]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 48 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 48]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 48]] + Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 48]] +Completed 200 OK in 61ms (Views: 55.1ms | ActiveRecord: 2.7ms) + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 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.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 48], ["subdomain", "test3"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LpyYHyDde8xV7qvqSNxx' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 37 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 48], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 37], ["authentication_token", "LpyYHyDde8xV7qvqSNxx"]] + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 37], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["user_id", 48]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gcyCREPwqPajtdVtvHoa' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 49 [["account_id", 37], ["user_id", 48], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 49], ["auth_token", "gcyCREPwqPajtdVtvHoa"]] +  (0.2ms) CREATE SCHEMA "test3" + SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (2.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 19:42: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$mB.cA/R2pNNqs2X/JL0fCOhfINeamhaZQjI57qV14dQzjAcPRBh6."], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 37], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["user_id", 49]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VnASDyxA1b3pdyYPzosK' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 50 [["account_id", 37], ["user_id", 49], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 50], ["auth_token", "VnASDyxA1b3pdyYPzosK"]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 49 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 49]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 49]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 49]] +Completed 201 Created in 22ms (Views: 6.3ms | ActiveRecord: 4.5ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/49" for 127.0.0.1 at 2013-07-15 19:42:43 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"49"} + 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.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 49 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 37]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 49 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 49]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 49]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 49]] +Completed 200 OK in 12ms (Views: 6.2ms | ActiveRecord: 2.2ms) +Started GET "/v1/users/48" for 127.0.0.1 at 2013-07-15 19:42:43 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"48"} + Cadenero::V1::Account Load (0.4ms) 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" = $1 AND "public"."cadenero_users"."id" = 48 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 36]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 48 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 48]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 48]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 48]] +Completed 200 OK in 13ms (Views: 7.5ms | ActiveRecord: 2.3ms) +Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 19:42: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.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 48 LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 36]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 48]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 48]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 48]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 47]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 47]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 47]] +Completed 200 OK in 21ms (Views: 15.2ms | ActiveRecord: 3.7ms) +  (8.8ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 19:42:43 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} + Cadenero::V1::Account Exists (0.4ms) 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", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$.gkcEHD1y1m3CRvklUYMeOAmQiZLIlGrBQOvyvrhQKJ/rFfnYP8QO"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["name", "Testy"], ["owner_id", 50], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eUjZqAQCabyRDssyU7xy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 38 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 50], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 38], ["authentication_token", "eUjZqAQCabyRDssyU7xy"]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 38], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["user_id", 50]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'D1SkV2U44SQGZWMbzWvi' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 51 [["account_id", 38], ["user_id", 50], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 51], ["auth_token", "D1SkV2U44SQGZWMbzWvi"]] +  (0.2ms) CREATE SCHEMA "test" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('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" != 38) LIMIT 1 + Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 50 LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 38]] +Completed 201 Created in 93ms (Views: 6.3ms | ActiveRecord: 42.4ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (2.8ms) ROLLBACK TO SAVEPOINT active_record_1 +  (1.4ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.5ms) 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" = '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", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$ayrWjLTcRJbpzR2dqrAkq.lvYdgEeY0JmoH.soi2XKpIAz4xmN00W"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["name", "Testy"], ["owner_id", 51], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vMn3FenReWtKwp7wpwAX' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 39 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 51], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 39], ["authentication_token", "vMn3FenReWtKwp7wpwAX"]] +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 19:42:43 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + CACHE (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 22ms (Views: 0.4ms | ActiveRecord: 1.2ms) + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.8ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +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" = $1 [["account_id", 1001]] +Completed 201 Created in 5ms (Views: 3.8ms | ActiveRecord: 0.6ms) +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +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 TO SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1001], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["user_id", 101]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gXQ439ApgpjXhpmoa1ed' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 52 [["account_id", 1001], ["user_id", 101], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 52], ["auth_token", "gXQ439ApgpjXhpmoa1ed"]] +  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (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" IS NULL LIMIT 1 +  (0.5ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (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" = 'subdomain' LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (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" = 'subdomain' LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$vNiNSCAb5tCJB2lcAlLrwugQGNZ/fQi6JMFQK5VxVlDQfGAbQp87."], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["name", "Test Account"], ["owner_id", 52], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00]] + Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tQqPHyhitHUoW7tpp8Ru' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 40 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 52], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 40], ["authentication_token", "tQqPHyhitHUoW7tpp8Ru"]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 40], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["user_id", 52]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CaMr5kZKSkWRpFGE6i5M' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 53 [["account_id", 40], ["user_id", 52], ["created_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:43 UTC +00:00], ["id", 53], ["auth_token", "CaMr5kZKSkWRpFGE6i5M"]] +  (0.3ms) CREATE SCHEMA "test" + SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (7.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 40]] +  (2.4ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +  (12.0ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users" + SQL (4.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$fMcGYqeXtEZz7ZFqPAX3GuTjM9p3j9Te1lRRaFFXqNvIVxEB41UWe"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] + Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + SQL (1.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 53], ["subdomain", "test4"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Lcjm8m7ueDZpD2expYkq' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (1.3ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 41 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 53], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 41], ["authentication_token", "Lcjm8m7ueDZpD2expYkq"]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 41], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["user_id", 53]] + Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qtD5RiFfLMLC1xV3sekk' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (2.3ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 54 [["account_id", 41], ["user_id", 53], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 54], ["auth_token", "qtD5RiFfLMLC1xV3sekk"]] + SQL (3.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$vlJtQxtoNpvKHmqUlGEM4OCRwUaYtQCdxYDowjOoRLwZXflR2tMyK"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$SvL0Vj86KC.G2xCOjf41HOLgvtYjdKhEQjfmrgmML7L.c53MZ6n7."], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["name", "Root"], ["owner_id", 55], ["subdomain", "www"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gyKjYsTnZfqApuCWNyuz' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (1.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 42 [["name", "Root"], ["subdomain", "www"], ["owner_id", 55], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 42], ["authentication_token", "gyKjYsTnZfqApuCWNyuz"]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 42], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["user_id", 55]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hBwTXvyQF3NxMWKH6qS6' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 55 [["account_id", 42], ["user_id", 55], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 55], ["auth_token", "hBwTXvyQF3NxMWKH6qS6"]] +  (0.2ms) CREATE SCHEMA "www" + SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (2.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.3ms) 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 TO SAVEPOINT active_record_1 +  (0.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.3ms) RELEASE SAVEPOINT active_record_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", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$s6hvMZCwiUwArlz4P7/wkOcbZi2sC/KOXK97vYtoE1A5SmZFbDfyW"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 56], ["subdomain", "test5"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] + Cadenero::V1::Account Load (3.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Ho4X4evd3BjJCqptTCqe' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 43 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 56], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 43], ["authentication_token", "Ho4X4evd3BjJCqptTCqe"]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 43], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["user_id", 56]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YUp2FuThRcbzzmujf82k' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (2.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 56 [["account_id", 43], ["user_id", 56], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 56], ["auth_token", "YUp2FuThRcbzzmujf82k"]] +  (0.2ms) CREATE SCHEMA "test5" + SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (2.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 19:42:51 -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.4ms | ActiveRecord: 0.0ms) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 19:42:51 -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.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$uVv6pPyxQF1.z0wSAe4diuhFvCJ36Ec1oYXLQDwNaivMr9YXXDMfi"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 43], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["user_id", 57]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pcmjpZ16j7xzz88sNEnP' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 57 [["account_id", 43], ["user_id", 57], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 57], ["auth_token", "pcmjpZ16j7xzz88sNEnP"]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 57 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 57]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 57]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 57]] +Completed 201 Created in 25ms (Views: 6.7ms | ActiveRecord: 5.2ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/57" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"57"} + 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 (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 57 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 43]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 57 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 57]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 57]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 57]] +Completed 200 OK in 14ms (Views: 6.9ms | ActiveRecord: 2.3ms) + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:42:51 -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" = 57 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 57]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 57]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 57]] +Completed 201 Created in 10ms (Views: 6.0ms | ActiveRecord: 1.4ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:42:51 -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" = 57 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (6.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$BCezpHVEXVBDrPZ044wcf.vKJuzvDCQ5MnCoGnqUOtr1U/BO25yTC"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] + Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 58], ["subdomain", "test6"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Do2AdxvBRpeNZZopRuEy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 44 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 58], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 44], ["authentication_token", "Do2AdxvBRpeNZZopRuEy"]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 44], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["user_id", 58]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yXLHuiahajPSxc1Nut49' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (1.2ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 58 [["account_id", 44], ["user_id", 58], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 58], ["auth_token", "yXLHuiahajPSxc1Nut49"]] +  (0.3ms) CREATE SCHEMA "test6" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 19:42:51 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 + Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 44]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 58 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 58]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 58]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 58]] +Completed 201 Created in 19ms (Views: 7.0ms | 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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 44]] +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"58", "default"=>:json} + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 58 LIMIT 1 +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:42:51 -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.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (1.5ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_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", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$F0iukc4IW5M5J4P/fAQvzeIrUQNguPNO324Nd8XUj6KozhLRXYi5C"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 59], ["subdomain", "test7"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LoW4SsehnrYLZLEZmGs4' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 45 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 59], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 45], ["authentication_token", "LoW4SsehnrYLZLEZmGs4"]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 45], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["user_id", 59]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kZxybwniyxfygipt4dZD' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 59 [["account_id", 45], ["user_id", 59], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 59], ["auth_token", "kZxybwniyxfygipt4dZD"]] +  (0.2ms) CREATE SCHEMA "test7" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (5.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (3.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (2.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (5.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.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') +Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:42:51 -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-15 19:42:51 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user7@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 [["account_id", 45]] + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 59 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 59]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 59]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 59]] +Completed 201 Created in 17ms (Views: 7.0ms | ActiveRecord: 3.5ms) + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 45]] +Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:42:51 -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" = 59 LIMIT 1 +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) +  (2.5ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.8ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_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", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$9uTaQHPjn1Azhmm1Cczo1unYv1CKazxQ6g6pWByKjEafhbEjFE0xS"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 60], ["subdomain", "test8"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PJbfEFhTYeMxuMK1CxDo' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 46 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 60], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 46], ["authentication_token", "PJbfEFhTYeMxuMK1CxDo"]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 46], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["user_id", 60]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RNsttwybwxRTJMUbhZHt' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 60 [["account_id", 46], ["user_id", 60], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 60], ["auth_token", "RNsttwybwxRTJMUbhZHt"]] +  (0.2ms) CREATE SCHEMA "test8" + SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (2.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (2.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:42:51 -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.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 [["account_id", 46]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 60 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 60]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 60]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 60]] +Completed 201 Created in 16ms (Views: 6.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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 46]] + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user8@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"60", "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 60 LIMIT 1 +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:42:51 -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-15 19:42:51 -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" = 'test8' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$Xd1rG2CIctEu92IhECTWGu.1SVOomhFUSrVv/aZXjE58iSOfcmYEW"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] + SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 46], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["user_id", 61]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UGpm2DMitB34tviHsDas' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 61 [["account_id", 46], ["user_id", 61], ["created_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["id", 61], ["auth_token", "UGpm2DMitB34tviHsDas"]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 61 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 61]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 61]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 61]] +Completed 201 Created in 23ms (Views: 6.3ms | ActiveRecord: 4.3ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/61" for 127.0.0.1 at 2013-07-15 19:42:51 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"61"} + 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.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 61 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 46]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 61 LIMIT 1 + Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 61]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 61]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 61]] +Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 2.7ms) + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 19:42:51 -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" = 61 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 61]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 61]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 61]] +Completed 201 Created in 8ms (Views: 5.2ms | ActiveRecord: 1.4ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (4.9ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.4ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_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", Tue, 16 Jul 2013 00:42:51 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$TeZkxG4GcncSmhcYEt3YqesJNivVSrpPkPOAfZyI5ZG.gqQawThyS"], ["updated_at", Tue, 16 Jul 2013 00:42:51 UTC +00:00]] + 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" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 62], ["subdomain", "test9"], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xE9BsCpU9nYFy31PpqUE' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 47 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 62], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["id", 47], ["authentication_token", "xE9BsCpU9nYFy31PpqUE"]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 47], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["user_id", 62]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'j1az2qe6qg5pCskCxpf1' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 62 [["account_id", 47], ["user_id", 62], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["id", 62], ["auth_token", "j1az2qe6qg5pCskCxpf1"]] +  (0.2ms) CREATE SCHEMA "test9" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (9.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (4.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (3.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (3.1ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) 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-15 19:42:52 -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-15 19:42:52 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 47]] +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (3.3ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_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", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$F1CRvSrb9fNyT3LuXjnsA.0fcg8xowVYVSStkV1ZxNAlK2S/K8WOS"], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00]] + 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" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 63], ["subdomain", "test10"], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qLKhQGPpmpkyxg8w2utb' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 48 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 63], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["id", 48], ["authentication_token", "qLKhQGPpmpkyxg8w2utb"]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 48], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["user_id", 63]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'oh9MZ6AZodyzx38KHazk' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 63 [["account_id", 48], ["user_id", 63], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["id", 63], ["auth_token", "oh9MZ6AZodyzx38KHazk"]] +  (0.2ms) CREATE SCHEMA "test10" + SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (3.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.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') + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$BWd/8KkM8HsNrWl8F5WkTeCneNjtDWOrbWJ74UdeqX5p9nDI9kmNK"], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00]] + 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" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 64], ["subdomain", "test11"], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FcC1jz5oFezo1de7X1qZ' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 49 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 64], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["id", 49], ["authentication_token", "FcC1jz5oFezo1de7X1qZ"]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 49], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["user_id", 64]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'tcZb9fUnmv9r31rSuFpX' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 64 [["account_id", 49], ["user_id", 64], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["id", 64], ["auth_token", "tcZb9fUnmv9r31rSuFpX"]] +Started GET "/v1" for 127.0.0.1 at 2013-07-15 19:42:52 -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-15 19:42:52 -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 ('test10') LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user11@example.com' LIMIT 1 [["account_id", 48]] +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (2.3ms) ROLLBACK TO SAVEPOINT active_record_1 +  (1.5ms) ROLLBACK +  (0.2ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_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", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$CJbozutdr.pkWlTa.XI8Veh15hkVHyQpofxEcSL0ozNbhnuQtf/Sa"], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00]] + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 65], ["subdomain", "test12"], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ciusMEzTbJZ7JDCH3a6o' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 50 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 65], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["id", 50], ["authentication_token", "ciusMEzTbJZ7JDCH3a6o"]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 50], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["user_id", 65]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5xyLVAsotxvyRHvxG6Yj' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 65 [["account_id", 50], ["user_id", 65], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["id", 65], ["auth_token", "5xyLVAsotxvyRHvxG6Yj"]] +  (0.2ms) CREATE SCHEMA "test12" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (7.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (3.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (5.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (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 GET "/v1" for 127.0.0.1 at 2013-07-15 19:42:52 -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-15 19:42:52 -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.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 50]] +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (2.4ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_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", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$4X.TX/Yh.H7zyqLrVNdU8.NP0dVNTfVVIDjKLXrITR.JVN7JFfVOa"], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00]] + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + SQL (1.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 66], ["subdomain", "test13"], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RTaTsKqpXMxQxcjQpAtm' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (2.2ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 51 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 66], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["id", 51], ["authentication_token", "RTaTsKqpXMxQxcjQpAtm"]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 51], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["user_id", 66]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MTvCMnJjCrnR5XCdLafy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 66 [["account_id", 51], ["user_id", 66], ["created_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 00:42:52 UTC +00:00], ["id", 66], ["auth_token", "MTvCMnJjCrnR5XCdLafy"]] +  (0.2ms) CREATE SCHEMA "test13" + SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (27.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (5.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (7.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (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-15 19:42:52 -0500 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (5.2ms) ROLLBACK TO SAVEPOINT active_record_1 +  (2.2ms) ROLLBACK +Connecting to database specified by database.yml +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} +Completed 201 Created in 16ms (Views: 3.5ms | ActiveRecord: 0.0ms) +  (0.3ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (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 +  (0.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 20:21:06 -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_2 + Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 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", Tue, 16 Jul 2013 01:21:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$1H77iAy2LXYXj8gWFcm2gOcOSlrLSzdc8x24NZCyXuDYM6Ghri/j."], ["updated_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00]] + SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00], ["name", "Testy"], ["owner_id", 67], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mQkz6EVGz6EEyK26KoZp' LIMIT 1 +  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 67, "created_at" = '2013-07-16 01:21:07.328686', "updated_at" = '2013-07-16 01:21:07.328686', "authentication_token" = 'mQkz6EVGz6EEyK26KoZp' WHERE "public"."cadenero_accounts"."id" = 52 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + SQL (15.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", 52], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00], ["user_id", 67]] + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jiKqjKqKpMbxsuip2NPh' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 52, "user_id" = 67, "created_at" = '2013-07-16 01:21:07.396432', "updated_at" = '2013-07-16 01:21:07.396432', "auth_token" = 'jiKqjKqKpMbxsuip2NPh' WHERE "public"."cadenero_members"."id" = 67 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.3ms) CREATE SCHEMA "test" +  (6.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "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.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.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') + 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" != 52) LIMIT 1 +Completed 201 Created in 452ms (Views: 1.9ms | ActiveRecord: 67.5ms) + Cadenero::V1::Account Load (6.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (9.8ms) ROLLBACK +  (0.1ms) ROLLBACK +  (1.4ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_2 + Cadenero::V1::Account Exists (0.4ms) 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", Tue, 16 Jul 2013 01:21:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$XgXfJm7TFXqa2F8jkqvKHuPkSIWsIPNOLg5PRzp2ohb0QlauIW/pq"], ["updated_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00], ["name", "Testy"], ["owner_id", 68], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'R7Pm3Y3DVPZuaoCNqMDq' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 68, "created_at" = '2013-07-16 01:21:07.696930', "updated_at" = '2013-07-16 01:21:07.696930', "authentication_token" = 'R7Pm3Y3DVPZuaoCNqMDq' WHERE "public"."cadenero_accounts"."id" = 53 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 20:21: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.2ms) SAVEPOINT active_record_2 + 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_2 + CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 113ms (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) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_2 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$zez/aeJgFul9IS0nEL/1tuTh2LoMQLgdUNEXjMk8qkUgHLvKocCna"], ["updated_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 69], ["subdomain", "test1"], ["updated_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PuVxSZy9vLcNr6BkTmxn' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 69, "created_at" = '2013-07-16 01:21:07.939499', "updated_at" = '2013-07-16 01:21:07.939499', "authentication_token" = 'PuVxSZy9vLcNr6BkTmxn' WHERE "public"."cadenero_accounts"."id" = 54 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 54], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:07 UTC +00:00], ["user_id", 69]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JXpZYttHbpVSqVsswx6a' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 54, "user_id" = 69, "created_at" = '2013-07-16 01:21:07.944858', "updated_at" = '2013-07-16 01:21:07.944858', "auth_token" = 'JXpZYttHbpVSqVsswx6a' WHERE "public"."cadenero_members"."id" = 68 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) CREATE SCHEMA "test1" +  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "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") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (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 GET "/v1" for 127.0.0.1 at 2013-07-15 20:21:08 -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-15 20:21:08 -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" = 'test1' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$re2MeiMXyOyqgbWaEejPxev.rsWG4hB5/Q3rqwIG0D1P7Hr58IVpW"], ["updated_at", Tue, 16 Jul 2013 01:21: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", 54], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["user_id", 70]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '42jWFv3jBQz6EyVgN8fk' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 54, "user_id" = 70, "created_at" = '2013-07-16 01:21:08.118322', "updated_at" = '2013-07-16 01:21:08.118322', "auth_token" = '42jWFv3jBQz6EyVgN8fk' WHERE "public"."cadenero_members"."id" = 69 +  (0.1ms) RELEASE SAVEPOINT active_record_2 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 70 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 70 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 70 + 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" = 70 +Completed 201 Created in 159ms (Views: 48.0ms | 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/70" for 127.0.0.1 at 2013-07-15 20:21:08 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"70"} + 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" = 54 AND "public"."cadenero_users"."id" = 70 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 70 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 70 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 70 + 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" = 70 +Completed 200 OK in 15ms (Views: 8.4ms | 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-15 20:21:08 -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" = 70 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 70 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 70 + 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" = 70 +Completed 201 Created in 9ms (Views: 6.2ms | 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-15 20:21:08 -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" = 70 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (5.3ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.9ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 +  (20.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$fBgukGOh9tAY/Jy51Tk4dOniTA5QmZ3MkxRRfQ5vXyK3qQJRRHjMe"], ["updated_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 71], ["subdomain", "test2"], ["updated_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'x4my7sa46EyUbsqLVHmx' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 71, "created_at" = '2013-07-16 01:21:08.387009', "updated_at" = '2013-07-16 01:21:08.387009', "authentication_token" = 'x4my7sa46EyUbsqLVHmx' WHERE "public"."cadenero_accounts"."id" = 55 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 55], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["user_id", 71]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Y6PCjKpgFwqeDiCWGxgs' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 55, "user_id" = 71, "created_at" = '2013-07-16 01:21:08.392422', "updated_at" = '2013-07-16 01:21:08.392422', "auth_token" = 'Y6PCjKpgFwqeDiCWGxgs' WHERE "public"."cadenero_members"."id" = 70 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.2ms) CREATE SCHEMA "test2" +  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "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.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 NOT NULL, "updated_at" timestamp NOT NULL) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.6ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:21:08 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 + Cadenero::User Load (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" = 55 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 + Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 71 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 71 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 71 + 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" = 71 +Completed 201 Created in 111ms (Views: 5.6ms | ActiveRecord: 3.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 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 55 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:21:08 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"71", "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 71 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:21:08 -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-15 20:21:08 -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" = 'test2' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$rwM9sFuuceQGGtiJFiLHnexglxYsUSqlnBiuVr1ODqxMIM/3io76S"], ["updated_at", Tue, 16 Jul 2013 01:21: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", 55], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["user_id", 72]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '47wmGyLdKxkstXJgFvif' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 55, "user_id" = 72, "created_at" = '2013-07-16 01:21:08.721383', "updated_at" = '2013-07-16 01:21:08.721383', "auth_token" = '47wmGyLdKxkstXJgFvif' WHERE "public"."cadenero_members"."id" = 71 +  (0.1ms) RELEASE SAVEPOINT active_record_2 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 72 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 72 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 72 + 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" = 72 +Completed 201 Created in 113ms (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/72" for 127.0.0.1 at 2013-07-15 20:21:08 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"72"} + 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" = 55 AND "public"."cadenero_users"."id" = 72 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 72 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 72 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 72 + 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" = 72 +Completed 200 OK in 10ms (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_second@example.com' LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:21:08 -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" = 72 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 72 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 72 + 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" = 72 +Completed 201 Created in 7ms (Views: 4.7ms | 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 +  (5.8ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.6ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_2 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$T5W8Db.Cx84NDDsVNNKpE.KprilO2vmb6qmLNrlsjv/ILBt2smh82"], ["updated_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 73], ["subdomain", "test3"], ["updated_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'G8GtY5GHEP3ewheucbpe' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 73, "created_at" = '2013-07-16 01:21:08.876371', "updated_at" = '2013-07-16 01:21:08.876371', "authentication_token" = 'G8GtY5GHEP3ewheucbpe' WHERE "public"."cadenero_accounts"."id" = 56 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 56], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:08 UTC +00:00], ["user_id", 73]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'FU8Ly41DxdUW4ooFU5FN' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 56, "user_id" = 73, "created_at" = '2013-07-16 01:21:08.881888', "updated_at" = '2013-07-16 01:21:08.881888', "auth_token" = 'FU8Ly41DxdUW4ooFU5FN' WHERE "public"."cadenero_members"."id" = 72 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.2ms) CREATE SCHEMA "test3" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (0.8ms) 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.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (7.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (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.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.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-15 20:21:08 -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-15 20:21:08 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 + Cadenero::User Load (0.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" = 56 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" = 73 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 73 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 73 + 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" = 73 +Completed 201 Created in 108ms (Views: 5.3ms | ActiveRecord: 2.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 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 56 +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:21:09 -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" = 73 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (6.3ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.3ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (1.8ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) BEGIN +  (0.2ms) SAVEPOINT active_record_2 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$FbRUaICfxV7jz9U54/X58u9VpODl5cTHsY80nSd5VfpgSw50zMwD2"], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 74], ["subdomain", "test4"], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CzSE1WbpGDxG7bhfs5g4' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 74, "created_at" = '2013-07-16 01:21:09.177487', "updated_at" = '2013-07-16 01:21:09.177487', "authentication_token" = 'CzSE1WbpGDxG7bhfs5g4' WHERE "public"."cadenero_accounts"."id" = 57 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 57], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["user_id", 74]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wuM2yzzTb5zyobkJ5poq' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 57, "user_id" = 74, "created_at" = '2013-07-16 01:21:09.183440', "updated_at" = '2013-07-16 01:21:09.183440', "auth_token" = 'wuM2yzzTb5zyobkJ5poq' WHERE "public"."cadenero_members"."id" = 73 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.2ms) CREATE SCHEMA "test4" +  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "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.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 NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (3.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.9ms) SELECT version FROM "schema_migrations" +  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:21:09 -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.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" = 57 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 74 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 74 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 74 + 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" = 74 +Completed 201 Created in 108ms (Views: 5.3ms | ActiveRecord: 2.3ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 57 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:21:09 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"74", "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 74 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:21:09 -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.5ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.7ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_2 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$ntZIful4Xc34sDcitnT.Bezb2jxSg.lM9wfO/b3M.M.YRjUx8wFUa"], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 75], ["subdomain", "test5"], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Da4aLUsw7pt94rMtMyoc' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 75, "created_at" = '2013-07-16 01:21:09.480602', "updated_at" = '2013-07-16 01:21:09.480602', "authentication_token" = 'Da4aLUsw7pt94rMtMyoc' WHERE "public"."cadenero_accounts"."id" = 58 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 58], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["user_id", 75]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vCzuZemC54GhobXQBzpq' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 58, "user_id" = 75, "created_at" = '2013-07-16 01:21:09.486150', "updated_at" = '2013-07-16 01:21:09.486150', "auth_token" = 'vCzuZemC54GhobXQBzpq' WHERE "public"."cadenero_members"."id" = 74 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.2ms) CREATE SCHEMA "test5" +  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.1ms) 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") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.4ms) SELECT version FROM "schema_migrations" +  (0.5ms) 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-15 20:21:09 -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.8ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:21:09 -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 ('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" = 58 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.9ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.6ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) BEGIN +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$EAOG77W5q8Gy8/wAu9Fd3.5wIRnyqpg3C9o66tR2Wiqrn5al7.65W"], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 76], ["subdomain", "test6"], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'iqzzDbRKhTZJvHZxZCxV' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 76, "created_at" = '2013-07-16 01:21:09.671103', "updated_at" = '2013-07-16 01:21:09.671103', "authentication_token" = 'iqzzDbRKhTZJvHZxZCxV' WHERE "public"."cadenero_accounts"."id" = 59 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 59], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["user_id", 76]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'f9L1cb1MipihLhX3PAwD' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 59, "user_id" = 76, "created_at" = '2013-07-16 01:21:09.676704', "updated_at" = '2013-07-16 01:21:09.676704', "auth_token" = 'f9L1cb1MipihLhX3PAwD' WHERE "public"."cadenero_members"."id" = 75 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.2ms) CREATE SCHEMA "test6" +  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (4.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") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 20:21:09 -0500 + Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (2.7ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_2 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$Ko8aVDMDq5ABXCNTDPVwtegfpqoEtmFMCiTZBxhJPxTehRb9lk22m"], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 77], ["subdomain", "test7"], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FfNqsCqFFyiM72XfQVvK' LIMIT 1 +  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 77, "created_at" = '2013-07-16 01:21:09.844640', "updated_at" = '2013-07-16 01:21:09.844640', "authentication_token" = 'FfNqsCqFFyiM72XfQVvK' WHERE "public"."cadenero_accounts"."id" = 60 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 60], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:09 UTC +00:00], ["user_id", 77]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wY2dUFRbsrzZJcuBN3Sr' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 60, "user_id" = 77, "created_at" = '2013-07-16 01:21:09.882433', "updated_at" = '2013-07-16 01:21:09.882433', "auth_token" = 'wY2dUFRbsrzZJcuBN3Sr' WHERE "public"."cadenero_members"."id" = 76 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.2ms) CREATE SCHEMA "test7" +  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.4ms) 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.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.6ms) 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" +  (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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:21:09 -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-15 20:21:09 -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.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" = 60 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 +  (6.7ms) ROLLBACK +  (0.1ms) ROLLBACK +  (1.0ms) BEGIN +  (0.5ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) BEGIN +  (0.2ms) SAVEPOINT active_record_2 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$EjCwjCghWVqWg112rJQ2UOTkTC4cyXzOO2ZygsijxvBL7A6vJhlFW"], ["updated_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 78], ["subdomain", "test8"], ["updated_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DXGK1t91T9BFoyxysoFH' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 78, "created_at" = '2013-07-16 01:21:10.070010', "updated_at" = '2013-07-16 01:21:10.070010', "authentication_token" = 'DXGK1t91T9BFoyxysoFH' WHERE "public"."cadenero_accounts"."id" = 61 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 61], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00], ["user_id", 78]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sEWtyF4aL2NmkvKLujyp' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 61, "user_id" = 78, "created_at" = '2013-07-16 01:21:10.076490', "updated_at" = '2013-07-16 01:21:10.076490', "auth_token" = 'sEWtyF4aL2NmkvKLujyp' WHERE "public"."cadenero_members"."id" = 77 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.2ms) CREATE SCHEMA "test8" +  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (3.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.8ms) 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.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.0ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('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') +  (0.2ms) SAVEPOINT active_record_2 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$fmDdiKwHvcLV4GtswSu3KuI02aQsQgUQ0WQjq.Gfy9Typ1RBihE86"], ["updated_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 79], ["subdomain", "test9"], ["updated_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4S82QH52xHAe9sj64J1m' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 79, "created_at" = '2013-07-16 01:21:10.232509', "updated_at" = '2013-07-16 01:21:10.232509', "authentication_token" = '4S82QH52xHAe9sj64J1m' WHERE "public"."cadenero_accounts"."id" = 62 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 62], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:10 UTC +00:00], ["user_id", 79]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nFdv3xSgkqpR7jYoN5tx' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 62, "user_id" = 79, "created_at" = '2013-07-16 01:21:10.239191', "updated_at" = '2013-07-16 01:21:10.239191', "auth_token" = 'nFdv3xSgkqpR7jYoN5tx' WHERE "public"."cadenero_members"."id" = 78 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:21:10 -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-15 20:21:10 -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 ('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" = 61 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 +  (4.6ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.7ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (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.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" +  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (1.0ms) BEGIN +  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (0.2ms) SAVEPOINT active_record_2 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$HTrBXi8nYWeyo8Eoh4c0HOIH9HtfShVamQ3tnkB5vZ4pAy5MfSkOm"], ["updated_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 80], ["subdomain", "test10"], ["updated_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gKwetTBqgZK7rkvvwDvU' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 80, "created_at" = '2013-07-16 01:21:20.739979', "updated_at" = '2013-07-16 01:21:20.739979', "authentication_token" = 'gKwetTBqgZK7rkvvwDvU' WHERE "public"."cadenero_accounts"."id" = 63 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 63], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00], ["user_id", 80]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kNPXBouK3c4F1JD8Ggyp' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 63, "user_id" = 80, "created_at" = '2013-07-16 01:21:20.746694', "updated_at" = '2013-07-16 01:21:20.746694', "auth_token" = 'kNPXBouK3c4F1JD8Ggyp' WHERE "public"."cadenero_members"."id" = 79 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$fyIOmX9S.t.tCqJB3mZ9Bu1nUKcgITfwo4mBItU652SAKXiX1JWFW"], ["updated_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$HOr7vUpsdGOsqBdLkZaDz.HR.eWVBm0BqkllMe8KzSAc57dFOe7n6"], ["updated_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00], ["name", "Root"], ["owner_id", 82], ["subdomain", "www"], ["updated_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GG4Xr33my4qnVJnZgbVf' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 82, "created_at" = '2013-07-16 01:21:20.949784', "updated_at" = '2013-07-16 01:21:20.949784', "authentication_token" = 'GG4Xr33my4qnVJnZgbVf' WHERE "public"."cadenero_accounts"."id" = 64 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 64], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:20 UTC +00:00], ["user_id", 82]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MtXwHsxXdsip5JLXWsJV' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 64, "user_id" = 82, "created_at" = '2013-07-16 01:21:20.961158', "updated_at" = '2013-07-16 01:21:20.961158', "auth_token" = 'MtXwHsxXdsip5JLXWsJV' WHERE "public"."cadenero_members"."id" = 80 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.2ms) CREATE SCHEMA "www" +  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "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.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (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') +  (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" +  (5.0ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) BEGIN +  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.7ms) SAVEPOINT active_record_1 +  (0.9ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.7ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) 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) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_2 + 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", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$hxQ/pEu1Ikrbwjz71LFonOtoIo9JB.JdktDYSGAJMtqBQdH1gH2WG"], ["updated_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["name", "Test Account"], ["owner_id", 83], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WsJVyvLRUzdAyvopCJer' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 83, "created_at" = '2013-07-16 01:21:21.271904', "updated_at" = '2013-07-16 01:21:21.271904', "authentication_token" = 'WsJVyvLRUzdAyvopCJer' WHERE "public"."cadenero_accounts"."id" = 65 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 65], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["user_id", 83]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YJpWrUDXTztGMzCvn3Rs' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 65, "user_id" = 83, "created_at" = '2013-07-16 01:21:21.277757', "updated_at" = '2013-07-16 01:21:21.277757', "auth_token" = 'YJpWrUDXTztGMzCvn3Rs' WHERE "public"."cadenero_members"."id" = 81 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) CREATE SCHEMA "test" +  (4.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "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.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 NOT NULL, "updated_at" timestamp NOT NULL) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) 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') + 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" = 65 LIMIT 1 +  (4.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) BEGIN + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.2ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (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) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_2 + 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", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:21 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" = 'zRuu2xXu1x83gHM2KhSb' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-16 01:21:21.652620', "updated_at" = '2013-07-16 01:21:21.652620', "auth_token" = 'zRuu2xXu1x83gHM2KhSb' WHERE "public"."cadenero_members"."id" = 82 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$cNEl12s5zyMDb.IJb92cXuWSmpCeWs4optZ64nB4d26/rIxccijtG"], ["updated_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 84], ["subdomain", "test11"], ["updated_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'joFSJj9caUEYMDVDnsGx' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 84, "created_at" = '2013-07-16 01:21:21.765276', "updated_at" = '2013-07-16 01:21:21.765276', "authentication_token" = 'joFSJj9caUEYMDVDnsGx' WHERE "public"."cadenero_accounts"."id" = 66 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 66], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["user_id", 84]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ouXTVygstxFXug3kx6qo' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 66, "user_id" = 84, "created_at" = '2013-07-16 01:21:21.771065', "updated_at" = '2013-07-16 01:21:21.771065', "auth_token" = 'ouXTVygstxFXug3kx6qo' WHERE "public"."cadenero_members"."id" = 83 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.2ms) CREATE SCHEMA "test11" +  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (0.9ms) 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.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) 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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.6ms) 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-15 20:21:21 -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" = 'test11' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$fJK//aY370P5.0iCt5soweHanTWgh1z6MnYCXLJHIKgPslJ3mkupW"], ["updated_at", Tue, 16 Jul 2013 01:21:21 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", 66], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:21 UTC +00:00], ["user_id", 85]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EQsLq3ChudWBKQP3daNz' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 66, "user_id" = 85, "created_at" = '2013-07-16 01:21:21.927719', "updated_at" = '2013-07-16 01:21:21.927719', "auth_token" = 'EQsLq3ChudWBKQP3daNz' WHERE "public"."cadenero_members"."id" = 84 +  (0.1ms) RELEASE SAVEPOINT active_record_2 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 85 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 85 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 85 + 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" = 85 +Completed 201 Created in 113ms (Views: 6.2ms | 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/85" for 127.0.0.1 at 2013-07-15 20:21:21 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"85"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 66 AND "public"."cadenero_users"."id" = 85 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 85 LIMIT 1 + Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 85 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 85 + 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" = 85 +Completed 200 OK in 13ms (Views: 7.2ms | ActiveRecord: 2.6ms) +  (6.2ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$e6fFHN0umxvtOvz/Kg2FLOrfsOKtvVNg0Z5GXq.PyzEmMqzx/AJYy"], ["updated_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 86], ["subdomain", "test12"], ["updated_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nCxW7UXvdy76u7BBNreB' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 86, "created_at" = '2013-07-16 01:21:22.072778', "updated_at" = '2013-07-16 01:21:22.072778', "authentication_token" = 'nCxW7UXvdy76u7BBNreB' WHERE "public"."cadenero_accounts"."id" = 67 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 67], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["user_id", 86]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EzGHvp4QNkCnyXZCdukB' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 67, "user_id" = 86, "created_at" = '2013-07-16 01:21:22.080076', "updated_at" = '2013-07-16 01:21:22.080076', "auth_token" = 'EzGHvp4QNkCnyXZCdukB' WHERE "public"."cadenero_members"."id" = 85 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) CREATE SCHEMA "test12" +  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "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") +  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (10.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (2.5ms) 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/users" for 127.0.0.1 at 2013-07-15 20:21:22 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$24MuuVH9L0glZAjVODhYJeEbdN/O8n5hAWisFDyNeBHPtT3/HJjaa"], ["updated_at", Tue, 16 Jul 2013 01:21:22 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", 67], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["user_id", 87]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CpvFjdRTqTkLRqGeq1jD' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 67, "user_id" = 87, "created_at" = '2013-07-16 01:21:22.296306', "updated_at" = '2013-07-16 01:21:22.296306', "auth_token" = 'CpvFjdRTqTkLRqGeq1jD' WHERE "public"."cadenero_members"."id" = 86 +  (0.1ms) RELEASE SAVEPOINT active_record_2 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 87 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 87 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 87 + 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" = 87 +Completed 201 Created in 168ms (Views: 6.9ms | 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/87" for 127.0.0.1 at 2013-07-15 20:21:22 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"87"} + 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 (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" = 67 AND "public"."cadenero_users"."id" = 87 LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 87 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 87 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 87 + 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" = 87 +Completed 200 OK in 25ms (Views: 13.9ms | ActiveRecord: 3.8ms) + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_2 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + SQL (1.1ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 87], ["subdomain", "test13"], ["updated_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eCPkYD31f5xpRDReqxgw' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 87, "created_at" = '2013-07-16 01:21:22.349630', "updated_at" = '2013-07-16 01:21:22.349630', "authentication_token" = 'eCPkYD31f5xpRDReqxgw' WHERE "public"."cadenero_accounts"."id" = 68 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 68], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["user_id", 87]] + Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'y3mYWgRtrzxqt4sqKAAR' LIMIT 1 +  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 68, "user_id" = 87, "created_at" = '2013-07-16 01:21:22.361490', "updated_at" = '2013-07-16 01:21:22.361490', "auth_token" = 'y3mYWgRtrzxqt4sqKAAR' WHERE "public"."cadenero_members"."id" = 87 +  (0.2ms) RELEASE SAVEPOINT active_record_2 +  (0.2ms) CREATE SCHEMA "test13" +  (4.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (11.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (5.4ms) 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.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (8.5ms) SELECT version FROM "schema_migrations" +  (4.0ms) 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/users" for 127.0.0.1 at 2013-07-15 20:21:22 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$638y/AluGsbhR0YDDfos6eLKFgnElU56MWC9RsSHuJpJEGHfpIaLK"], ["updated_at", Tue, 16 Jul 2013 01:21:22 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", 68], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:21:22 UTC +00:00], ["user_id", 88]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jyaA8xqTXtPx9sKkPySc' LIMIT 1 +  (0.9ms) UPDATE "public"."cadenero_members" SET "account_id" = 68, "user_id" = 88, "created_at" = '2013-07-16 01:21:22.590966', "updated_at" = '2013-07-16 01:21:22.590966', "auth_token" = 'jyaA8xqTXtPx9sKkPySc' WHERE "public"."cadenero_members"."id" = 88 +  (0.1ms) RELEASE SAVEPOINT active_record_2 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 88 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 88 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 88 + 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" = 88 +Completed 201 Created in 157ms (Views: 6.4ms | ActiveRecord: 4.4ms) + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/88" for 127.0.0.1 at 2013-07-15 20:21:22 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"88"} + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' 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" = 68 AND "public"."cadenero_users"."id" = 88 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 88 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 88 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 88 + 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" = 88 +Completed 200 OK in 18ms (Views: 11.5ms | ActiveRecord: 2.3ms) +Started GET "/v1/users/87" for 127.0.0.1 at 2013-07-15 20:21:22 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"87"} + 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" = 67 AND "public"."cadenero_users"."id" = 87 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 87 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 87 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 87 + 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" = 87 +Completed 200 OK in 15ms (Views: 7.9ms | ActiveRecord: 2.3ms) +Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 20:21:22 -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" = '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" = 67 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 87 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 87 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 87 + 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" = 87 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 86 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 86 + 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" = 86 +Completed 200 OK in 19ms (Views: 13.3ms | ActiveRecord: 3.1ms) +  (7.8ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.3ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (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) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) 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) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) 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.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.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (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.1ms) ROLLBACK +  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_2 + SQL (9.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$BIc2deUnAtk5cm9MuLNCbuhccnpvouwErsBW60Ge5sgaJ6GwDX.Gy"], ["updated_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 89], ["subdomain", "test1"], ["updated_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XB3vEarm5hV9pgiPscMB' LIMIT 1 +  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 89, "created_at" = '2013-07-16 01:22:03.227911', "updated_at" = '2013-07-16 01:22:03.227911', "authentication_token" = 'XB3vEarm5hV9pgiPscMB' WHERE "public"."cadenero_accounts"."id" = 69 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.6ms) SAVEPOINT active_record_2 + 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", 69], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["user_id", 89]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vXkeq6BksZSspnFxSeqT' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 69, "user_id" = 89, "created_at" = '2013-07-16 01:22:03.340750', "updated_at" = '2013-07-16 01:22:03.340750', "auth_token" = 'vXkeq6BksZSspnFxSeqT' WHERE "public"."cadenero_members"."id" = 89 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.3ms) CREATE SCHEMA "test1" +  (6.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (0.8ms) 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.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.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') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:22:03 -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_2 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$yblmb2QhC5piigo7aZAtCuHw9hgczap2BiiBScJMETFRwBigtz93O"], ["updated_at", Tue, 16 Jul 2013 01:22:03 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", 69], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["user_id", 90]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'z8dq4qMj6niiqhyPWgwp' LIMIT 1 +  (3.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 69, "user_id" = 90, "created_at" = '2013-07-16 01:22:03.549212', "updated_at" = '2013-07-16 01:22:03.549212', "auth_token" = 'z8dq4qMj6niiqhyPWgwp' WHERE "public"."cadenero_members"."id" = 90 +  (0.1ms) RELEASE SAVEPOINT active_record_2 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 90 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 90 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 90 + Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 90 +Completed 201 Created in 212ms (Views: 91.2ms | ActiveRecord: 8.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/90" for 127.0.0.1 at 2013-07-15 20:22:03 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"90"} + 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" = 69 AND "public"."cadenero_users"."id" = 90 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 90 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 90 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 90 + 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" = 90 +Completed 200 OK in 12ms (Views: 6.3ms | ActiveRecord: 1.6ms) + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_2 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 90], ["subdomain", "test2"], ["updated_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RRD2zD3jyQHd9r3wLbPb' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 90, "created_at" = '2013-07-16 01:22:03.686990', "updated_at" = '2013-07-16 01:22:03.686990', "authentication_token" = 'RRD2zD3jyQHd9r3wLbPb' WHERE "public"."cadenero_accounts"."id" = 70 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 70], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["user_id", 90]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'eVjTFpo3WcHby8Wnctke' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 70, "user_id" = 90, "created_at" = '2013-07-16 01:22:03.692586', "updated_at" = '2013-07-16 01:22:03.692586', "auth_token" = 'eVjTFpo3WcHby8Wnctke' WHERE "public"."cadenero_members"."id" = 91 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) CREATE SCHEMA "test2" +  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (2.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (5.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.4ms) 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.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.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 POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:22:03 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$r5maBxAeXf//Q2Ccag5N6.6vIXZvP.RAc74hkkzQPsNcg6Wgeu6MK"], ["updated_at", Tue, 16 Jul 2013 01:22: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", 70], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:22:03 UTC +00:00], ["user_id", 91]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Rxs8zW7hkMFoD7g9vsGP' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 70, "user_id" = 91, "created_at" = '2013-07-16 01:22:03.856008', "updated_at" = '2013-07-16 01:22:03.856008', "auth_token" = 'Rxs8zW7hkMFoD7g9vsGP' WHERE "public"."cadenero_members"."id" = 92 +  (0.1ms) RELEASE SAVEPOINT active_record_2 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 91 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 91 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 91 + 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" = 91 +Completed 201 Created in 115ms (Views: 5.8ms | ActiveRecord: 4.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/91" for 127.0.0.1 at 2013-07-15 20:22:03 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"91"} + 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" = 70 AND "public"."cadenero_users"."id" = 91 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 91 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 91 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 91 + 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" = 91 +Completed 200 OK in 12ms (Views: 6.4ms | ActiveRecord: 1.7ms) +Started GET "/v1/users/90" for 127.0.0.1 at 2013-07-15 20:22:03 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"90"} + 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" = 69 AND "public"."cadenero_users"."id" = 90 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 90 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 90 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 90 + 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" = 90 +Completed 200 OK in 11ms (Views: 6.4ms | ActiveRecord: 1.7ms) +Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 20:22:03 -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" = 69 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 90 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 90 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 90 + 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" = 90 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 89 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 89 + 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" = 89 +Completed 200 OK in 17ms (Views: 12.4ms | ActiveRecord: 2.4ms) +  (7.5ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_2 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:22:04 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$PRnp1L9kt5Mre7MZH.kg0eRcU2mNM24O9RPINm5V5S3eTM1hDb2NS"], ["updated_at", Tue, 16 Jul 2013 01:22:04 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:22:04 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 92], ["subdomain", "test3"], ["updated_at", Tue, 16 Jul 2013 01:22:04 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EZ7YWYLysxtzkKYzbVqX' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 92, "created_at" = '2013-07-16 01:22:04.046188', "updated_at" = '2013-07-16 01:22:04.046188', "authentication_token" = 'EZ7YWYLysxtzkKYzbVqX' WHERE "public"."cadenero_accounts"."id" = 71 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 71], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:22:04 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:22:04 UTC +00:00], ["user_id", 92]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jscU7Q7f8GTGXMneXVwv' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 71, "user_id" = 92, "created_at" = '2013-07-16 01:22:04.052278', "updated_at" = '2013-07-16 01:22:04.052278', "auth_token" = 'jscU7Q7f8GTGXMneXVwv' WHERE "public"."cadenero_members"."id" = 93 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.2ms) CREATE SCHEMA "test3" +  (9.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (3.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.9ms) 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.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (8.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (3.3ms) 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') +  (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-15 20:22:04 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:22:04 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$zbhxhXerz3ik4KIJOOnArO7KvpMTLYd/ExKd.dfSGGirDyyCS79jK"], ["updated_at", Tue, 16 Jul 2013 01:22:04 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", 71], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:22:04 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:22:04 UTC +00:00], ["user_id", 93]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2EfEzVrh4cRcpxWQK1bE' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 71, "user_id" = 93, "created_at" = '2013-07-16 01:22:04.255735', "updated_at" = '2013-07-16 01:22:04.255735', "auth_token" = '2EfEzVrh4cRcpxWQK1bE' WHERE "public"."cadenero_members"."id" = 94 +  (0.1ms) RELEASE SAVEPOINT active_record_2 + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 93 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 93 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 93 + 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" = 93 +Completed 201 Created in 132ms (Views: 7.0ms | ActiveRecord: 3.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/users/93" for 127.0.0.1 at 2013-07-15 20:22:04 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"93"} + 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" = 71 AND "public"."cadenero_users"."id" = 93 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 93 LIMIT 1 + Cadenero::Member Load (7.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 93 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 93 + 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" = 93 +Completed 200 OK in 20ms (Views: 7.1ms | ActiveRecord: 9.3ms) +  (5.3ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.6ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account"}} +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} +Completed 201 Created in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) BEGIN +  (0.5ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account"}} +Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} + 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" = $1 [["account_id", 1001]] +Completed 201 Created in 140ms (Views: 109.8ms | ActiveRecord: 10.8ms) +  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_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", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$.kVGApgEAdsfQlfd1.Iqn.inxYkpygD3tKqxuGfLAcmY7i96YJ04m"], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00]] + 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" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 94], ["subdomain", "test1"], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00]] + Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hPHFVZFpMs9rsipxMDmW' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 72 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 94], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["id", 72], ["authentication_token", "hPHFVZFpMs9rsipxMDmW"]] + SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 72], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["user_id", 94]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EmyzHQwVym7aTfcu75Rz' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 95 [["account_id", 72], ["user_id", 94], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["id", 95], ["auth_token", "EmyzHQwVym7aTfcu75Rz"]] +  (0.4ms) CREATE SCHEMA "test1" + SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.4ms) SELECT version FROM "schema_migrations" +  (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-15 20:24:22 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$Hd70rx8lXAdgtXmHQMpgEuRlWpDxEv2pC5SqBNZaVwT2wjAfIGTM6"], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 72], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["user_id", 95]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Eh3gdBCJX62hkrapLpH2' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 96 [["account_id", 72], ["user_id", 95], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["id", 96], ["auth_token", "Eh3gdBCJX62hkrapLpH2"]] + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 95 LIMIT 1 + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 95]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 95]] + Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 95]] +Completed 201 Created in 92ms (Views: 31.9ms | ActiveRecord: 5.2ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/95" for 127.0.0.1 at 2013-07-15 20:24:22 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"95"} + 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.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 95 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 72]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 95 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 95]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 95]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 95]] +Completed 200 OK in 13ms (Views: 6.2ms | ActiveRecord: 2.3ms) + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 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.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 95], ["subdomain", "test2"], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'BbiVoxccnH3L4f6qpNzb' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 73 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 95], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["id", 73], ["authentication_token", "BbiVoxccnH3L4f6qpNzb"]] + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 73], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["user_id", 95]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cytzz8NH7ydpkAQz9RFV' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 97 [["account_id", 73], ["user_id", 95], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["id", 97], ["auth_token", "cytzz8NH7ydpkAQz9RFV"]] +  (0.2ms) CREATE SCHEMA "test2" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (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.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-15 20:24:22 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$CwOaajNxFe7zIxUi4WQFyeye7zOv9D/Igs27mH4EU7oxRkphCDwFy"], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00]] + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 73], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["user_id", 96]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Hr53oHVYdsoXKpAHse37' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 98 [["account_id", 73], ["user_id", 96], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["id", 98], ["auth_token", "Hr53oHVYdsoXKpAHse37"]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 96 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 96]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 96]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 96]] +Completed 201 Created in 24ms (Views: 6.2ms | ActiveRecord: 5.2ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/96" for 127.0.0.1 at 2013-07-15 20:24:22 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"96"} + 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.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 96 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 73]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 96 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 96]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 96]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 96]] +Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 2.3ms) +Started GET "/v1/users/95" for 127.0.0.1 at 2013-07-15 20:24:22 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"95"} + 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.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 95 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 72]] + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 95 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 95]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 95]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 95]] +Completed 200 OK in 60ms (Views: 9.0ms | ActiveRecord: 2.8ms) +Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 20:24:22 -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.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 95 LIMIT 1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 72]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 95]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 95]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 95]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 94]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 94]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 94]] +Completed 200 OK in 20ms (Views: 13.8ms | ActiveRecord: 3.3ms) +  (13.2ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.2ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_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", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$Om5zGqE0697tFeFOZ7MjBeeWZGSTbAo/M2MQ6gZB88OKcruF8PwhS"], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00]] + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 97], ["subdomain", "test3"], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 's11KSVKeMnqs2NP6KH7E' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 74 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 97], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["id", 74], ["authentication_token", "s11KSVKeMnqs2NP6KH7E"]] + SQL (0.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 74], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["user_id", 97]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'h2NBAj6eCMFpDP2CGnJa' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 99 [["account_id", 74], ["user_id", 97], ["created_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:22 UTC +00:00], ["id", 99], ["auth_token", "h2NBAj6eCMFpDP2CGnJa"]] +  (0.5ms) CREATE SCHEMA "test3" + SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (21.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (5.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 20:24:23 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$FaZ5r/0W8IEMB/.Bea1pLeFPUsz1fT1O6aX9v4szALHEELSdMC0UG"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 74], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["user_id", 98]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bS2MNGYCkpu1TzeC1kRZ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 100 [["account_id", 74], ["user_id", 98], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 100], ["auth_token", "bS2MNGYCkpu1TzeC1kRZ"]] + Cadenero::User Load (2.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 98 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 98]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 98]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 98]] +Completed 201 Created in 25ms (Views: 6.5ms | ActiveRecord: 7.4ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/98" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"98"} + 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.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 98 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 74]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 98 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 98]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 98]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 98]] +Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 2.2ms) +  (4.4ms) ROLLBACK TO SAVEPOINT active_record_1 +  (1.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1001], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["user_id", 101]] + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zM11Ay3MSZyyxAUMu2Gy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 101 [["account_id", 1001], ["user_id", 101], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 101], ["auth_token", "zM11Ay3MSZyyxAUMu2Gy"]] +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (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" = '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", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$NvADpczK01p9XvyUrN1qge8aiGkwqT8EnkQSU4uG.0SGMfEdjUGfi"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["name", "Testy"], ["owner_id", 99], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qGEWe5TFCcfSS1TxP61X' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (2.5ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 75 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 99], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 75], ["authentication_token", "qGEWe5TFCcfSS1TxP61X"]] +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 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 24ms (Views: 0.3ms | ActiveRecord: 0.5ms) + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} + Cadenero::V1::Account Exists (0.4ms) 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", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$kYURM60Mke7LcQOndlwz3eVUTsMfFCRAFZGNBfX8N7LR.pWH7I2a2"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["name", "Testy"], ["owner_id", 100], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PqNybkJxD9qsqNo71u9i' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 76 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 100], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 76], ["authentication_token", "PqNybkJxD9qsqNo71u9i"]] + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 76], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["user_id", 100]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pVurnsgEqeX67sBpEbAQ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 102 [["account_id", 76], ["user_id", 100], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 102], ["auth_token", "pVurnsgEqeX67sBpEbAQ"]] +  (0.2ms) CREATE SCHEMA "test" + SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (7.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.2ms) SELECT version FROM "schema_migrations" +  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') + Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 76) LIMIT 1 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 100 LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 76]] +Completed 201 Created in 92ms (Views: 5.4ms | ActiveRecord: 56.3ms) + Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (12.7ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_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", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$5i.ci4PJJGmgOdLwWcEJ7.ddZayh6a4a.5v3hCpirhHvffetSzFma"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 + SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 101], ["subdomain", "test4"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'S7xk1p6kfnZqTCZ5T4Qg' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 77 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 101], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 77], ["authentication_token", "S7xk1p6kfnZqTCZ5T4Qg"]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 77], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 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" = 'EtiZsPQmPvsAHTvwKd8p' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 103 [["account_id", 77], ["user_id", 101], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 103], ["auth_token", "EtiZsPQmPvsAHTvwKd8p"]] +  (0.2ms) CREATE SCHEMA "test4" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (2.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (6.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 20:24:23 -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 ('test4') LIMIT 1 + Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 77]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 101 LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["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" = $1 [["user_id", 101]] +Completed 201 Created in 17ms (Views: 6.5ms | ActiveRecord: 3.2ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 77]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user3@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"101", "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 101 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:24: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) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:24:23 -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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$7hwIcr5mHUhNhYabKAjfJu7yC5Sc/4CQkFxo16bZlFwcFarUR5z3u"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 77], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["user_id", 102]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yNK6XiRgvNbqc1UGKrzZ' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 104 [["account_id", 77], ["user_id", 102], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 104], ["auth_token", "yNK6XiRgvNbqc1UGKrzZ"]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 102 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 102]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 102]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 102]] +Completed 201 Created in 21ms (Views: 6.1ms | ActiveRecord: 3.9ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/102" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"102"} + 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.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 102 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 77]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 102 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 102]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 102]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 102]] +Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 2.3ms) + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:24:23 -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" = 102 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 102]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 102]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 102]] +Completed 201 Created in 8ms (Views: 5.1ms | ActiveRecord: 1.3ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (5.3ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.5ms) ROLLBACK +  (0.7ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_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", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$s38eyqvzL0gZrkI2NSownewzuXC6tSU5FwTuv7TRx4wyCjAo976dy"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 103], ["subdomain", "test5"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] + Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5prM48wEsLBeP5pMfRUN' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 78 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 103], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 78], ["authentication_token", "5prM48wEsLBeP5pMfRUN"]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 78], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["user_id", 103]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JjWhpMnxXpq7C1ymyZaz' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 105 [["account_id", 78], ["user_id", 103], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 105], ["auth_token", "JjWhpMnxXpq7C1ymyZaz"]] +  (0.2ms) CREATE SCHEMA "test5" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (8.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.3ms) 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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.6ms) 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-15 20:24: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) +Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:24:23 -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" = 'test5' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$04$1WIdPvd3q8ouKCOOLfYTze48CKVKVUyC6chJytxV457SswxeL1bJq"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 78], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["user_id", 104]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kqGeCpLZ9BnLfmQDqthk' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 106 [["account_id", 78], ["user_id", 104], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 106], ["auth_token", "kqGeCpLZ9BnLfmQDqthk"]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 104 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 104]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 104]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 104]] +Completed 201 Created in 80ms (Views: 63.2ms | ActiveRecord: 4.6ms) + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1/users/104" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"104"} + 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 (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 104 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 78]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 104 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 104]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 104]] + Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 104]] +Completed 200 OK in 13ms (Views: 6.4ms | ActiveRecord: 2.9ms) + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:24:23 -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" = 104 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 104]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 104]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 104]] +Completed 201 Created in 8ms (Views: 5.2ms | ActiveRecord: 1.4ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:24:23 -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" = 104 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (3.4ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.7ms) 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", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$2JK.R9NnGUNSUxFfuurJpO9ubBvMYGQZQeQpn2DW3fLFRW1sPbop2"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 + SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 105], ["subdomain", "test6"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] + Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9GoUAq5qsyvUbRzojJEz' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 79 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 105], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 79], ["authentication_token", "9GoUAq5qsyvUbRzojJEz"]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 79], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["user_id", 105]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4zjtxcDn157p3fcrw9Ye' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 107 [["account_id", 79], ["user_id", 105], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 107], ["auth_token", "4zjtxcDn157p3fcrw9Ye"]] +  (0.2ms) CREATE SCHEMA "test6" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.7ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (1.9ms) 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-15 20:24: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) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:24:23 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 [["account_id", 79]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 105 LIMIT 1 + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 105]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 105]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 105]] +Completed 201 Created in 15ms (Views: 6.0ms | 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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 79]] +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:24:23 -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" = 105 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (4.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (1.1ms) ROLLBACK +  (0.3ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$kNExYAIjRL3/Fv68AFgh5.C9vTwTydUjmSLkHYLEiKp1wReHkQgLC"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] + Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (1.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 106], ["subdomain", "test7"], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QkTf42tbS5ZBjZNadLxj' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (1.1ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 80 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 106], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 80], ["authentication_token", "QkTf42tbS5ZBjZNadLxj"]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 80], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["user_id", 106]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qJ7at2xSiMPq9UdGGTcK' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 108 [["account_id", 80], ["user_id", 106], ["created_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:23 UTC +00:00], ["id", 108], ["auth_token", "qJ7at2xSiMPq9UdGGTcK"]] +  (0.2ms) CREATE SCHEMA "test7" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (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/sessions" for 127.0.0.1 at 2013-07-15 20:24:23 -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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 + Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 80]] + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 106 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 106]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 106]] + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 106]] +Completed 201 Created in 16ms (Views: 6.3ms | ActiveRecord: 3.4ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 80]] +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:24:23 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"106", "default"=>:json} + Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 106 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:24: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.2ms | ActiveRecord: 0.0ms) +  (3.7ms) ROLLBACK TO SAVEPOINT active_record_1 +  (1.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$i5383Bc9RP02r.uxQKTbSeIyL33jW/V.ZF30njdcawGLk2tnJy82m"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 107], ["subdomain", "test8"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'iojFKUozBC5yssb7Ct5g' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 81 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 107], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 81], ["authentication_token", "iojFKUozBC5yssb7Ct5g"]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 81], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["user_id", 107]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 's5D3GNyyCQfhAULddEzt' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 109 [["account_id", 81], ["user_id", 107], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 109], ["auth_token", "s5D3GNyyCQfhAULddEzt"]] +  (0.2ms) CREATE SCHEMA "test8" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (4.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (8.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (6.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (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.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.4ms) 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-15 20:24:24 -0500 + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (3.3ms) ROLLBACK TO SAVEPOINT active_record_1 +  (1.0ms) ROLLBACK +  (0.4ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_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", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$Ua5r2xEYmxGo.K6tvsQOzeULYYK6s4rBYeFgF9jK9gA.1G6nHLv.y"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] + 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" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 108], ["subdomain", "test9"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7iFAhVTHkoZLBopHxqYt' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 82 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 108], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 82], ["authentication_token", "7iFAhVTHkoZLBopHxqYt"]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 82], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["user_id", 108]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dv4kWpnyuUMkVTxBxxEy' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 110 [["account_id", 82], ["user_id", 108], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 110], ["auth_token", "dv4kWpnyuUMkVTxBxxEy"]] +  (0.2ms) CREATE SCHEMA "test9" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (3.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (6.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:24:24 -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-15 20:24:24 -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 (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 82]] +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (4.9ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.7ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$rHpFf32vofKnCPkU.aREfur9Uk66ffTajatAXYeG87iZXbVZ9QckO"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 + SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 109], ["subdomain", "test10"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] + Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4zTw56sNiD4v3oW8mBLn' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 83 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 109], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 83], ["authentication_token", "4zTw56sNiD4v3oW8mBLn"]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 83], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["user_id", 109]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'n1PWeuzXC9nx69mkRYjB' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 111 [["account_id", 83], ["user_id", 109], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 111], ["auth_token", "n1PWeuzXC9nx69mkRYjB"]] +  (0.2ms) CREATE SCHEMA "test10" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.2ms) 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.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-15 20:24:24 -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-15 20:24:24 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 83]] +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.2ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (2.4ms) ROLLBACK TO SAVEPOINT active_record_1 +  (4.6ms) ROLLBACK +  (0.4ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$D6UCRo7kUCmuQUJZeOhde.NPQrHllJQlg2XHAIObSC/jiSlGNCc.W"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 110], ["subdomain", "test11"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '432JsnAxpyJ6R2LSGyKB' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (1.2ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 84 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 110], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 84], ["authentication_token", "432JsnAxpyJ6R2LSGyKB"]] + SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 84], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["user_id", 110]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9orDdeDbBEuzqDesrbHs' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 112 [["account_id", 84], ["user_id", 110], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 112], ["auth_token", "9orDdeDbBEuzqDesrbHs"]] +  (0.2ms) CREATE SCHEMA "test11" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$BOI3SWm2mQH1t9p5sf39hOf1nXMdrJIoRHrZXmZ9ed8L.1/6GrlqW"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] + 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" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 111], ["subdomain", "test12"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4DTGqAqBcLHpcAvHMWyH' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 85 [["name", "Test Account #12"], ["subdomain", "test12"], ["owner_id", 111], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 85], ["authentication_token", "4DTGqAqBcLHpcAvHMWyH"]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 85], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["user_id", 111]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MyBnucEUZcsJwHfbLKxX' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 113 [["account_id", 85], ["user_id", 111], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 113], ["auth_token", "MyBnucEUZcsJwHfbLKxX"]] +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:24:24 -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-15 20:24:24 -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 ('test11') LIMIT 1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user11@example.com' LIMIT 1 [["account_id", 84]] +Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 +  (4.3ms) ROLLBACK TO SAVEPOINT active_record_1 +  (1.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (1.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +Processing by Cadenero::V1::Account::UsersController#index as JSON + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["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" = $1 [["user_id", 101]] +Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 1.7ms) +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +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" = $1 [["user_id", 101]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] +Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 1.5ms) +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +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.2ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +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 TO SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (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" = '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", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$d4WDKvKxEUdIyQPvUIoCVOrnUvjX.pZ2XytJZkwhh8eACyO9t5U4y"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] + SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["name", "Test Account"], ["owner_id", 112], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00]] + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'h92zJEKss8snEU9j4Rcr' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 86 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 112], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 86], ["authentication_token", "h92zJEKss8snEU9j4Rcr"]] + SQL (0.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 86], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["user_id", 112]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sqyHrciRv2E2QUKS9rdP' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 114 [["account_id", 86], ["user_id", 112], ["created_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:24 UTC +00:00], ["id", 114], ["auth_token", "sqyHrciRv2E2QUKS9rdP"]] +  (0.2ms) CREATE SCHEMA "test" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (7.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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::User Load (2.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 86]] +  (5.0ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.9ms) ROLLBACK +  (0.2ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (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" = 'subdomain' LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (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" = 'subdomain' LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.2ms) ROLLBACK +  (0.2ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" + SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$04$3q/QJyVDzHD/z7DQ8dPi..EeVEQw3yT5.XMRrzygjOJiZiZvkjL2C"], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00]] + Cadenero::V1::Account Exists (0.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" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 113], ["subdomain", "test13"], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TfbkKEGNR88G5pPypc1b' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 87 [["name", "Test Account #13"], ["subdomain", "test13"], ["owner_id", 113], ["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["id", 87], ["authentication_token", "TfbkKEGNR88G5pPypc1b"]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 87], ["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["user_id", 113]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jwzDApGuTmj9poSxzAnj' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 115 [["account_id", 87], ["user_id", 113], ["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["id", 115], ["auth_token", "jwzDApGuTmj9poSxzAnj"]] + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$04$GTpLH858jxI1BMw4S0T..uUz7zIOJpIbNabONmSRGP5w.2qPlFNeS"], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$Gx3za.vfHUuHzE5yUuGbpuuD7p274h3MFBBLUZdf7zTgdz1ZM5xR6"], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00]] + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["name", "Root"], ["owner_id", 115], ["subdomain", "www"], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oqMH8qNTtywezLhEqaxV' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = $1, "subdomain" = $2, "owner_id" = $3, "created_at" = $4, "updated_at" = $5, "id" = $6, "authentication_token" = $7 WHERE "public"."cadenero_accounts"."id" = 88 [["name", "Root"], ["subdomain", "www"], ["owner_id", 115], ["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["id", 88], ["authentication_token", "oqMH8qNTtywezLhEqaxV"]] + SQL (0.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 88], ["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["user_id", 115]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6XHSgRstKBAiFjnTA6mR' ORDER BY "public"."cadenero_members"."id" ASC LIMIT 1 + SQL (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = $1, "user_id" = $2, "created_at" = $3, "updated_at" = $4, "id" = $5, "auth_token" = $6 WHERE "public"."cadenero_members"."id" = 116 [["account_id", 88], ["user_id", 115], ["created_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:24:30 UTC +00:00], ["id", 116], ["auth_token", "6XHSgRstKBAiFjnTA6mR"]] +  (0.2ms) CREATE SCHEMA "www" + SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql" +  (4.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" USING btree ("auth_token") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id") +  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (3.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (3.3ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 +  (1.0ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.9ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (1.2ms) ROLLBACK TO SAVEPOINT active_record_1 +  (0.3ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) BEGIN +  (0.1ms) SAVEPOINT active_record_2 + SQL (9.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:06 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$dRAxsx..j/.pnYWcIjCJZeoHrFE2cXhexlWWVKVhRJOEz1ratmeri"], ["updated_at", Tue, 16 Jul 2013 01:25:06 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:06 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 116], ["subdomain", "test1"], ["updated_at", Tue, 16 Jul 2013 01:25:06 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'daUFzks7d7acTyabCyJW' LIMIT 1 +  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 116, "created_at" = '2013-07-16 01:25:06.603672', "updated_at" = '2013-07-16 01:25:06.603672', "authentication_token" = 'daUFzks7d7acTyabCyJW' WHERE "public"."cadenero_accounts"."id" = 89 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 89], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:06 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:06 UTC +00:00], ["user_id", 116]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'EK9UsHyxux4AXHZznyTM' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 89, "user_id" = 116, "created_at" = '2013-07-16 01:25:06.712855', "updated_at" = '2013-07-16 01:25:06.712855', "auth_token" = 'EK9UsHyxux4AXHZznyTM' WHERE "public"."cadenero_members"."id" = 117 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.3ms) CREATE SCHEMA "test1" +  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "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") +  (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 NOT NULL, "updated_at" timestamp NOT NULL)  +  (2.0ms) 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.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/users" for 127.0.0.1 at 2013-07-15 20:25:06 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:06 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$nyx8nwAMkNrcRR8UvdHe1.WSeRASzcvechQX9u1NdN6I6tmXaurA."], ["updated_at", Tue, 16 Jul 2013 01:25:06 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", 89], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:06 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:06 UTC +00:00], ["user_id", 117]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TmKVvxu3ELtxjFK25hzt' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 89, "user_id" = 117, "created_at" = '2013-07-16 01:25:06.923888', "updated_at" = '2013-07-16 01:25:06.923888', "auth_token" = 'TmKVvxu3ELtxjFK25hzt' WHERE "public"."cadenero_members"."id" = 118 +  (0.1ms) RELEASE SAVEPOINT active_record_2 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 117 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 117 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 117 + 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" = 117 +Completed 201 Created in 203ms (Views: 82.5ms | ActiveRecord: 5.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/117" for 127.0.0.1 at 2013-07-15 20:25:07 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"117"} + 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" = 89 AND "public"."cadenero_users"."id" = 117 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 117 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 117 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 117 + 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" = 117 +Completed 200 OK in 12ms (Views: 6.1ms | ActiveRecord: 1.8ms) +  (6.2ms) ROLLBACK +  (0.2ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$t7THmNKQIbUr7f4X3Lf0JuZNQkXvhOBcDkg6UDCg9Ibjf45vO121S"], ["updated_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 118], ["subdomain", "test2"], ["updated_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nuuN7DpWS8isXZrxPT7L' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 118, "created_at" = '2013-07-16 01:25:07.174339', "updated_at" = '2013-07-16 01:25:07.174339', "authentication_token" = 'nuuN7DpWS8isXZrxPT7L' WHERE "public"."cadenero_accounts"."id" = 90 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 90], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["user_id", 118]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Xj1NyYxRhJfjFyr9yLwj' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 90, "user_id" = 118, "created_at" = '2013-07-16 01:25:07.179809', "updated_at" = '2013-07-16 01:25:07.179809', "auth_token" = 'Xj1NyYxRhJfjFyr9yLwj' WHERE "public"."cadenero_members"."id" = 119 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) CREATE SCHEMA "test2" +  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (2.3ms) 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.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (26.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (3.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:25:07 -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" = 'test2' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$IAhOYiu7xApZPYJB4z6xker78RHKA8jENfxaTbt3QqU/00i/3Axty"], ["updated_at", Tue, 16 Jul 2013 01:25:07 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", 90], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["user_id", 119]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'U7q7gbRxaLqsKqkYWiTN' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 90, "user_id" = 119, "created_at" = '2013-07-16 01:25:07.429489', "updated_at" = '2013-07-16 01:25:07.429489', "auth_token" = 'U7q7gbRxaLqsKqkYWiTN' WHERE "public"."cadenero_members"."id" = 120 +  (0.1ms) RELEASE SAVEPOINT active_record_2 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 119 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 119 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 119 + 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" = 119 +Completed 201 Created in 176ms (Views: 6.7ms | 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/119" for 127.0.0.1 at 2013-07-15 20:25:07 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"119"} + Cadenero::V1::Account Load (0.9ms) 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" = 90 AND "public"."cadenero_users"."id" = 119 LIMIT 1 + Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 119 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 119 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 119 + 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" = 119 +Completed 200 OK in 14ms (Views: 6.7ms | ActiveRecord: 4.1ms) + 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_2 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 119], ["subdomain", "test3"], ["updated_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ieuJzSZELwujbREPzqJh' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 119, "created_at" = '2013-07-16 01:25:07.468863', "updated_at" = '2013-07-16 01:25:07.468863', "authentication_token" = 'ieuJzSZELwujbREPzqJh' WHERE "public"."cadenero_accounts"."id" = 91 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 91], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["user_id", 119]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'N8x9KexP5en8EEcvadoj' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 91, "user_id" = 119, "created_at" = '2013-07-16 01:25:07.474983', "updated_at" = '2013-07-16 01:25:07.474983', "auth_token" = 'N8x9KexP5en8EEcvadoj' WHERE "public"."cadenero_members"."id" = 121 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.3ms) CREATE SCHEMA "test3" +  (3.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (6.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (3.5ms) 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.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 20:25:07 -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" = 'test3' LIMIT 1 +  (0.6ms) SAVEPOINT active_record_2 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$SRN9wVx9Thyy.gsqNTabm.aaFnFvnl3w0AA7Jxn7ZBeeqHohgqWd2"], ["updated_at", Tue, 16 Jul 2013 01:25:07 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", 91], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["user_id", 120]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cYhtZnBJJ2xBjobpY3bx' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 91, "user_id" = 120, "created_at" = '2013-07-16 01:25:07.649653', "updated_at" = '2013-07-16 01:25:07.649653', "auth_token" = 'cYhtZnBJJ2xBjobpY3bx' WHERE "public"."cadenero_members"."id" = 122 +  (0.1ms) RELEASE SAVEPOINT active_record_2 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 120 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 120 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 120 + 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" = 120 +Completed 201 Created in 126ms (Views: 6.1ms | ActiveRecord: 4.0ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/120" for 127.0.0.1 at 2013-07-15 20:25:07 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"120"} + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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" = 91 AND "public"."cadenero_users"."id" = 120 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 120 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 120 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 120 + 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" = 120 +Completed 200 OK in 11ms (Views: 6.4ms | ActiveRecord: 1.6ms) +Started GET "/v1/users/119" for 127.0.0.1 at 2013-07-15 20:25:07 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"119"} + 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" = 90 AND "public"."cadenero_users"."id" = 119 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 119 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 119 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 119 + 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" = 119 +Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.6ms) +Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 20:25:07 -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" = 90 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 119 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 119 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 119 + Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 119 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 118 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 118 + 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" = 118 +Completed 200 OK in 19ms (Views: 13.0ms | ActiveRecord: 4.1ms) +  (9.7ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (7.4ms) RELEASE SAVEPOINT active_record_1 +  (1.6ms) BEGIN +  (0.1ms) SAVEPOINT active_record_2 + 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", Tue, 16 Jul 2013 01:25:07 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:07 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" = 'SSNTx7s7HY8eprFALqsX' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-16 01:25:07.860673', "updated_at" = '2013-07-16 01:25:07.860673', "auth_token" = 'SSNTx7s7HY8eprFALqsX' WHERE "public"."cadenero_members"."id" = 123 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (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) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (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) ROLLBACK +  (0.1ms) BEGIN +  (0.0ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (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) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_2 + 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", Tue, 16 Jul 2013 01:25:08 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Eu1jQGG47E51uQrX4ppXdOFHhuolzL/4s5Ff.nF614WSgKTMb9bku"], ["updated_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00], ["name", "Test Account"], ["owner_id", 121], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gusgWWwqf9RuGNKXBo3E' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 121, "created_at" = '2013-07-16 01:25:08.200198', "updated_at" = '2013-07-16 01:25:08.200198', "authentication_token" = 'gusgWWwqf9RuGNKXBo3E' WHERE "public"."cadenero_accounts"."id" = 92 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 92], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00], ["user_id", 121]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Hr33LGcwLhCRcrQxiQKe' LIMIT 1 +  (1.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 92, "user_id" = 121, "created_at" = '2013-07-16 01:25:08.205710', "updated_at" = '2013-07-16 01:25:08.205710', "auth_token" = 'Hr33LGcwLhCRcrQxiQKe' WHERE "public"."cadenero_members"."id" = 124 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.2ms) CREATE SCHEMA "test" +  (6.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (0.9ms) 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.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.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.2ms) 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" = 92 LIMIT 1 +  (18.6ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} +Completed 201 Created in 8ms (Views: 7.4ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (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) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 20:25:08 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (0.1ms) SAVEPOINT active_record_2 + Cadenero::V1::Account Exists (0.4ms) 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", Tue, 16 Jul 2013 01:25:08 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$P6T/h/50DykwNC4LiC0Q1Oey0GXs8bt7QSeLbmXkvY5jg2G.EPDH2"], ["updated_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00], ["name", "Testy"], ["owner_id", 122], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'byqyoS88pzsn8BkNTdaz' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 122, "created_at" = '2013-07-16 01:25:08.676143', "updated_at" = '2013-07-16 01:25:08.676143', "authentication_token" = 'byqyoS88pzsn8BkNTdaz' WHERE "public"."cadenero_accounts"."id" = 93 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 93], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00], ["user_id", 122]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3HbrGka8jszk6Y7FxQzg' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 93, "user_id" = 122, "created_at" = '2013-07-16 01:25:08.682056', "updated_at" = '2013-07-16 01:25:08.682056', "auth_token" = '3HbrGka8jszk6Y7FxQzg' WHERE "public"."cadenero_members"."id" = 125 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.2ms) CREATE SCHEMA "test" +  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "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.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.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.4ms) 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') + Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 93) LIMIT 1 +Completed 201 Created in 169ms (Views: 1.8ms | ActiveRecord: 40.2ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (5.1ms) ROLLBACK +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.4ms) SAVEPOINT active_record_1 +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) BEGIN +  (0.1ms) SAVEPOINT active_record_2 + Cadenero::V1::Account Exists (0.4ms) 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", Tue, 16 Jul 2013 01:25:08 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$l0tHHoCoqx4msGIprJ5VbOzmiI4mncmsKuVvlNV.MfLWtRi1EwI7K"], ["updated_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00], ["name", "Testy"], ["owner_id", 123], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:25:08 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xEHdGuycSNy7v5Z3bE3b' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 123, "created_at" = '2013-07-16 01:25:08.859206', "updated_at" = '2013-07-16 01:25:08.859206', "authentication_token" = 'xEHdGuycSNy7v5Z3bE3b' WHERE "public"."cadenero_accounts"."id" = 94 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 20:25:08 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (0.2ms) SAVEPOINT active_record_2 + Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (0.1ms) ROLLBACK TO SAVEPOINT active_record_2 + CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 104ms (Views: 0.3ms | ActiveRecord: 1.5ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (0.3ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (0.2ms) SAVEPOINT active_record_2 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:11 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$s.wMDM3YSxxhve7sNXnLbOAVvki0JUO7TDXZtQk.BVgkA2oy5pMtu"], ["updated_at", Tue, 16 Jul 2013 01:25:11 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:11 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 124], ["subdomain", "test4"], ["updated_at", Tue, 16 Jul 2013 01:25:11 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vxgdxpz4aA3Pzbx2g9a9' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 124, "created_at" = '2013-07-16 01:25:11.814473', "updated_at" = '2013-07-16 01:25:11.814473', "authentication_token" = 'vxgdxpz4aA3Pzbx2g9a9' WHERE "public"."cadenero_accounts"."id" = 95 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 95], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:11 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:11 UTC +00:00], ["user_id", 124]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'r8PCiSC7qACH7iiSTH2s' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 95, "user_id" = 124, "created_at" = '2013-07-16 01:25:11.821174', "updated_at" = '2013-07-16 01:25:11.821174', "auth_token" = 'r8PCiSC7qACH7iiSTH2s' WHERE "public"."cadenero_members"."id" = 126 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:11 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$J/lPPhOaUKtuRzIOjdjzvOBSvPQxA9OSZtgmqeUUSJrnAOB4Xe0Lu"], ["updated_at", Tue, 16 Jul 2013 01:25:11 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.2ms) SAVEPOINT active_record_2 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:12 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$LnvP1.P6BTfSHzny3yKEFuxt5/pZioBY7vdfDRXGnsltcpTfNmE9y"], ["updated_at", Tue, 16 Jul 2013 01:25:12 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:12 UTC +00:00], ["name", "Root"], ["owner_id", 126], ["subdomain", "www"], ["updated_at", Tue, 16 Jul 2013 01:25:12 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'C1ziTQFZhM7NgqNx71jx' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 126, "created_at" = '2013-07-16 01:25:12.026253', "updated_at" = '2013-07-16 01:25:12.026253', "authentication_token" = 'C1ziTQFZhM7NgqNx71jx' WHERE "public"."cadenero_accounts"."id" = 96 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 96], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:12 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:12 UTC +00:00], ["user_id", 126]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qqPSFqWZ3sey2hjptGnp' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 96, "user_id" = 126, "created_at" = '2013-07-16 01:25:12.031736', "updated_at" = '2013-07-16 01:25:12.031736', "auth_token" = 'qqPSFqWZ3sey2hjptGnp' WHERE "public"."cadenero_members"."id" = 127 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.2ms) CREATE SCHEMA "www" +  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.5ms) 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.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (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') +  (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.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (6.0ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.5ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.7ms) RELEASE SAVEPOINT active_record_1 +  (1.6ms) 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.2ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (0.8ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (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) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (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) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) 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.2ms | ActiveRecord: 1.0ms) +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + 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" = 101 +Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 1.2ms) +  (0.1ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:16 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$Xk5RTcHvsQ4K7BEZzxwpWudzqepncHwOdrTXynlyBLLEmYkleweOC"], ["updated_at", Tue, 16 Jul 2013 01:25:16 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:16 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 127], ["subdomain", "test5"], ["updated_at", Tue, 16 Jul 2013 01:25:16 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oGMDe72puUw7JdpEske8' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 127, "created_at" = '2013-07-16 01:25:16.605942', "updated_at" = '2013-07-16 01:25:16.605942', "authentication_token" = 'oGMDe72puUw7JdpEske8' WHERE "public"."cadenero_accounts"."id" = 97 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 97], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:16 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:16 UTC +00:00], ["user_id", 127]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7BPxadCe4ASZzAEEePxy' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 97, "user_id" = 127, "created_at" = '2013-07-16 01:25:16.617764', "updated_at" = '2013-07-16 01:25:16.617764', "auth_token" = '7BPxadCe4ASZzAEEePxy' WHERE "public"."cadenero_members"."id" = 128 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) CREATE SCHEMA "test5" +  (6.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (2.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.6ms) 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") +  (6.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:25:16 -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-15 20:25:16 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.5ms) 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" = 97 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" = 127 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 127 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 127 + 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" = 127 +Completed 201 Created in 112ms (Views: 5.9ms | ActiveRecord: 2.6ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 97 +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:25:16 -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" = 127 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (9.0ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$Ch6pcx6BYxqSTJfDIcYOheTYBVKgyT47qFvcKoQDqXH8uVVHwTpiW"], ["updated_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 128], ["subdomain", "test6"], ["updated_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ziac3RcuYqd7ztqQrFax' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 128, "created_at" = '2013-07-16 01:25:17.015493', "updated_at" = '2013-07-16 01:25:17.015493', "authentication_token" = 'ziac3RcuYqd7ztqQrFax' WHERE "public"."cadenero_accounts"."id" = 98 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 98], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00], ["user_id", 128]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HrH5StU387y1XfM4tAMh' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 98, "user_id" = 128, "created_at" = '2013-07-16 01:25:17.021729', "updated_at" = '2013-07-16 01:25:17.021729', "auth_token" = 'HrH5StU387y1XfM4tAMh' WHERE "public"."cadenero_members"."id" = 129 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) CREATE SCHEMA "test6" +  (6.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (97.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (22.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (25.3ms) 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.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (42.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (37.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.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-15 20:25:17 -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.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" = 98 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" = 128 LIMIT 1 + Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 128 + Cadenero::V1::Account Load (6.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 128 + 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" = 128 +Completed 201 Created in 246ms (Views: 6.1ms | ActiveRecord: 10.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"."account_id" = 98 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:25:17 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"128", "default"=>:json} + Cadenero::User Load (10.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 128 LIMIT 1 +Completed 200 OK in 13ms (Views: 0.2ms | ActiveRecord: 10.2ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:25:17 -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.9ms) ROLLBACK +  (0.1ms) ROLLBACK +  (9.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (49.4ms) SAVEPOINT active_record_2 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$2NhWp0CX2RhCzG99Ztq.mOMk77SYipM.sJlDtlCl6OGd4pqR1SgrC"], ["updated_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (0.8ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 129], ["subdomain", "test7"], ["updated_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DJCy6YfXwvt15H6oA57E' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 129, "created_at" = '2013-07-16 01:25:17.887081', "updated_at" = '2013-07-16 01:25:17.887081', "authentication_token" = 'DJCy6YfXwvt15H6oA57E' WHERE "public"."cadenero_accounts"."id" = 99 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 99], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:17 UTC +00:00], ["user_id", 129]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uXNECkD9nR7CRg2tPEQS' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 99, "user_id" = 129, "created_at" = '2013-07-16 01:25:17.893228', "updated_at" = '2013-07-16 01:25:17.893228', "auth_token" = 'uXNECkD9nR7CRg2tPEQS' WHERE "public"."cadenero_members"."id" = 130 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) CREATE SCHEMA "test7" +  (22.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (8.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "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") +  (3.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (8.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (6.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (2.0ms) SELECT version FROM "schema_migrations" +  (7.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (5.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (2.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-15 20:25:18 -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-15 20:25:18 -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.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_2 + SQL (5.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$yWaQ7iJzsEFZmSYSgqKx2uslk3YUaCwBse6KeWa5NjUHyDwyWHloq"], ["updated_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00]] + SQL (5.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", 99], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00], ["user_id", 130]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '9RW4FzxwGTouqpyDVNBy' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 99, "user_id" = 130, "created_at" = '2013-07-16 01:25:18.154753', "updated_at" = '2013-07-16 01:25:18.154753', "auth_token" = '9RW4FzxwGTouqpyDVNBy' WHERE "public"."cadenero_members"."id" = 131 +  (0.1ms) RELEASE SAVEPOINT active_record_2 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 130 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 130 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 130 + 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" = 130 +Completed 201 Created in 141ms (Views: 5.6ms | ActiveRecord: 13.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/130" for 127.0.0.1 at 2013-07-15 20:25:18 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"130"} + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 99 AND "public"."cadenero_users"."id" = 130 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 130 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 130 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 130 + 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" = 130 +Completed 200 OK in 10ms (Views: 5.7ms | 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 +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:25:18 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 130 LIMIT 1 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 130 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 130 + 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" = 130 +Completed 201 Created in 16ms (Views: 11.3ms | ActiveRecord: 3.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" for 127.0.0.1 at 2013-07-15 20:25:18 -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" = 130 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.5ms) +  (7.0ms) ROLLBACK +  (0.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) BEGIN +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$jKteI8FHFV4qdPjfqA0fAuKr5E6QZCAticoR.vVvEVcDh6bOfMiRq"], ["updated_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 131], ["subdomain", "test8"], ["updated_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vikaiTZoYFptpwotPsqe' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 131, "created_at" = '2013-07-16 01:25:18.418910', "updated_at" = '2013-07-16 01:25:18.418910', "authentication_token" = 'vikaiTZoYFptpwotPsqe' WHERE "public"."cadenero_accounts"."id" = 100 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 100], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00], ["user_id", 131]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'q4GycpxGSB5fyc9wpSmi' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 100, "user_id" = 131, "created_at" = '2013-07-16 01:25:18.424518', "updated_at" = '2013-07-16 01:25:18.424518', "auth_token" = 'q4GycpxGSB5fyc9wpSmi' WHERE "public"."cadenero_members"."id" = 132 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) CREATE SCHEMA "test8" +  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (3.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (8.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (6.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (7.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") +  (12.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (9.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (1.7ms) 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:25:18 -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.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" = 100 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 + Cadenero::User Load (12.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 131 LIMIT 1 + Cadenero::Member Load (11.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 131 + Cadenero::V1::Account Load (10.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 131 + Cadenero::V1::Account Load (17.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 131 +Completed 201 Created in 216ms (Views: 6.8ms | ActiveRecord: 53.3ms) + Cadenero::V1::Account Load (10.6ms) 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"."account_id" = 100 + 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-15 20:25:18 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"131", "default"=>:json} + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 131 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:25:18 -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-15 20:25:18 -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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 +  (3.4ms) SAVEPOINT active_record_2 + SQL (2.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$fC.kXgxK06dcT9UG/5YLtOsCSvvbd0NWr9E6ovGrC8PS2dP9UnCxW"], ["updated_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00]] + 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", 100], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:18 UTC +00:00], ["user_id", 132]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8dqREiqhnhkDgU3yTqeL' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 100, "user_id" = 132, "created_at" = '2013-07-16 01:25:18.938760', "updated_at" = '2013-07-16 01:25:18.938760', "auth_token" = '8dqREiqhnhkDgU3yTqeL' WHERE "public"."cadenero_members"."id" = 133 +  (3.3ms) RELEASE SAVEPOINT active_record_2 + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 132 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 132 + Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 132 + Cadenero::V1::Account Load (4.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 132 +Completed 201 Created in 169ms (Views: 16.7ms | ActiveRecord: 26.0ms) + Cadenero::V1::Account Load (5.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +Started GET "/v1/users/132" for 127.0.0.1 at 2013-07-15 20:25:18 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"132"} + 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 (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" = 100 AND "public"."cadenero_users"."id" = 132 LIMIT 1 + Cadenero::User Load (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 132 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 132 + Cadenero::V1::Account Load (6.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 132 + Cadenero::V1::Account Load (10.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 132 +Completed 200 OK in 35ms (Views: 9.9ms | ActiveRecord: 20.7ms) + Cadenero::User Load (3.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-15 20:25:19 -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" = 132 LIMIT 1 + Cadenero::Member Load (5.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 132 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 132 + 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" = 132 +Completed 201 Created in 14ms (Views: 5.8ms | ActiveRecord: 6.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 +  (4.4ms) ROLLBACK +  (0.1ms) ROLLBACK +  (2.5ms) BEGIN +  (1.3ms) SAVEPOINT active_record_1 +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (5.5ms) BEGIN +  (14.9ms) SAVEPOINT active_record_2 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$xvLsHiVUe.TwFC1I/KZzYO5zyKVLnNbmrtTVIcM4ks0cpAi6ZqmmO"], ["updated_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 133], ["subdomain", "test9"], ["updated_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Wu27JxsKs4osmbSDqY7m' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 133, "created_at" = '2013-07-16 01:25:19.285544', "updated_at" = '2013-07-16 01:25:19.285544', "authentication_token" = 'Wu27JxsKs4osmbSDqY7m' WHERE "public"."cadenero_accounts"."id" = 101 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 101], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["user_id", 133]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vzBxwXBwKt5Z4funDjEp' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 101, "user_id" = 133, "created_at" = '2013-07-16 01:25:19.292481', "updated_at" = '2013-07-16 01:25:19.292481', "auth_token" = 'vzBxwXBwKt5Z4funDjEp' WHERE "public"."cadenero_members"."id" = 134 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) CREATE SCHEMA "test9" +  (5.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (5.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (12.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (11.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "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.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (7.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (4.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.6ms) SELECT version FROM "schema_migrations" +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (1.6ms) 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-15 20:25:19 -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-15 20:25:19 -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" = 101 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | 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 +  (8.6ms) ROLLBACK +  (0.6ms) ROLLBACK +  (0.4ms) BEGIN +  (0.7ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) BEGIN +  (11.2ms) SAVEPOINT active_record_2 + SQL (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$d3Nf9S4iXCoVUV/ozwe3heLj4eXei5b9aT5Kzd8Mx9TAUCpCXVIp2"], ["updated_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (9.3ms) SAVEPOINT active_record_2 + Cadenero::V1::Account Exists (12.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 + SQL (6.1ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 134], ["subdomain", "test10"], ["updated_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00]] + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'HzcfxrWNduQxLdnyLZfp' LIMIT 1 +  (2.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 134, "created_at" = '2013-07-16 01:25:19.618720', "updated_at" = '2013-07-16 01:25:19.618720', "authentication_token" = 'HzcfxrWNduQxLdnyLZfp' WHERE "public"."cadenero_accounts"."id" = 102 +  (8.3ms) RELEASE SAVEPOINT active_record_2 +  (0.4ms) SAVEPOINT active_record_2 + SQL (10.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", 102], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["user_id", 134]] + Cadenero::Member Load (10.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xnmZqX1GDafwBpBqRwz6' LIMIT 1 +  (10.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 102, "user_id" = 134, "created_at" = '2013-07-16 01:25:19.652184', "updated_at" = '2013-07-16 01:25:19.652184', "auth_token" = 'xnmZqX1GDafwBpBqRwz6' WHERE "public"."cadenero_members"."id" = 135 +  (10.0ms) RELEASE SAVEPOINT active_record_2 +  (1.2ms) CREATE SCHEMA "test10" +  (14.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.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") +  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (6.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.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') +  (5.2ms) SAVEPOINT active_record_2 + SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$0NGOKFs2WcBWwE42Mx.XzO2T6CbEvXX3ZcXHuP0FqC/FH7G8deO/S"], ["updated_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00]] +  (10.1ms) RELEASE SAVEPOINT active_record_2 +  (1.4ms) SAVEPOINT active_record_2 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 135], ["subdomain", "test11"], ["updated_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sKExTft4sbVDDpRFG5mT' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 135, "created_at" = '2013-07-16 01:25:19.928470', "updated_at" = '2013-07-16 01:25:19.928470', "authentication_token" = 'sKExTft4sbVDDpRFG5mT' WHERE "public"."cadenero_accounts"."id" = 103 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 103], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:19 UTC +00:00], ["user_id", 135]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'iRpXz6WJsykew65DwRkH' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 103, "user_id" = 135, "created_at" = '2013-07-16 01:25:19.935397', "updated_at" = '2013-07-16 01:25:19.935397', "auth_token" = 'iRpXz6WJsykew65DwRkH' WHERE "public"."cadenero_members"."id" = 136 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:25:19 -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-15 20:25:19 -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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') 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" = 102 AND "public"."cadenero_users"."email" = 'user11@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 +  (6.0ms) ROLLBACK +  (0.3ms) ROLLBACK +  (0.1ms) BEGIN +  (0.3ms) SAVEPOINT active_record_1 +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$3fYtecpeLZ1Rw0tqqgmBPe6JxQ43HSGS7ZhVz/qPzjLHw6aGEEYYG"], ["updated_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 136], ["subdomain", "test12"], ["updated_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Wnz9KhFhCwzrqzmoRZ59' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 136, "created_at" = '2013-07-16 01:25:20.104816', "updated_at" = '2013-07-16 01:25:20.104816', "authentication_token" = 'Wnz9KhFhCwzrqzmoRZ59' WHERE "public"."cadenero_accounts"."id" = 104 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 104], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00], ["user_id", 136]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'wnX1B76ccQ2rVsNHpUXN' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 104, "user_id" = 136, "created_at" = '2013-07-16 01:25:20.111146', "updated_at" = '2013-07-16 01:25:20.111146', "auth_token" = 'wnX1B76ccQ2rVsNHpUXN' WHERE "public"."cadenero_members"."id" = 137 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) CREATE SCHEMA "test12" +  (4.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (6.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (3.0ms) 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") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (11.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (3.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 GET "/v1" for 127.0.0.1 at 2013-07-15 20:25: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-15 20:25:20 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test12') LIMIT 1 + Cadenero::User Load (4.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 104 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 11ms (Views: 0.9ms | ActiveRecord: 5.9ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (9.4ms) ROLLBACK +  (0.5ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_2 + SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$oWNhjRAaOvDTQLqKLNw46eBU2hjD9B9/cdQg7pyK4hsyzluZAL6ze"], ["updated_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + Cadenero::V1::Account Exists (2.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 137], ["subdomain", "test13"], ["updated_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GKjiYdWoVpkSvBhaaZPL' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 137, "created_at" = '2013-07-16 01:25:20.344520', "updated_at" = '2013-07-16 01:25:20.344520', "authentication_token" = 'GKjiYdWoVpkSvBhaaZPL' WHERE "public"."cadenero_accounts"."id" = 105 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) SAVEPOINT active_record_2 + 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", 105], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:25:20 UTC +00:00], ["user_id", 137]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '8wRpsk3wDo8K7aemUgpA' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 105, "user_id" = 137, "created_at" = '2013-07-16 01:25:20.350415', "updated_at" = '2013-07-16 01:25:20.350415', "auth_token" = '8wRpsk3wDo8K7aemUgpA' WHERE "public"."cadenero_members"."id" = 138 +  (0.1ms) RELEASE SAVEPOINT active_record_2 +  (0.1ms) CREATE SCHEMA "test13" +  (5.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "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") +  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.8ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 20:25:20 -0500 + Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (6.4ms) ROLLBACK +  (0.1ms) ROLLBACK +Connecting to database specified by database.yml +  (0.1ms) BEGIN +  (0.1ms) 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 (13.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$0yVcHvJnS00b04qXKRn2nOtWkeBkEFMvc2OisEvu4aQizPzS6/q2m"], ["updated_at", Tue, 16 Jul 2013 01:26:12 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 (1.0ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 138], ["subdomain", "test1"], ["updated_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00]] + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'aYaAoZHAfzquzKcbyAmk' LIMIT 1 +  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 138, "created_at" = '2013-07-16 01:26:12.128253', "updated_at" = '2013-07-16 01:26:12.128253', "authentication_token" = 'aYaAoZHAfzquzKcbyAmk' WHERE "public"."cadenero_accounts"."id" = 106 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) 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", 106], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00], ["user_id", 138]] + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 's7xEdhKusQ7MmznWYDVL' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 106, "user_id" = 138, "created_at" = '2013-07-16 01:26:12.229712', "updated_at" = '2013-07-16 01:26:12.229712', "auth_token" = 's7xEdhKusQ7MmznWYDVL' WHERE "public"."cadenero_members"."id" = 139 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$JyuImgTfGy4U0WpEo49XNuO.JJWbgxRblroi2SNrbbdBH209Z77/S"], ["updated_at", Tue, 16 Jul 2013 01:26:12 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", Tue, 16 Jul 2013 01:26:12 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$xELXXOZL/HcXCcuH2hY9C.aFJpbzu2hXd9h8S7SmGtyen6EK/q/5e"], ["updated_at", Tue, 16 Jul 2013 01:26:12 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00], ["name", "Root"], ["owner_id", 140], ["subdomain", "www"], ["updated_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'N4Kq85CvPWzsEvyFi1Vj' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 140, "created_at" = '2013-07-16 01:26:12.436124', "updated_at" = '2013-07-16 01:26:12.436124', "authentication_token" = 'N4Kq85CvPWzsEvyFi1Vj' WHERE "public"."cadenero_accounts"."id" = 107 +  (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", 107], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:12 UTC +00:00], ["user_id", 140]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yrwGuRNajTyoJp6jjLfs' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 107, "user_id" = 140, "created_at" = '2013-07-16 01:26:12.441790', "updated_at" = '2013-07-16 01:26:12.441790', "auth_token" = 'yrwGuRNajTyoJp6jjLfs' WHERE "public"."cadenero_members"."id" = 140 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) CREATE SCHEMA "www" +  (7.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.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") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.1ms) 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') +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users" +  (7.1ms) ROLLBACK +  (0.2ms) 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.2ms) 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 +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (1.1ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 20:26:16 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (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.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:16 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$X9l/pj.RJPp0zzPm1.q.v.lySx8.3SX4ywd1ENX2mA0B4FU.AUWyK"], ["updated_at", Tue, 16 Jul 2013 01:26:16 UTC +00:00]] + SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:16 UTC +00:00], ["name", "Testy"], ["owner_id", 141], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:26:16 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zJjAp6r2P1zeTyZr7vSN' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 141, "created_at" = '2013-07-16 01:26:16.690282', "updated_at" = '2013-07-16 01:26:16.690282', "authentication_token" = 'zJjAp6r2P1zeTyZr7vSN' WHERE "public"."cadenero_accounts"."id" = 108 +  (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", 108], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:16 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:16 UTC +00:00], ["user_id", 141]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '1R88kgfYwxPpxknxzXPr' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 108, "user_id" = 141, "created_at" = '2013-07-16 01:26:16.696371', "updated_at" = '2013-07-16 01:26:16.696371', "auth_token" = '1R88kgfYwxPpxknxzXPr' WHERE "public"."cadenero_members"."id" = 141 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "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") +  (10.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.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.5ms) 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" != 108) LIMIT 1 +Completed 201 Created in 180ms (Views: 3.5ms | ActiveRecord: 44.6ms) + 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.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (3.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:16 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$5ZUJH.iLdth89r0Ed7rMHePB4J1SjmbJlel39hAoYPB8rFzXa3ZGu"], ["updated_at", Tue, 16 Jul 2013 01:26:16 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:16 UTC +00:00], ["name", "Testy"], ["owner_id", 142], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:26:16 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ynxvEXFsosqzub9AeVTA' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 142, "created_at" = '2013-07-16 01:26:16.907790', "updated_at" = '2013-07-16 01:26:16.907790', "authentication_token" = 'ynxvEXFsosqzub9AeVTA' WHERE "public"."cadenero_accounts"."id" = 109 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 20:26:16 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (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 121ms (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 +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.9ms) 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.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 94ms (Views: 91.8ms | 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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 + Cadenero::V1::Account Load (42.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 74ms (Views: 30.4ms | ActiveRecord: 42.7ms) +  (0.2ms) ROLLBACK +  (9.8ms) BEGIN +  (5.2ms) 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", Tue, 16 Jul 2013 01:26:18 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00], ["user_id", 101]] + Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Rh5edcXWpgksvt4qQSH9' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-16 01:26:18.189710', "updated_at" = '2013-07-16 01:26:18.189710', "auth_token" = 'Rh5edcXWpgksvt4qQSH9' WHERE "public"."cadenero_members"."id" = 142 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) ROLLBACK +  (1.7ms) BEGIN +  (3.6ms) COMMIT +  (2.6ms) BEGIN +  (5.0ms) SAVEPOINT active_record_1 + SQL (4.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$S3TjY338uT0o/qZfAtWPaOMVNu3BK/8S8OBj7xiqaNb5.e5/7EN7C"], ["updated_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (3.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 + SQL (10.3ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 143], ["subdomain", "test2"], ["updated_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00]] + Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zn2s8kzGzNW5Hf2kRTpg' LIMIT 1 +  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 143, "created_at" = '2013-07-16 01:26:18.416954', "updated_at" = '2013-07-16 01:26:18.416954', "authentication_token" = 'zn2s8kzGzNW5Hf2kRTpg' WHERE "public"."cadenero_accounts"."id" = 110 +  (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", 110], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00], ["user_id", 143]] + Cadenero::Member Load (1.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UM7MStDCoWkuRWguvpP5' LIMIT 1 +  (2.8ms) UPDATE "public"."cadenero_members" SET "account_id" = 110, "user_id" = 143, "created_at" = '2013-07-16 01:26:18.434954', "updated_at" = '2013-07-16 01:26:18.434954', "auth_token" = 'UM7MStDCoWkuRWguvpP5' WHERE "public"."cadenero_members"."id" = 143 +  (0.7ms) RELEASE SAVEPOINT active_record_1 +  (1.2ms) CREATE SCHEMA "test2" +  (4.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.0ms) 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.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.8ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 20:26:18 -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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 + Cadenero::User Load (2.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 110 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 + Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 143 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 143 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 143 + 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" = 143 +Completed 201 Created in 186ms (Views: 6.1ms | ActiveRecord: 4.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 + Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 110 + Cadenero::User Load (2.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:26:18 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"143", "default"=>:json} + Cadenero::User Load (4.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 143 LIMIT 1 +Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 4.5ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:26:18 -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-15 20:26:18 -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 (8.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 +  (3.7ms) SAVEPOINT active_record_1 + SQL (29.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$V1YebcSjEap6lRrFi26ANuulhcpMKXYfcuv7rGMThfejmfi9EV.uK"], ["updated_at", Tue, 16 Jul 2013 01:26:18 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", 110], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:18 UTC +00:00], ["user_id", 144]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xcdgxoz8hSqhifpePqGj' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 110, "user_id" = 144, "created_at" = '2013-07-16 01:26:18.961550', "updated_at" = '2013-07-16 01:26:18.961550', "auth_token" = 'xcdgxoz8hSqhifpePqGj' WHERE "public"."cadenero_members"."id" = 144 +  (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" = 144 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 144 + Cadenero::V1::Account Load (15.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 144 + Cadenero::V1::Account Load (15.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" = 144 +Completed 201 Created in 241ms (Views: 7.2ms | ActiveRecord: 74.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 +Started GET "/v1/users/144" for 127.0.0.1 at 2013-07-15 20:26:19 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"144"} + 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" = 110 AND "public"."cadenero_users"."id" = 144 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 144 LIMIT 1 + Cadenero::Member Load (4.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 144 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 144 + 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" = 144 +Completed 200 OK in 19ms (Views: 7.1ms | ActiveRecord: 8.3ms) + Cadenero::User Load (1.5ms) 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-15 20:26:19 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::User Load (5.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 144 LIMIT 1 + Cadenero::Member Load (1.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 144 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 144 + Cadenero::V1::Account Load (8.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" = 144 +Completed 201 Created in 23ms (Views: 6.4ms | ActiveRecord: 15.4ms) + Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (7.9ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (7.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$chsP6.u/JwmeOOPbkgPKgOQpIw.LOqAA5/u/Tpbon4xK1bjNjL5iq"], ["updated_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00]] +  (2.8ms) RELEASE SAVEPOINT active_record_1 +  (2.2ms) 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.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 145], ["subdomain", "test3"], ["updated_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00]] + Cadenero::V1::Account Load (3.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qAmE3fTehwHWQBfMWuAL' LIMIT 1 +  (5.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 145, "created_at" = '2013-07-16 01:26:19.351751', "updated_at" = '2013-07-16 01:26:19.351751', "authentication_token" = 'qAmE3fTehwHWQBfMWuAL' WHERE "public"."cadenero_accounts"."id" = 111 +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) 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", 111], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["user_id", 145]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'aifi4xsQSGe5qxgPHt4V' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 111, "user_id" = 145, "created_at" = '2013-07-16 01:26:19.367549', "updated_at" = '2013-07-16 01:26:19.367549', "auth_token" = 'aifi4xsQSGe5qxgPHt4V' WHERE "public"."cadenero_members"."id" = 145 +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test3" +  (7.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "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") +  (4.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 20:26:19 -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" = 111 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 + Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 145 LIMIT 1 + Cadenero::Member Load (5.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 145 + Cadenero::V1::Account Load (6.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 145 + 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" = 145 +Completed 201 Created in 123ms (Views: 5.9ms | ActiveRecord: 15.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 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 111 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 20:26:19 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"145", "default"=>:json} + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 145 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:26:19 -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) +  (8.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", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$k25EIDWsQGXL7xN0bALmZ.mBBaze4wtqDJkscM1q6Ykx3QnYBQZcO"], ["updated_at", Tue, 16 Jul 2013 01:26:19 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" = 'test4' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 146], ["subdomain", "test4"], ["updated_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4rx51yg1DEqcAvpHqc2x' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 146, "created_at" = '2013-07-16 01:26:19.707836', "updated_at" = '2013-07-16 01:26:19.707836', "authentication_token" = '4rx51yg1DEqcAvpHqc2x' WHERE "public"."cadenero_accounts"."id" = 112 +  (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", 112], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["user_id", 146]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uMfKtaLp6zvC9x6qDjzv' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 112, "user_id" = 146, "created_at" = '2013-07-16 01:26:19.713308', "updated_at" = '2013-07-16 01:26:19.713308', "auth_token" = 'uMfKtaLp6zvC9x6qDjzv' WHERE "public"."cadenero_members"."id" = 146 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test4" +  (7.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (7.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (5.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "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") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (8.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (2.6ms) 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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:26:19 -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-15 20:26:19 -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 (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$z1Id939Q6BGUfMkj3O3FK.l36c6kfVp9FZk0FaIwW44m9CN/sncx2"], ["updated_at", Tue, 16 Jul 2013 01:26: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", 112], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:19 UTC +00:00], ["user_id", 147]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'BUSjqxGKukCh1ZbxrdyY' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 112, "user_id" = 147, "created_at" = '2013-07-16 01:26:19.906391', "updated_at" = '2013-07-16 01:26:19.906391', "auth_token" = 'BUSjqxGKukCh1ZbxrdyY' WHERE "public"."cadenero_members"."id" = 147 +  (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" = 147 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 147 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 147 + 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" = 147 +Completed 201 Created in 116ms (Views: 6.2ms | 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/147" for 127.0.0.1 at 2013-07-15 20:26:19 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"147"} + 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" = 112 AND "public"."cadenero_users"."id" = 147 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 147 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 147 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 147 + 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" = 147 +Completed 200 OK in 11ms (Views: 6.3ms | 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-15 20:26:19 -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" = 147 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 147 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 147 + 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" = 147 +Completed 201 Created in 9ms (Views: 5.8ms | 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-15 20:26:19 -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" = 147 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) +  (5.6ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.4ms) 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", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$AOO3RHjesXQfr.rRSYLQc.tNqyCNKEfPU4vHLe16gmxYL/QSAIDx."], ["updated_at", Tue, 16 Jul 2013 01:26:20 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.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 148], ["subdomain", "test5"], ["updated_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'E8prXT8mscHzD3gRusg2' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 148, "created_at" = '2013-07-16 01:26:20.131091', "updated_at" = '2013-07-16 01:26:20.131091', "authentication_token" = 'E8prXT8mscHzD3gRusg2' WHERE "public"."cadenero_accounts"."id" = 113 +  (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", 113], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["user_id", 148]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zLbsZtCGzz9E93gtBYzM' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 113, "user_id" = 148, "created_at" = '2013-07-16 01:26:20.136672', "updated_at" = '2013-07-16 01:26:20.136672', "auth_token" = 'zLbsZtCGzz9E93gtBYzM' WHERE "public"."cadenero_members"."id" = 148 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) CREATE SCHEMA "test5" +  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (1.0ms) 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.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.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.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-15 20:26: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-15 20:26:20 -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" = 113 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" = 148 LIMIT 1 + Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 148 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 148 + 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" = 148 +Completed 201 Created in 124ms (Views: 11.5ms | ActiveRecord: 2.7ms) + Cadenero::V1::Account Load (1.1ms) 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"."account_id" = 113 +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:26:20 -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" = 148 LIMIT 1 +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms) +  (6.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", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$hHSQ91mIFr/RJ9YnWT9Aoud6.0RP1z9AZUdWvC3VqLQO/TGk5ZPeq"], ["updated_at", Tue, 16 Jul 2013 01:26:20 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 149], ["subdomain", "test6"], ["updated_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00]] + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zQRmqniq4DGWTHAMvsCB' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 149, "created_at" = '2013-07-16 01:26:20.552629', "updated_at" = '2013-07-16 01:26:20.552629', "authentication_token" = 'zQRmqniq4DGWTHAMvsCB' WHERE "public"."cadenero_accounts"."id" = 114 +  (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", 114], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["user_id", 149]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TMWPnLtE6xwtUpE28pwV' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 114, "user_id" = 149, "created_at" = '2013-07-16 01:26:20.558576', "updated_at" = '2013-07-16 01:26:20.558576', "auth_token" = 'TMWPnLtE6xwtUpE28pwV' WHERE "public"."cadenero_members"."id" = 149 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test6" +  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (5.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (6.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") +  (7.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (1.4ms) 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-15 20:26:20 -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 +  (8.3ms) 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", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$qB71SYyIZjXNQ05LPIYui.09L.6NGSCGQ7k00YKlbuJQrp81VZqi2"], ["updated_at", Tue, 16 Jul 2013 01:26: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 (1.1ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 150], ["subdomain", "test7"], ["updated_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'awQgaHvzNCaGNKEzsW5D' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 150, "created_at" = '2013-07-16 01:26:20.854173', "updated_at" = '2013-07-16 01:26:20.854173', "authentication_token" = 'awQgaHvzNCaGNKEzsW5D' WHERE "public"."cadenero_accounts"."id" = 115 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) 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", 115], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:20 UTC +00:00], ["user_id", 150]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YLZaV8pJp5UpZv3LuMss' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 115, "user_id" = 150, "created_at" = '2013-07-16 01:26:20.861035', "updated_at" = '2013-07-16 01:26:20.861035', "auth_token" = 'YLZaV8pJp5UpZv3LuMss' WHERE "public"."cadenero_members"."id" = 150 +  (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), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (2.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.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.9ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$vicQ6uVmR7ttKSLBjbPBie1Y6QoQKuRN6/CimT9./VGssEMbvNQna"], ["updated_at", Tue, 16 Jul 2013 01:26: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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 151], ["subdomain", "test8"], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zbZoXwHd7xkANvexzcJn' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 151, "created_at" = '2013-07-16 01:26:21.021207', "updated_at" = '2013-07-16 01:26:21.021207', "authentication_token" = 'zbZoXwHd7xkANvexzcJn' WHERE "public"."cadenero_accounts"."id" = 116 +  (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", 116], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["user_id", 151]] + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '81R5rPSxWsUQiE2vjssd' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 116, "user_id" = 151, "created_at" = '2013-07-16 01:26:21.026452', "updated_at" = '2013-07-16 01:26:21.026452', "auth_token" = '81R5rPSxWsUQiE2vjssd' WHERE "public"."cadenero_members"."id" = 151 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-07-15 20:26: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-15 20:26: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.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" = 115 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 +  (6.4ms) 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", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$GwEF/QkyUKdcEedDastdROLEBgrHkse8ic2TUmGN43YxfN1qm.FhG"], ["updated_at", Tue, 16 Jul 2013 01:26: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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 152], ["subdomain", "test9"], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tPLr3yMBts5qcm1dYCgV' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 152, "created_at" = '2013-07-16 01:26:21.160319', "updated_at" = '2013-07-16 01:26:21.160319', "authentication_token" = 'tPLr3yMBts5qcm1dYCgV' WHERE "public"."cadenero_accounts"."id" = 117 +  (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", 117], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["user_id", 152]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'R54LdzC62yf9zTZXwfod' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 117, "user_id" = 152, "created_at" = '2013-07-16 01:26:21.165938', "updated_at" = '2013-07-16 01:26:21.165938', "auth_token" = 'R54LdzC62yf9zTZXwfod' WHERE "public"."cadenero_members"."id" = 152 +  (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), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (2.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "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.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (10.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (8.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-15 20:26: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-15 20:26:21 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 117 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 0.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 +  (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", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$1q8XYfsybtVXWWPC8QA.eO6wWN6YOjoQ6.nFNCYiqDzYpyzXki2ZS"], ["updated_at", Tue, 16 Jul 2013 01:26: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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 153], ["subdomain", "test10"], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rzXNBpR9QHUHzEe8pY5v' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 153, "created_at" = '2013-07-16 01:26:21.453870', "updated_at" = '2013-07-16 01:26:21.453870', "authentication_token" = 'rzXNBpR9QHUHzEe8pY5v' WHERE "public"."cadenero_accounts"."id" = 118 +  (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", 118], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["user_id", 153]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '66XzLxEnSbiivyXf5epC' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 118, "user_id" = 153, "created_at" = '2013-07-16 01:26:21.459457', "updated_at" = '2013-07-16 01:26:21.459457', "auth_token" = '66XzLxEnSbiivyXf5epC' WHERE "public"."cadenero_members"."id" = 153 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test10" +  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255)) +  (0.9ms) 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.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.4ms) SELECT version FROM "schema_migrations" +  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.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-15 20:26: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-15 20:26: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.3ms) 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" = 118 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 +  (5.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", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$Raw8fluGecjIYY13ZDQxoucxSy165y443ShfwtcjjmOuBieGrh7gu"], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00]] +  (1.7ms) 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 154], ["subdomain", "test11"], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'NcQwUUdGvxq9J9qREzsB' LIMIT 1 +  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 154, "created_at" = '2013-07-16 01:26:21.656784', "updated_at" = '2013-07-16 01:26:21.656784', "authentication_token" = 'NcQwUUdGvxq9J9qREzsB' WHERE "public"."cadenero_accounts"."id" = 119 +  (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", 119], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["user_id", 154]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'UyzQy5dbkxs1kPBxyWsy' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 119, "user_id" = 154, "created_at" = '2013-07-16 01:26:21.662635', "updated_at" = '2013-07-16 01:26:21.662635', "auth_token" = 'UyzQy5dbkxs1kPBxyWsy' WHERE "public"."cadenero_members"."id" = 154 +  (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), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "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.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.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/users" for 127.0.0.1 at 2013-07-15 20:26:21 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' 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", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$mjeo4mH2a2TqWNzfBDO8feks71lu4k3DQdoanvggnyjJwgAKSqV4G"], ["updated_at", Tue, 16 Jul 2013 01:26:21 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", 119], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["user_id", 155]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Gs5zgvdZpLsx9hJhZzqf' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 119, "user_id" = 155, "created_at" = '2013-07-16 01:26:21.819433', "updated_at" = '2013-07-16 01:26:21.819433', "auth_token" = 'Gs5zgvdZpLsx9hJhZzqf' WHERE "public"."cadenero_members"."id" = 155 +  (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" = 155 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 155 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 155 + 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" = 155 +Completed 201 Created in 112ms (Views: 5.5ms | ActiveRecord: 4.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/155" for 127.0.0.1 at 2013-07-15 20:26:21 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"155"} + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 119 AND "public"."cadenero_users"."id" = 155 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 155 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 155 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 155 + 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" = 155 +Completed 200 OK in 10ms (Views: 5.6ms | ActiveRecord: 1.7ms) +  (6.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", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$NdiPr5tpPvowa9wwPloAPue6f3T8z2SgSAFwH0gHgJf5OC.XD6jlG"], ["updated_at", Tue, 16 Jul 2013 01:26: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" = 'test12' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 156], ["subdomain", "test12"], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Gm5qGXrEWqX19Pu5DKvg' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 156, "created_at" = '2013-07-16 01:26:21.967753', "updated_at" = '2013-07-16 01:26:21.967753', "authentication_token" = 'Gm5qGXrEWqX19Pu5DKvg' WHERE "public"."cadenero_accounts"."id" = 120 +  (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", 120], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:21 UTC +00:00], ["user_id", 156]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VqyYqmZqs1bf3ahg7WhA' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 120, "user_id" = 156, "created_at" = '2013-07-16 01:26:21.973291', "updated_at" = '2013-07-16 01:26:21.973291', "auth_token" = 'VqyYqmZqs1bf3ahg7WhA' WHERE "public"."cadenero_members"."id" = 156 +  (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), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (2.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  +  (1.5ms) 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.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (2.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (3.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 20:26:22 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (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", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$hiiwYTNdE2l6HzM0Inzuh.WH2mqHUZ7ejZWIYWA/6ciF1sV7t5Je6"], ["updated_at", Tue, 16 Jul 2013 01:26:22 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", 120], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["user_id", 157]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sd8zYLUZ9vN5MQvYnJy8' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 120, "user_id" = 157, "created_at" = '2013-07-16 01:26:22.131637', "updated_at" = '2013-07-16 01:26:22.131637', "auth_token" = 'sd8zYLUZ9vN5MQvYnJy8' WHERE "public"."cadenero_members"."id" = 157 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 157 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 157 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 157 + 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" = 157 +Completed 201 Created in 113ms (Views: 5.6ms | ActiveRecord: 3.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/157" for 127.0.0.1 at 2013-07-15 20:26:22 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"157"} + 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" = 120 AND "public"."cadenero_users"."id" = 157 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 157 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 157 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 157 + Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 157 +Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 3.0ms) + 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.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 + SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 157], ["subdomain", "test13"], ["updated_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3pWLqTmm1a8jyMoNTLqs' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 157, "created_at" = '2013-07-16 01:26:22.164607', "updated_at" = '2013-07-16 01:26:22.164607', "authentication_token" = '3pWLqTmm1a8jyMoNTLqs' WHERE "public"."cadenero_accounts"."id" = 121 +  (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", 121], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["user_id", 157]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fpqkrxfqsxXm3ajoyFNX' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 121, "user_id" = 157, "created_at" = '2013-07-16 01:26:22.170616', "updated_at" = '2013-07-16 01:26:22.170616', "auth_token" = 'fpqkrxfqsxXm3ajoyFNX' WHERE "public"."cadenero_members"."id" = 158 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) CREATE SCHEMA "test13" +  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (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 NOT NULL, "updated_at" timestamp NOT NULL, "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.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (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.3ms) SELECT version FROM "schema_migrations" +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 20:26:22 -0500 +Processing by Cadenero::V1::Account::UsersController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' 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", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ds8lQ5/ldA7dKdcuP19w5.N5l0RhuYm0iPwDkKfzV.bno20MRPkQy"], ["updated_at", Tue, 16 Jul 2013 01:26:22 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", 121], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["user_id", 158]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'J8yPMfqBMkoSLXmRkAxr' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 121, "user_id" = 158, "created_at" = '2013-07-16 01:26:22.363029', "updated_at" = '2013-07-16 01:26:22.363029', "auth_token" = 'J8yPMfqBMkoSLXmRkAxr' WHERE "public"."cadenero_members"."id" = 159 +  (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" = 158 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 158 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 158 + 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" = 158 +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/158" for 127.0.0.1 at 2013-07-15 20:26:22 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"158"} + 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 (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" = 121 AND "public"."cadenero_users"."id" = 158 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 158 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 158 + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 158 + 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" = 158 +Completed 200 OK in 12ms (Views: 6.4ms | ActiveRecord: 1.8ms) +Started GET "/v1/users/157" for 127.0.0.1 at 2013-07-15 20:26:22 -0500 +Processing by Cadenero::V1::Account::UsersController#show as HTML + Parameters: {"default"=>:json, "id"=>"157"} + 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" = 120 AND "public"."cadenero_users"."id" = 157 LIMIT 1 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 157 LIMIT 1 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 157 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 157 + 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" = 157 +Completed 200 OK in 12ms (Views: 6.7ms | ActiveRecord: 1.9ms) +Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 20:26:22 -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" = '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" = 120 + Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 157 LIMIT 1 + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 157 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 157 + 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" = 157 + Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 156 + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 156 + 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" = 156 +Completed 200 OK in 18ms (Views: 13.6ms | ActiveRecord: 2.9ms) +  (8.8ms) ROLLBACK +  (0.1ms) BEGIN +  (0.1ms) COMMIT +  (0.7ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} +Completed 201 Created in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.8ms) BEGIN +  (0.5ms) COMMIT +  (0.3ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account"}} +Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) +  (0.1ms) ROLLBACK +  (0.7ms) BEGIN +  (0.5ms) 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", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$mUZrbLIOfG5IydvFZmGIfOZhho/lNicXPcoavWI0VEjSAUqv7Dzxy"], ["updated_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00]] + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["name", "Test Account"], ["owner_id", 159], ["subdomain", "test"], ["updated_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00]] + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'j6utZnPcJyCq1p7CyR5s' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 159, "created_at" = '2013-07-16 01:26:22.579400', "updated_at" = '2013-07-16 01:26:22.579400', "authentication_token" = 'j6utZnPcJyCq1p7CyR5s' WHERE "public"."cadenero_accounts"."id" = 122 +  (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", 122], ["auth_token", nil], ["created_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["updated_at", Tue, 16 Jul 2013 01:26:22 UTC +00:00], ["user_id", 159]] + Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4yTyRzi2taJQtpNTjpHp' LIMIT 1 +  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 122, "user_id" = 159, "created_at" = '2013-07-16 01:26:22.585459', "updated_at" = '2013-07-16 01:26:22.585459', "auth_token" = '4yTyRzi2taJQtpNTjpHp' WHERE "public"."cadenero_members"."id" = 160 +  (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), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (8.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "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.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 NOT NULL, "updated_at" timestamp NOT NULL) +  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.6ms) SELECT version FROM "schema_migrations" +  (0.6ms) 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.8ms) 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" = 122 LIMIT 1 +  (4.2ms) ROLLBACK +  (0.1ms) BEGIN +  (1.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.4ms) BEGIN +  (0.7ms) COMMIT +  (0.7ms) 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.2ms) ROLLBACK