spec/dummy/log/test.log in cadenero-0.0.2.b1 vs spec/dummy/log/test.log in cadenero-0.0.2.b2

- old
+ new

@@ -27644,5 +27644,471 @@ Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.7ms) ROLLBACK  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (85.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +Connecting to database specified by database.yml +  (12.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (13.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test' +  (29.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.9ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (26.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 17:10:02 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$oYQWoVFf.DQ5CpTJ97A1qOy9Y.dJeZZypIiYBTzQhVUAwOANx6vv."], ["updated_at", Thu, 11 Jul 2013 17:10:02 UTC +00:00]] +  (2.1ms) RELEASE SAVEPOINT active_record_1 +  (1.0ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 + SQL (8.2ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 17:10:02 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 17:10:02 UTC +00:00]] +  (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", 1], ["created_at", Thu, 11 Jul 2013 17:10:02 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 17:10:02 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (2.4ms) CREATE SCHEMA "test1" +  (96.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (3.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (20.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (2.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (17.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.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.8ms) SELECT version FROM "schema_migrations" +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 12:10:02 -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" = 'test1' LIMIT 1 +  (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", Thu, 11 Jul 2013 17:10:02 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$gzpxoPlMp7jgVTkJ8MIu8uzkSwQHBoYHXatFbqKXdhS9xj4bTF/yG"], ["updated_at", Thu, 11 Jul 2013 17:10:02 UTC +00:00]] + SQL (0.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 17:10:02 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 17:10:02 UTC +00:00], ["user_id", 2]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (5.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 + Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 2 +Completed 201 Created in 274ms (Views: 108.6ms | ActiveRecord: 11.6ms) + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (15.9ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (60.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (10.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.5ms) BEGIN +  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (0.2ms) SAVEPOINT active_record_1 + SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 17:10:08 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$O.djIvEZfE.z7BLn.jzcLuMtRqFjipgn1rHz7lPAE8UpJ34Xd9z.i"], ["updated_at", Thu, 11 Jul 2013 17:10:08 UTC +00:00]] +  (0.1ms) 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" = 'test2' LIMIT 1 + SQL (6.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 17:10:08 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 17:10:08 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 17:10:08 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 17:10:08 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 17:10:08 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$gnmi7kUIJocy9aJmSSp8AOVyZ0ZLb0QRa7Eqj4f3mNMmfhxKjEk1y"], ["updated_at", Thu, 11 Jul 2013 17:10:08 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 17:10:08 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$uWDdCz3JimZRzJgZ83Jr4.jpKZQheVDj/SJK.KnR3bD07WiHe0LZu"], ["updated_at", Thu, 11 Jul 2013 17:10:08 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 + SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 17:10:08 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 17:10:08 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "www" +  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (2.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (10.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") +  (0.7ms) SELECT version FROM "schema_migrations" +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'R5SU5ixkcYdDzANpPZ3q' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (0.5ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'R5SU5ixkcYdDzANpPZ3q', "updated_at" = '2013-07-11 17:10:08.646713' WHERE "public"."cadenero_accounts"."id" = 2 +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts" +  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  +  (4.7ms) ROLLBACK +  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (14.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.8ms) 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", Thu, 11 Jul 2013 17:10:08 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$nEJq0zURgkIHPPr/ATVjH.RKxtnJPXPDk7Aruzj59HZu/aOu0Msym"], ["updated_at", Thu, 11 Jul 2013 17:10:08 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 + SQL (0.9ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 17:10:08 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 17:10:08 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 17:10:08 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 17:10:08 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test3" +  (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.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (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)  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (5.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (2.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" +  (7.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 12:10:08 -0500 + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 +  (10.0ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (20.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (3.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 17:10:09 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$4KfRd23GScEMoDz6XSBlSOelzuUdHeQtnbYMwaYR8C5G8WN0jflWq"], ["updated_at", Thu, 11 Jul 2013 17:10:09 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 (3.0ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 17:10:09 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 17:10:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 17:10:09 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 17:10:09 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test4" +  (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) +  (1.7ms) 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") +  (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)  +  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (10.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +Started GET "/v1" for 127.0.0.1 at 2013-07-11 12:10:09 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +env['warden'].authenticated?(:user): false +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 12:10:09 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (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" = 'user@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 1.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 +  (21.5ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (26.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.2ms) SAVEPOINT active_record_1 + SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 17:10:09 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$Q.67GrskO49J41jjBLs9yOftfwvQf/CkByDES0VDosOjb3Sm4m0rq"], ["updated_at", Thu, 11 Jul 2013 17:10:09 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 (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", Thu, 11 Jul 2013 17:10:09 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 17:10:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 17:10:09 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 17:10:09 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (2.0ms) CREATE SCHEMA "test5" +  (4.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (2.0ms) 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") +  (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)  +  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (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) +  (2.5ms) 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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +Started GET "/v1" for 127.0.0.1 at 2013-07-11 12:10:09 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +env['warden'].authenticated?(:user): false +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 12:10:09 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') 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" = 'foo@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 10ms (Views: 0.4ms | ActiveRecord: 4.3ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (4.7ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (17.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 17:10:09 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$atraMgLg9ceEFrVGCPrR.OS2GFrZ2XKaBQVwlr8/jALPxAC0l3.mW"], ["updated_at", Thu, 11 Jul 2013 17:10:09 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 (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", Thu, 11 Jul 2013 17:10:09 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 17:10:09 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (6.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 17:10:09 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 17:10:09 UTC +00:00], ["user_id", 1]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) 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) +  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (5.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (8.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (40.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (10.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (10.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (14.1ms) SELECT version FROM "schema_migrations" +  (7.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 12:10:09 -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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') 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" = 'user7@example.com' LIMIT 1 + Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 + Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 + Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1 +Completed 201 Created in 176ms (Views: 5.4ms | ActiveRecord: 4.4ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' LIMIT 1 +Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 12:10:10 -0500 +Processing by Cadenero::V1::Account::SessionsController#delete as HTML + Parameters: {"id"=>"1", "default"=>:json} + Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +Completed 200 OK in 10ms (Views: 0.2ms | ActiveRecord: 0.4ms) +Started GET "/v1" for 127.0.0.1 at 2013-07-11 12:10:10 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +env['warden'].authenticated?(:user): false +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +  (17.6ms) ROLLBACK +  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (106.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 17:10:10 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$iIerPoO9SQvRVqq4tqPUYeD/x6nQik7vLfO7dvAx5Bvsdynu8KJae"], ["updated_at", Thu, 11 Jul 2013 17:10:10 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 + SQL (1.2ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 17:10:10 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 17:10:10 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 17:10:10 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 17:10:10 UTC +00:00], ["user_id", 1]] +  (0.5ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) CREATE SCHEMA "test7" +  (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.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (10.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (2.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (3.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  +  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.3ms) SELECT version FROM "schema_migrations" +  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +  (0.1ms) SAVEPOINT active_record_1 + SQL (23.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 17:10:10 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$tRUyzPThTXWhGykmAKG31uPprpzwbYnMK1hQEAcoPy3oxTQCL6Qay"], ["updated_at", Thu, 11 Jul 2013 17:10:10 UTC +00:00]] +  (1.7ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 + SQL (1.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 17:10:10 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 2], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 17:10:10 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (10.9ms) 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", Thu, 11 Jul 2013 17:10:10 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 17:10:10 UTC +00:00], ["user_id", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started GET "/v1" for 127.0.0.1 at 2013-07-11 12:10:10 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +env['warden'].authenticated?(:user): false +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 12:10:10 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 1 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 +Completed 422 Unprocessable Entity in 31ms (Views: 0.4ms | ActiveRecord: 1.1ms) + Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 +  (4.4ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (16.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (3.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (1.7ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 17:10:11 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$AO.UMW/HvDeCP0G3mvpKfecbKSkrLKsvYDTY9kUhwuJi03qwjnexS"], ["updated_at", Thu, 11 Jul 2013 17:10:11 UTC +00:00]] +  (3.7ms) RELEASE SAVEPOINT active_record_1 +  (3.9ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (4.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 + SQL (1.2ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 17:10:11 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 17:10:11 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 17:10:11 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 17:10:11 UTC +00:00], ["user_id", 1]] +  (4.8ms) 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) +  (6.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token") +  (2.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (4.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (6.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (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.9ms) SELECT version FROM "schema_migrations" +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') +Started GET "/v1" for 127.0.0.1 at 2013-07-11 12:10:11 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +env['warden'].authenticated?(:user): false +Filter chain halted as :authenticate_user! rendered or redirected +Completed 422 Unprocessable Entity in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms) +Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 12:10:11 -0500 +Processing by Cadenero::V1::Account::SessionsController#create as JSON + Parameters: {"user"=>{"email"=>"user10@example.com", "password"=>"[FILTERED]"}, "default"=>:json} + Cadenero::V1::Account Load (0.5ms) 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" = 'user10@example.com' LIMIT 1 + Cadenero::User Load (3.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 + Cadenero::V1::Account Load (7.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 + Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1 +Completed 201 Created in 260ms (Views: 6.2ms | ActiveRecord: 14.4ms) + Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user10@example.com' LIMIT 1 +Started GET "/v1" for 127.0.0.1 at 2013-07-11 12:10:11 -0500 +Processing by Cadenero::V1::Account::DashboardController#index as HTML + Parameters: {"default"=>:json} +env['warden'].authenticated?(:user): true + Cadenero::User Load (7.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 +Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 7.4ms) +  (6.9ms) ROLLBACK +  (5.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (23.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} +Completed 201 Created in 5ms (Views: 3.7ms | ActiveRecord: 0.0ms) +  (0.2ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (25.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.5ms) BEGIN +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) +  (1.5ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (14.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (3.4ms) BEGIN +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 17:10:11 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$z/3uQ/elTjhv1sER94iogeyxPM/AdQeTXfJwpIAbGpXC5shWDLM5m"], ["updated_at", Thu, 11 Jul 2013 17:10:11 UTC +00:00]] + SQL (2.1ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 17:10:11 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 17:10:11 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (2.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 17:10:11 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 17:10:11 UTC +00:00], ["user_id", 1]] +  (0.8ms) RELEASE SAVEPOINT active_record_1 + Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 LIMIT 1 +  (11.4ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (49.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.2ms) BEGIN + Cadenero::V1::Account Exists (1.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.5ms) ROLLBACK +  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (13.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (1.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1 +  (0.1ms) ROLLBACK +  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (125.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN + Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1 +  (0.3ms) ROLLBACK +  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (35.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (20.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (8.2ms) BEGIN +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 12:10:12 -0500 +Processing by Cadenero::V1::AccountsController#create as JSON + Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} +  (0.1ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 + SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 17:10:13 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$L3a/2H9aflQecStguKcBJ.3bWgoj0D/0LQXn7Xah.p85fOgUgrIlW"], ["updated_at", Thu, 11 Jul 2013 17:10:13 UTC +00:00]] + SQL (1.0ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Thu, 11 Jul 2013 17:10:13 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 17:10:13 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Thu, 11 Jul 2013 17:10:13 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 17:10:13 UTC +00:00], ["user_id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1 +  (2.0ms) 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") +  (18.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id") +  (5.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) +  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id") +  (6.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id") +  (10.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  +  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) +  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.2ms) SELECT version FROM "schema_migrations" +  (22.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') +  (24.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604') +  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') + Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xAfpJLyD6vNfuVCcZF8U' LIMIT 1 +  (0.1ms) SAVEPOINT active_record_1 +  (1.7ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'xAfpJLyD6vNfuVCcZF8U', "updated_at" = '2013-07-11 17:10:13.279889' WHERE "public"."cadenero_accounts"."id" = 1 +  (12.3ms) RELEASE SAVEPOINT active_record_1 +Completed 201 Created in 416ms (Views: 4.7ms | ActiveRecord: 144.1ms) + Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (7.1ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (21.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL +  (0.1ms) BEGIN +  (101.9ms) 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", Thu, 11 Jul 2013 17:10:13 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$Tnpm7apsoQGgt9cxnqytPOkrXoW6JEXN8o4miFUnzB5lx4QN3CGcq"], ["updated_at", Thu, 11 Jul 2013 17:10:13 UTC +00:00]] + SQL (5.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", Thu, 11 Jul 2013 17:10:13 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 17:10:13 UTC +00:00]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 12:10:13 -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} +  (8.6ms) SAVEPOINT active_record_1 + Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +  (0.7ms) ROLLBACK TO SAVEPOINT active_record_1 + CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 +Completed 422 Unprocessable Entity in 211ms (Views: 0.3ms | ActiveRecord: 10.8ms) + Cadenero::V1::Account Load (2.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1 +  (0.7ms) ROLLBACK +  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL +  (14.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE; +  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL