(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'  (15.1ms) 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.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1  (0.2ms) ROLLBACK TO 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  (14.1ms) 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  (5.9ms) ROLLBACK  (4.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  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (10.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (0.1ms) BEGIN  (12.3ms) SAVEPOINT active_record_1  (1.0ms) ROLLBACK TO 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  (9.4ms) 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  (4.8ms) ROLLBACK  (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  (17.3ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (17.3ms) 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  (0.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (53.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 21:40:37 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$T7VMsk4XSaPo6vrMXajXkeRLqRPF/dMtIl0Wxm7Qi5eZoysV24aEW"], ["updated_at", Thu, 11 Jul 2013 21:40:37 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:40:37 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 21:40:37 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (20.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 21:40:37 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:40:37 UTC +00:00], ["user_id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (3.0ms) CREATE SCHEMA "test1"  (39.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.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) 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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (6.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.5ms) SELECT version FROM "schema_migrations"  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) 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 16:40:37 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.5ms) 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", Thu, 11 Jul 2013 21:40:37 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$330dypvg4qYIWoEVdW93guCgi5t.OZ69JJun..jYIfSwmG3cHoy4G"], ["updated_at", Thu, 11 Jul 2013 21:40:37 UTC +00:00]] SQL (5.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 21:40:37 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:40:37 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 28ms (Views: 0.8ms | ActiveRecord: 8.7ms) 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  (10.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  (17.3ms) ROLLBACK  (8.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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.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  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (70.7ms) 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 21:42:16 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$hlPfm00oMXq3gjEoEpvKGuYha0Qpqmjs5mXXhRZGPk6y6.UfsBcqy"], ["updated_at", Thu, 11 Jul 2013 21:42:16 UTC +00:00]]  (0.3ms) 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.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:42:16 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 21:42:16 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 21:42:17 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:42:17 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (8.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.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.4ms) 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)  (3.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.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 ('20130612073709')  (0.6ms) 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 16:42:17 -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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (2.0ms) 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", Thu, 11 Jul 2013 21:42:17 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$FyO126znrlIYVFalg7bqMOP46r5JTprdsRn8UKnzMSSCNJNRFs2.u"], ["updated_at", Thu, 11 Jul 2013 21:42:17 UTC +00:00]] SQL (6.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 21:42:17 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:42:17 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 36ms (Views: 0.6ms | ActiveRecord: 17.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  (1.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  (24.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  (13.2ms) 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.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (18.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.1ms) 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.8ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (100.6ms) 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 21:46:13 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$Ctg6sL/kd7dwDSu4mg17POxPWHNtonOAuSLaJuK4phgZOrQx2FbHa"], ["updated_at", Thu, 11 Jul 2013 21:46:13 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:46:14 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 21:46:14 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 21:46:14 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:46:14 UTC +00:00], ["user_id", 1]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (13.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)   (3.5ms) 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")  (13.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")  (12.5ms) 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)   (1.3ms) 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"  (2.8ms) 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/users" for 127.0.0.1 at 2013-07-11 16:46:14 -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 (28.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Completed 500 Internal Server Error in 42ms  (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  (17.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  (8.9ms) ROLLBACK  (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  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (12.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  (0.1ms) BEGIN  (4.5ms) SAVEPOINT active_record_1 SQL (88.8ms) 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 21:47:13 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$82tk3L63gcVgKqc47YFzteeXA/SV/HMGw7w/ho8f.1cR648hjdGrK"], ["updated_at", Thu, 11 Jul 2013 21:47:13 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (5.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:47:13 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 21:47: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 21:47:13 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:47:13 UTC +00:00], ["user_id", 1]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (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)   (1.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")  (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)  (3.6ms) 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")  (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)   (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.9ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 16:47:14 -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" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Completed 500 Internal Server Error in 29ms  (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.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  (10.9ms) ROLLBACK  (10.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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.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  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (61.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 21:47:49 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$n5Hejqd8rI/zXbi9Trox0OLXBM7rsijiWHnUmuU02Eeeuz0pXleiG"], ["updated_at", Thu, 11 Jul 2013 21:47:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:47:49 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 21:47:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 21:47:49 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:47:49 UTC +00:00], ["user_id", 1]]  (2.9ms) RELEASE SAVEPOINT active_record_1  (6.7ms) CREATE SCHEMA "test1"  (11.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.7ms) 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")  (22.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)  (5.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.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)   (9.8ms) 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"  (1.0ms) 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/users" for 127.0.0.1 at 2013-07-11 16:47:49 -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 Completed 500 Internal Server Error in 25ms  (1.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  (22.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (8.1ms) ROLLBACK  (9.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  (3.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (25.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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  (0.2ms) BEGIN  (1.0ms) SAVEPOINT active_record_1 SQL (65.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 21:48:19 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$..pKzV5SC.zFq1NZeGxLj.zWPT2E4V9HfgJ8tuyoXRmDRAc5ABAWK"], ["updated_at", Thu, 11 Jul 2013 21:48:19 UTC +00:00]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (3.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:48:19 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 21:48:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (8.9ms) 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 21:48:20 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:48:20 UTC +00:00], ["user_id", 1]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) 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)  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.2ms) 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 16:48:20 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Completed 500 Internal Server Error in 8ms  (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.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  (12.0ms) 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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (22.1ms) 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.2ms) SAVEPOINT active_record_1 SQL (91.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 21:52:31 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$bxpOmUpRN/CUNuUaE1oDP.Q5ihuLD2Ngs0cWzZ0ZVHy9Shl0CXIVq"], ["updated_at", Thu, 11 Jul 2013 21:52:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (7.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) 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", Thu, 11 Jul 2013 21:52:31 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 21:52:31 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (10.3ms) SAVEPOINT active_record_1 SQL (19.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 21:52:31 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:52:31 UTC +00:00], ["user_id", 1]]  (30.4ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test1"  (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)   (9.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (6.5ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 16:52:31 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 21:52:31 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$jBAsrMYeBVlvxZyrBdNIwepFx8FZaZjI58fCNwKGSQ.ksw3i.TFp2"], ["updated_at", Thu, 11 Jul 2013 21:52:31 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", 1], ["created_at", Thu, 11 Jul 2013 21:52:31 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:52:31 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 33ms (Views: 0.6ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (5.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.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  (19.0ms) ROLLBACK  (1.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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.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  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (52.7ms) 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 21:55:43 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$hggdmYixon4JR9p.ZMHNs.tx2OJmQjDitTsbPxYtVxpxL4GDz9RhG"], ["updated_at", Thu, 11 Jul 2013 21:55:43 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (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" = '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", Thu, 11 Jul 2013 21:55:44 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 21:55:44 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (8.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 21:55:44 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:55:44 UTC +00:00], ["user_id", 1]]  (10.6ms) RELEASE SAVEPOINT active_record_1  (1.2ms) CREATE SCHEMA "test1"  (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")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.3ms) 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 ('20130612073709')  (4.0ms) 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 16:55:44 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.3ms) 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", Thu, 11 Jul 2013 21:55:44 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$RgnR4llwignaofEM/4mTOeRmUxXcIAzoGJ2Rjus2lvd3XeLAx7cfK"], ["updated_at", Thu, 11 Jul 2013 21:55:44 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 21:55:44 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 21:55:44 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 96ms (Views: 0.7ms | ActiveRecord: 3.2ms) Cadenero::V1::Account Load (2.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  (1.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.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  (8.7ms) 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.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.5ms) 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  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (21.3ms) 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 22:07:22 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$.N7K4RHZCCfYHEqhJKlOzOwBOSB8AkN4eeeJJUGHqJahUIegtMIie"], ["updated_at", Thu, 11 Jul 2013 22:07:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.4ms) 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.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:22 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:07:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.9ms) 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 22:07:23 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:23 UTC +00:00], ["user_id", 1]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (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)   (3.9ms) 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")  (4.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)  (4.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) 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 ('20130612073709')  (0.2ms) 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 17:07: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.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (40.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 22:07:23 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$8jyrmwvGYjmKSXYfi7QFr.PDyzExc7Cc121euM1YD0isTi9xAySXa"], ["updated_at", Thu, 11 Jul 2013 22:07:23 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", Thu, 11 Jul 2013 22:07:23 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:23 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 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 (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", 2]] Completed 201 Created in 263ms (Views: 67.7ms | ActiveRecord: 45.9ms) 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  (18.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  (14.3ms) ROLLBACK  (1.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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.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  (0.8ms) BEGIN  (4.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (12.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 22:07:45 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$yVMZokXN108FEyDlflO1/.NtRicG8lhDi3CO36aPD7x0uT1Ib14XS"], ["updated_at", Thu, 11 Jul 2013 22:07:45 UTC +00:00]] SQL (4.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:45 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:07:45 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:07:45 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Completed 500 Internal Server Error in 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  (16.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.1ms) 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-11 17:07:45 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Completed 500 Internal Server Error in 1ms  (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.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  (5.5ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.8ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$wxwuQCCGUAOjpddcT48JrewMm6gRazmeFgK.CpZMNnuRH5goSHs4e"], ["updated_at", Thu, 11 Jul 2013 22:07:49 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" = '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", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 2], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 2], ["created_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["user_id", 2]]  (1.1ms) RELEASE SAVEPOINT active_record_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", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$DXFVJjbTiPRYLMuQk9iJkOcgjcMvUOW7HZbYiRhX8LgzZeRV6D8XW"], ["updated_at", Thu, 11 Jul 2013 22:07:49 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 22:07:49 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$3VQNRtEIlHZBO/wVo/zc4ux..L1RGe44L9R2tpL6X1ywC6igQGM0u"], ["updated_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["name", "Root"], ["owner_id", 4], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www"  (7.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (2.4ms) 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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) 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)  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.9ms) SELECT version FROM "schema_migrations"  (0.4ms) 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') Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RsUTq9Bzuznfr8iWJK59' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 3 [["authentication_token", "RsUTq9Bzuznfr8iWJK59"], ["updated_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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  (34.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  (7.6ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$sXjAUTHeQMDnXWwIMcXJxuTJeO7nW/FFFnzfw/0YIMWenchbLbpGS"], ["updated_at", Thu, 11 Jul 2013 22:07:49 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" = '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", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 5], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00]]  (0.2ms) 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", 4], ["created_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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.5ms) 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.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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)   (2.0ms) 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 ('20130612073709')  (0.2ms) 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 17:07:49 -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" = 'test2' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$wPomn7YI5NbnztVAAfy8LOos7FWyE93CIK7FxFKF7TbPGNirjV4We"], ["updated_at", Thu, 11 Jul 2013 22:07:49 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", 4], ["created_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:49 UTC +00:00], ["user_id", 6]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] 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", 6]] Completed 201 Created in 176ms (Views: 43.1ms | ActiveRecord: 6.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  (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.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 Cadenero::V1::Account Exists (0.7ms) 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.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  (6.3ms) 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.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 22:07:50 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$HtXitVdX8jIjA5FRt8M3KO60tEiOwLZ7zwR8qtbaM05hwSOxPwtBi"], ["updated_at", Thu, 11 Jul 2013 22:07:50 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", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["name", "Test Account"], ["owner_id", 7], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00]]  (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", 5], ["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["user_id", 7]]  (0.3ms) RELEASE SAVEPOINT active_record_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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 5]]  (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.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.4ms) 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  (14.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  (4.0ms) ROLLBACK  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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.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  (2.0ms) 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", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$cGCIAqOZl1gcFkY9WY2.OOB6TvyhLdXDGfcYrshswFHMCZuL9Xkue"], ["updated_at", Thu, 11 Jul 2013 22:07:50 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" = '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", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 8], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00]]  (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", 6], ["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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)   (1.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.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)  (1.5ms) 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")  (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)   (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) 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') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:07:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:07:50 -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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') 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", 6]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 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 (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", 8]] Completed 201 Created in 18ms (Views: 6.7ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:07:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 Completed 200 OK in 3ms (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  (50.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  (8.3ms) ROLLBACK  (0.1ms) 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", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$bEWJQ3d1k7lxf9O2CO0pBOnQzBxkrS6gC2cDFDmXBBX1zjsvepiHq"], ["updated_at", Thu, 11 Jul 2013 22:07:50 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 (6.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 9], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00]]  (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", 7], ["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["user_id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test4"  (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" ("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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) 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)  (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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:07:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:07:50 -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 (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" = 'user@example.com' LIMIT 1 [["account_id", 7]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | 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  (8.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  (8.5ms) ROLLBACK  (0.2ms) 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", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$n41eNfwS3cKKbhXvc4ZzOOuFC9nFTSDzhbHE1jyr.7JGEaX.J/z96"], ["updated_at", Thu, 11 Jul 2013 22:07:50 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.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 10], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00]]  (0.2ms) 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", 8], ["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["user_id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (5.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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) 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.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:07:50 -0500  (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  (7.4ms) ROLLBACK  (0.4ms) 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", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$FfRcr97s6FtymZZAXvdaoetYRKWlBYVB9ZTepStYoWrZItIkgBqay"], ["updated_at", Thu, 11 Jul 2013 22:07:50 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", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 11], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 9], ["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["user_id", 11]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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)  (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")  (5.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.0ms) 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")  (8.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 ('20130612073709')  (0.1ms) 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 17:07:50 -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 ('test6') 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" = 'user7@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" = 11 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 11]] 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", 11]] Completed 201 Created in 17ms (Views: 6.3ms | ActiveRecord: 2.9ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:07:50 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"11", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 11 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:07:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (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  (21.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  (17.9ms) 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", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$zF45wFyrW2MgzgEC8vRmd.sAdnXBUxdYeEBHfjGhObf1L1viAg4.q"], ["updated_at", Thu, 11 Jul 2013 22:07:50 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" = '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", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 12], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00]]  (1.7ms) 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", 10], ["created_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:50 UTC +00:00], ["user_id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (16.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" ("authentication_token")  (7.0ms) 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)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (11.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.5ms) SELECT version FROM "schema_migrations"  (0.5ms) 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')  (3.1ms) SAVEPOINT active_record_1 SQL (3.8ms) 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 22:07:51 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$4n6BV6SXvilnyC6H9DUsnOq.EZeAccGDCPJNPMrMWgfClL7N0BOT."], ["updated_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00]]  (7.7ms) 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" = '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", Thu, 11 Jul 2013 22:07:51 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 13], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00]]  (0.2ms) 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", 11], ["created_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00], ["user_id", 13]]  (1.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:07:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.6ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:07:51 -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 (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 [["account_id", 10]] Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 3.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  (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.3ms) 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  (9.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (4.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$nOkNqdFjS/eBkBdh5KgFEe9Q8n1PYdgeDP1ckFY1P./m1CBO.7RUy"], ["updated_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' 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", Thu, 11 Jul 2013 22:07:51 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 14], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00]]  (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", 12], ["created_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:07:51 UTC +00:00], ["user_id", 14]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (2.9ms) CREATE SCHEMA "test9"  (6.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.1ms) 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")  (4.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)   (1.2ms) 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")  (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.9ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:07:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:07:51 -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 ('test9') LIMIT 1 Cadenero::User Load (4.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" = 'foo@example.com' LIMIT 1 [["account_id", 12]] Completed 422 Unprocessable Entity in 11ms (Views: 0.3ms | 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  (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.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  (12.9ms) ROLLBACK  (0.8ms) 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.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  (15.1ms) 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.6ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.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  (14.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.1ms) 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.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'  (18.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.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:08:34 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Completed 500 Internal Server Error in 7ms  (0.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  (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  (14.3ms) ROLLBACK  (0.1ms) BEGIN  (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 (9.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 22:08:34 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$PG/VMGcaIe303DIXVrPR/emCexfU4Mm62TTQws5vv4kkOe4fqRWfK"], ["updated_at", Thu, 11 Jul 2013 22:08:34 UTC +00:00]] SQL (15.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:08:34 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:08:34 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:08:34 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Completed 500 Internal Server Error in 1ms  (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  (14.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.4ms) ROLLBACK  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (21.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  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:09: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} Completed 500 Internal Server Error in 6ms  (0.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  (28.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  (5.2ms) ROLLBACK  (0.3ms) BEGIN  (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 (15.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 22:09:23 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$faxYbnod6s3ZzzOkki8VEeTjdGeyNGeIvlFikg3gNVbABXlwvERQW"], ["updated_at", Thu, 11 Jul 2013 22:09:23 UTC +00:00]] 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", Thu, 11 Jul 2013 22:09:23 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:09:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:09: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} Completed 500 Internal Server Error in 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  (9.8ms) 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  (2.8ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.8ms) 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  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:11:34 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Unpermitted parameters: owner_attributes  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (1.3ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 173ms (Views: 0.4ms | ActiveRecord: 12.5ms) Cadenero::V1::Account Load (2.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  (8.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (4.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  (3.0ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (18.7ms) 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 22:11:35 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$xi4MCf5U7CJ//bw2VqRieu9.dRAnbT9u3fhPyZOnOsc04qW8wCpNW"], ["updated_at", Thu, 11 Jul 2013 22:11:35 UTC +00:00]] SQL (4.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:11:35 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:11:35 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:11:35 -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} Unpermitted parameters: owner_attributes  (14.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (4.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 35ms (Views: 0.4ms | ActiveRecord: 22.6ms) Cadenero::V1::Account Load (0.8ms) 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  (17.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  (5.7ms) 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.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (35.9ms) 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  (1.1ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (82.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 22:13:12 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$hokj3zIAss33WoVlef/9MOjgUt8e.o8TjRSYo6QBTz8TKqdBe3rYW"], ["updated_at", Thu, 11 Jul 2013 22:13:12 UTC +00:00]] SQL (1.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:13:12 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:13:12 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:13: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} Unpermitted parameters: owner_attributes  (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" = '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 39ms (Views: 5.7ms | ActiveRecord: 1.7ms) Cadenero::V1::Account Load (1.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  (14.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.3ms) ROLLBACK  (1.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:13: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} Unpermitted parameters: owner_attributes  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.5ms) 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 13ms (Views: 0.3ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (0.8ms) 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  (17.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.2ms) ROLLBACK  (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  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.6ms) 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  (0.7ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:14:17 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json} Unpermitted parameters: owner  (0.9ms) 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  (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 169ms (Views: 0.4ms | ActiveRecord: 5.4ms) 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.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  (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  (3.6ms) 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  (25.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.4ms) 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.4ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (17.0ms) 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.4ms) 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 (51.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 22:15:38 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$x2s83VZ2Ijp9IgyKtNrKFeRuD7rZSfWRikeKUjfgLS5f9AkaRnjQS"], ["updated_at", Thu, 11 Jul 2013 22:15:38 UTC +00:00]] 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", Thu, 11 Jul 2013 22:15:38 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:15:38 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:15: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} Unpermitted parameters: owner_attributes  (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.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 26ms (Views: 0.4ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.8ms) 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  (11.0ms) 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  (2.5ms) ROLLBACK  (0.8ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:15: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} Unpermitted parameters: owner_attributes  (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  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 15ms (Views: 0.4ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.7ms) 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  (41.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.0ms) ROLLBACK  (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  (2.3ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.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  (0.2ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (97.8ms) 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 22:18:18 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$MeHmG1QH0JWuCsOLEmMyuOSUYy5riwLrID71nGE3j090K5gJUpova"], ["updated_at", Thu, 11 Jul 2013 22:18:18 UTC +00:00]] SQL (4.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:18 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:18:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:18:18 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (4.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (5.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.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 46ms (Views: 12.1ms | ActiveRecord: 10.5ms) Cadenero::V1::Account Load (1.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  (10.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.9ms) 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 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:18:18 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.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", Thu, 11 Jul 2013 22:18:18 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$N2aI7cIU.3GzfRZ5RaruH.oo0O5FXP56osm/IF0MalVD8YJYYj6qW"], ["updated_at", Thu, 11 Jul 2013 22:18:18 UTC +00:00]] 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", Thu, 11 Jul 2013 22:18:18 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:18:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (13.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", Thu, 11 Jul 2013 22:18:19 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:19 UTC +00:00], ["user_id", 2]]  (0.5ms) RELEASE SAVEPOINT active_record_1 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" != 2) LIMIT 1  (0.4ms) 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.4ms) 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")  (6.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)  (1.1ms) 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")  (13.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.8ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pPEYxxZTN3CXWyFWXrri' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (1.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 2 [["authentication_token", "pPEYxxZTN3CXWyFWXrri"], ["updated_at", Thu, 11 Jul 2013 22:18:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 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 [["account_id", 2]] Completed 201 Created in 364ms (Views: 33.4ms | ActiveRecord: 74.2ms) Cadenero::V1::Account Load (4.2ms) 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  (24.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  (21.7ms) ROLLBACK  (10.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  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.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  (3.5ms) BEGIN  (5.2ms) SAVEPOINT active_record_1 SQL (89.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 22:18:54 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$vQfV.O5JZypO2L0lXjPD1elSFlnXjXkeFlVCZU6NNsmJjT0vZYbUO"], ["updated_at", Thu, 11 Jul 2013 22:18:54 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.6ms) 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 22:18:55 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("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")  (1.9ms) SELECT version FROM "schema_migrations"  (7.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:18:55 -0500  (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.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  (10.5ms) ROLLBACK  (26.9ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (21.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 22:18:55 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$5utf62YqWexqTs.62M74buaC.HELrNWlD1tb/UFLxORRee1Favv.a"], ["updated_at", Thu, 11 Jul 2013 22:18:55 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.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00]]  (1.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (20.2ms) 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 22:18:55 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["user_id", 2]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test2"  (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.0ms) 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")  (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)   (0.8ms) 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.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.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 ('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 17:18:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 43ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:18:55 -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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (8.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" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 2]] Completed 422 Unprocessable Entity in 35ms (Views: 0.4ms | ActiveRecord: 9.4ms) Cadenero::V1::Account Load (10.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.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  (10.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  (6.7ms) ROLLBACK  (0.2ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$Mdf5fetmrCJ90ynzQ9NniuMeZgVjo5Qr/M5Flqy4NGCrX27PxIp7a"], ["updated_at", Thu, 11 Jul 2013 22:18:55 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.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.6ms) 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", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["user_id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) CREATE SCHEMA "test3"  (7.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")  (2.6ms) 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)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.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.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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 17:18:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:18:55 -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 (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') 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" = 'foo@example.com' LIMIT 1 [["account_id", 3]] Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 1.6ms) Cadenero::V1::Account Load (1.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  (21.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  (10.6ms) ROLLBACK  (0.6ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$tAsGSaQMuG2yz0cqVm5Bk.MU/SqLCHRDQe8wlvoDRPGtO2ms7Z.Hq"], ["updated_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00]]  (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", 4], ["created_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:55 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (16.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.4ms) 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")  (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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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)   (3.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 17:18:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:18: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.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 4]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Completed 201 Created in 52ms (Views: 37.6ms | ActiveRecord: 6.5ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:18:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true 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)  (3.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.4ms) 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.7ms) ROLLBACK  (0.7ms) BEGIN  (2.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", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$0KsQfJhmN8FzQvZVwh0yOu9H2P6pSezEKKERc1D28EA7oALKslpVC"], ["updated_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00]]  (0.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" = '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", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:18:56 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", 5], ["created_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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)  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (14.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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")  (0.3ms) SELECT version FROM "schema_migrations"  (0.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')  (0.9ms) 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 22:18:56 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$JG1C6rS.6XQKzogrLbmhcue0W8xbCcpWWldtVZK7/jQSox0OKGVDu"], ["updated_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00]]  (9.9ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (7.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:18:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:18:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@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" IN ('test5') LIMIT 1 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 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 5]] Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 2.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' 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.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.7ms) ROLLBACK  (0.1ms) BEGIN  (0.5ms) 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 22:18:56 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$oAerzw74YHkNZ03ddABoT.YFSVRVhxtBaPy4HdXelW0IbjSoCahJC"], ["updated_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00]]  (0.7ms) 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", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:56 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (14.3ms) 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.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (10.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (7.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:18:56 -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.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') 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" = $1 AND "public"."cadenero_users"."email" = 'user7@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" = 7 LIMIT 1 Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 7]] 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" = $1 [["user_id", 7]] Completed 201 Created in 24ms (Views: 6.0ms | ActiveRecord: 11.0ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:18:56 -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.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:18:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (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  (13.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.9ms) 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.4ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (2.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$hKqhZjUYyp1sM6KIX0yfc.d38AL03yA46tlUew7pWejHmROejU/Tq"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.2ms) 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", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 8], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 8], ["created_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["user_id", 8]]  (0.7ms) RELEASE SAVEPOINT active_record_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", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$HMzS6Ksi9lPMBj/itee4m.hnEzSlCOB38BTmGYIDASJeE5VJQ9ETq"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]]  (0.4ms) 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", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$nUHA5Y0fHt1QvngoifCG3.vXpsog3ACwxKIPzRxCZvVt9NUkBEwr6"], ["updated_at", Thu, 11 Jul 2013 22:18: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", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["name", "Root"], ["owner_id", 10], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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.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")  (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)   (1.0ms) 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")  (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.8ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Yd43tbJBqjWUgMqqN53q' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 9 [["authentication_token", "Yd43tbJBqjWUgMqqN53q"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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  (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  (4.0ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 5ms (Views: 3.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  (9.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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  (10.4ms) 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.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  (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  (2.2ms) 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.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.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  (3.4ms) ROLLBACK  (0.1ms) 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.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  (5.0ms) 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", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$HL.DM8LrgElLo8aRPxgfy.fkqDPTYZrOX1rBEefCbpobgG.ob5nx."], ["updated_at", Thu, 11 Jul 2013 22:18:59 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", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["name", "Test Account"], ["owner_id", 11], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 10], ["created_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 10]]  (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  (8.3ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (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.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  (3.5ms) ROLLBACK  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:18:59 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.5ms) 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", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$0zyoRhr7iJX.zphBBA4G7OpkTe36kOu8fRHMJ5GaPIw/o7kxXxwmK"], ["updated_at", Thu, 11 Jul 2013 22:18:59 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", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["name", "Testy"], ["owner_id", 12], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]]  (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", 11], ["created_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["user_id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 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" != 11) LIMIT 1  (0.2ms) CREATE SCHEMA "test"  (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.5ms) 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.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)   (1.0ms) 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")  (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.0ms) 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.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'NM7Q1fJPapJ5ApuE1yUx' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 11 [["authentication_token", "NM7Q1fJPapJ5ApuE1yUx"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 69ms (Views: 1.5ms | ActiveRecord: 35.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.8ms) ROLLBACK  (0.2ms) 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", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$Nlh4.6lGdtjnBxjk8a4WPO6jkDEhJNOH/7YVZhCFF7xPlLwySIHoS"], ["updated_at", Thu, 11 Jul 2013 22:18:59 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", Thu, 11 Jul 2013 22:18:59 UTC +00:00], ["name", "Testy"], ["owner_id", 13], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:18:59 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:18:59 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 13ms (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  (12.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.7ms) 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", Thu, 11 Jul 2013 22:19:00 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$GDG.H3GLqO5P1vaeuDT30.43.mZI9OZCK7wqCOBeOl7V6ksy5c53O"], ["updated_at", Thu, 11 Jul 2013 22:19:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' 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", Thu, 11 Jul 2013 22:19:00 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 14], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:19:00 UTC +00:00]]  (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", Thu, 11 Jul 2013 22:19:00 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:19:00 UTC +00:00], ["user_id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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.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)  (1.0ms) 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")  (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)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) 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 17:19:00 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' 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", Thu, 11 Jul 2013 22:19:00 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$7J4SzU3beTueLOaIFRGgG.A0XDOKX7d1/taWDnw9XiLKDcXUsXu.y"], ["updated_at", Thu, 11 Jul 2013 22:19:00 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", 13], ["created_at", Thu, 11 Jul 2013 22:19:00 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:19:00 UTC +00:00], ["user_id", 15]]  (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" = 15 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 15]] 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", 15]] Completed 201 Created in 21ms (Views: 5.4ms | ActiveRecord: 3.7ms) 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.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  (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'  (12.2ms) 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  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:20:03 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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 (10.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 22:20:04 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$IvSrS.KI9XVR1T3NOtIoru33h07VxU2W.VKnBzKI8/qjgqJsF.cYi"], ["updated_at", Thu, 11 Jul 2013 22:20:04 UTC +00:00]] SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:04 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:20:04 UTC +00:00]]  (0.2ms) 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 22:20:04 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:04 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (0.4ms) CREATE SCHEMA "test"  (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.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")  (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)   (1.0ms) 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")  (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)  (1.0ms) 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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZpxKVT9CAvssn2cWfs5y' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 1 [["authentication_token", "ZpxKVT9CAvssn2cWfs5y"], ["updated_at", Thu, 11 Jul 2013 22:20:04 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_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 (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 [["account_id", 1]] Completed 201 Created in 379ms (Views: 16.7ms | ActiveRecord: 57.8ms) 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  (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  (7.0ms) 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", Thu, 11 Jul 2013 22:20:04 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$dxwHiqgznspCp13aPFGYcuUeJ2b0yuMN0hK0t9LLU9wsHE7/CiJpG"], ["updated_at", Thu, 11 Jul 2013 22:20:04 UTC +00:00]] 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", Thu, 11 Jul 2013 22:20:04 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:20:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:20:04 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (2.5ms) 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 44ms (Views: 0.3ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC 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  (8.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.2ms) 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'  (13.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.5ms) BEGIN  (0.4ms) 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 (11.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 22:20:27 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$cC2VThfDPVd9rjH4L7AIUucvmAS4bzQPgnpuVb/w1RBWLofywI/1K"], ["updated_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00]] SQL (1.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:20:27 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", 1], ["created_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (2.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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 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.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.4ms) ROLLBACK  (0.2ms) 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.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  (17.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) 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 Cadenero::V1::Account Exists (0.9ms) 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  (15.3ms) 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  (4.8ms) ROLLBACK  (0.3ms) BEGIN Cadenero::V1::Account Exists (1.9ms) 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  (18.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  (7.8ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 500 Internal Server Error in 6ms  (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  (10.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) 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  (1.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.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.6ms) 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  (7.1ms) ROLLBACK  (0.1ms) BEGIN  (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 22:20:27 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$BMmprn6SkT1REfoIZiDd7ehmQ7qSVZD1ZuW2N9fnGlP/r4KXNl5zG"], ["updated_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.0ms) 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", Thu, 11 Jul 2013 22:20:27 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 2], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.6ms) 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", 2], ["created_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (19.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")  (1.2ms) 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)  (4.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.2ms) SELECT version FROM "schema_migrations"  (0.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/users" for 127.0.0.1 at 2013-07-11 17:20:27 -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 (4.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 22:20:27 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$.dD2Ew0XD3jEtu2DhqzYwuYjSqrIHTqfK9jdF7Gi7DsEWrUO1EOo."], ["updated_at", Thu, 11 Jul 2013 22:20:27 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", 2], ["created_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:27 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 3]] 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", 3]] Completed 201 Created in 196ms (Views: 52.1ms | ActiveRecord: 8.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  (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  (23.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.9ms) ROLLBACK  (0.4ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:20:28 -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.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (7.7ms) 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 22:20:28 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$3Mu.xVqYIXzx5T4TNaLR.uQyk9bjcp62eK.0sZMEuvLX.5KQqn5/2"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]] SQL (2.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["name", "Testy"], ["owner_id", 4], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.4ms) 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", 3], ["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 3) LIMIT 1  (0.2ms) CREATE SCHEMA "test"  (17.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")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) 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")  (12.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)  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (7.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nh7mWuGG6pvvtRnWk72U' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (11.9ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 3 [["authentication_token", "nh7mWuGG6pvvtRnWk72U"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 143ms (Views: 1.5ms | ActiveRecord: 96.6ms) Cadenero::V1::Account Load (1.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  (13.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.3ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) 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", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$s0fGXO8OlXULX7od6ftB8eAaT1roMQsX89kYNqZFqw5ML48m2KGla"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]] 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", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["name", "Testy"], ["owner_id", 5], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:20:28 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 14ms (Views: 0.4ms | ActiveRecord: 0.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  (27.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.3ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$3819RtGkkrR89jM6Lo7kKu5guxogH2LmqP1j5tRjRZL593q8V2jVy"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 6], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:20:28 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", 5], ["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["user_id", 6]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.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)  (6.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (9.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (9.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) 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 22:20:28 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$jFspaOaaAYkG9IUjeXdsUOGSE.dsGjXYmrKNFwX1kCaExuI2JKfuW"], ["updated_at", Thu, 11 Jul 2013 22:20:28 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 (7.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 7], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (9.3ms) 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", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["user_id", 7]]  (3.8ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:20:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:20:28 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@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 ('test2') 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" = 'user3@example.com' LIMIT 1 [["account_id", 5]] Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 1.9ms) 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.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  (35.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  (8.6ms) ROLLBACK  (0.4ms) BEGIN  (1.0ms) 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 22:20:28 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$I1ksq8P9h1gEGCqW03dlReiquflHCWVVnJZLIi4G2iHHKkkWQmGVq"], ["updated_at", Thu, 11 Jul 2013 22:20:28 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.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 8], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (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", 7], ["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["user_id", 8]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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)   (1.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.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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.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.2ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:20:28 -0500  (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  (17.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  (13.4ms) ROLLBACK  (0.3ms) BEGIN  (0.6ms) 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 22:20:28 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$Qg3x3XwWOH/Mh2eAsr12GO2qZb1vhGM4nJ9cFwe5OjV1olkmdSHMa"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 9], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (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", 8], ["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["user_id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test5"  (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.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.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)  (1.5ms) 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 ('20130612073709')  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:20:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:20:28 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (5.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 'user5@example.com' LIMIT 1 [["account_id", 8]] Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Cadenero::V1::Account Load (0.9ms) 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 22ms (Views: 5.7ms | ActiveRecord: 9.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:20:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.9ms) 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.9ms)  (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  (8.5ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$B6k1Iw5pcdcv0keAAvSSCu.lQgpjcgu3o.IzGZGQFGtKw6lgIw01i"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.3ms) 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" = 'test6' 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", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 10], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (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", 9], ["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["user_id", 10]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test6"  (12.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" ("authentication_token")  (6.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) 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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:20:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:20:28 -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 (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') 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" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 9]] Completed 422 Unprocessable Entity in 7ms (Views: 0.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' ORDER BY "public"."cadenero_accounts"."id" ASC 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.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.2ms) ROLLBACK  (0.3ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$E8ZNN4vmrDJQTL6/GmePl.i2G.GUZ40Mse0WyOWBTNYzhfeHE4TjS"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' 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", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 11], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00]]  (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", 10], ["created_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:28 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (8.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.9ms) 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.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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:20:29 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') 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" = 'user7@example.com' LIMIT 1 [["account_id", 10]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 11 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 11]] 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", 11]] Completed 201 Created in 16ms (Views: 5.7ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:20:29 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"11", "default"=>:json} Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 11 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 1.5ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:20:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.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  (20.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.6ms) ROLLBACK  (4.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", Thu, 11 Jul 2013 22:20:29 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$JMdOoTGpvdeee18gaxHxKeJh.SW1K3bTHyjFVBa02A5.jw8xHMQnC"], ["updated_at", Thu, 11 Jul 2013 22:20:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Thu, 11 Jul 2013 22:20:29 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 12], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:20:29 UTC +00:00]]  (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", 11], ["created_at", Thu, 11 Jul 2013 22:20:29 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:29 UTC +00:00], ["user_id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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)  (10.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.9ms) 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 17:20:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:20:29 -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 (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') 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" = 'user@example.com' LIMIT 1 [["account_id", 11]] Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 1.7ms) 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  (12.3ms) 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.3ms) ROLLBACK  (0.2ms) BEGIN  (9.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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", Thu, 11 Jul 2013 22:20:32 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$JxfdLhufPSJbrZAVItpwMePPXvxU2aKmmvnvN36TT.vX.SktUqTXO"], ["updated_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00]]  (2.0ms) 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", Thu, 11 Jul 2013 22:20:32 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 13], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00]]  (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", 12], ["created_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00], ["user_id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$O.FMHrcJNIezmZmW68Zpce7C7JnlUyshvY3J5Pzpcee1wEz8g4o1W"], ["updated_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$YxW0xOqP2UDpKeOj/MEPIOt/ZQH9zP8HUnrHViG9XfYPKkgc9LbOm"], ["updated_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Thu, 11 Jul 2013 22:20:32 UTC +00:00], ["name", "Root"], ["owner_id", 15], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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")  (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)   (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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)   (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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hq2zepGULXmhwpAsZ37n' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 13 [["authentication_token", "hq2zepGULXmhwpAsZ37n"], ["updated_at", Thu, 11 Jul 2013 22:20:32 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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  (10.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  (12.3ms) ROLLBACK  (8.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  (2.8ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (21.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.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:21:03 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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 (25.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 22:21:03 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$1CdeN7rjl/Q1H59PoJy9qeOEBcderUqMs6O/qZtTDGyIM/BbqQAy2"], ["updated_at", Thu, 11 Jul 2013 22:21:03 UTC +00:00]] 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", Thu, 11 Jul 2013 22:21:03 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:21:03 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 22:21:03 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:21:03 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 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" != 1) LIMIT 1  (0.3ms) CREATE SCHEMA "test"  (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.3ms) 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)   (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")  (6.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)   (4.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 ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (9.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'BppdBA661XY6sSfUnbav' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (6.3ms) SAVEPOINT active_record_1 SQL (1.9ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 1 [["authentication_token", "BppdBA661XY6sSfUnbav"], ["updated_at", Thu, 11 Jul 2013 22:21:03 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 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" = $1 [["account_id", 1]] Completed 201 Created in 571ms (Views: 28.3ms | ActiveRecord: 113.4ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (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  (16.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  (8.3ms) 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.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 22:21:03 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$4PJqobEMgs4NzV.wMVqO4OeWOSsoIwzLDaOkFxunXTqtLBo0ZnPX6"], ["updated_at", Thu, 11 Jul 2013 22:21:03 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", Thu, 11 Jul 2013 22:21:03 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:21:03 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:21:03 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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 22ms (Views: 0.4ms | ActiveRecord: 0.8ms) 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.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.2ms) ROLLBACK  (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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.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  (0.2ms) BEGIN  (2.7ms) SAVEPOINT active_record_1 SQL (23.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 22:21:52 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$COjifeXdhudAiysoWNd8SezeABZ/zPpqW2oFLQetjys3uj2yP7612"], ["updated_at", Thu, 11 Jul 2013 22:21:52 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:52 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:21:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.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", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.6ms) 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")  (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)  (3.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("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)   (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:21:53 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (3.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 [["account_id", 1]] Cadenero::User Load (2.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 1]] 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", 1]] Completed 201 Created in 196ms (Views: 72.4ms | ActiveRecord: 7.8ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:21:53 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:21:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (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.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  (10.7ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (3.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 22:21:53 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$BhV2BjixouXlfxuo1WH7qeFwrJxPR9znx5fKUv6xy7p0gf8BoTp0m"], ["updated_at", Thu, 11 Jul 2013 22:21:53 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.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00]]  (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", 2], ["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.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)  (5.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) 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)   (2.4ms) 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 ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) SAVEPOINT active_record_1 SQL (5.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 22:21:53 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$wgdGAau337feAaKQObwtiei3.rlH5mnDMJu68sXxpO3KJs.SlOa46"], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (8.1ms) 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", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00]]  (5.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", 3], ["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:21:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:21:53 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@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" IN ('test2') LIMIT 1 Cadenero::User Load (3.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" = 'user3@example.com' LIMIT 1 [["account_id", 2]] Completed 422 Unprocessable Entity in 8ms (Views: 0.6ms | ActiveRecord: 3.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  (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.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  (8.6ms) ROLLBACK  (0.4ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$rVVjBdoh6SnktChYqwNT9.zfR2wHvXo3tJT0dOwJsIa9oMP6Mi.bi"], ["updated_at", Thu, 11 Jul 2013 22:21:53 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.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (5.8ms) 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", 4], ["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["user_id", 4]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test4"  (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.1ms) 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")  (9.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)  (5.2ms) 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")  (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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.9ms) 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 ('20130612073709')  (0.2ms) 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 17:21:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:21:53 -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 (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') 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" = 'user@example.com' LIMIT 1 [["account_id", 4]] Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 1.7ms) Cadenero::V1::Account Load (3.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.8ms) 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  (4.1ms) ROLLBACK  (0.1ms) BEGIN  (1.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 22:21:53 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$zK9ICuvPhPAMEMppIrS9ueFcAuh5TaKlt8ruKOYuHyP64CSoNljL6"], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' 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", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00]]  (0.3ms) 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", 5], ["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) CREATE SCHEMA "test5"  (12.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)   (12.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.4ms) 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)  (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) 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)   (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 ('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 17:21:53 -0500  (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.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  (9.1ms) ROLLBACK  (1.7ms) BEGIN  (0.7ms) 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 22:21:53 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$1NfZTxlX3Yjfj7uefPBlOuCMYoSvGGFpMMHJ2HRTptcOaio/UW51a"], ["updated_at", Thu, 11 Jul 2013 22:21:53 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.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00]]  (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", 6], ["created_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:21:53 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (8.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)  (18.4ms) 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.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)   (3.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.2ms) 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)  (8.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) 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 17:21:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:21:54 -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.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') 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", 6]] Completed 422 Unprocessable Entity in 9ms (Views: 0.5ms | ActiveRecord: 4.0ms) Cadenero::V1::Account Load (7.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.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.8ms) ROLLBACK  (4.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:54 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$Qaadiz5BNh3Luc3n.AxqcuiPLvVmwV/ITJFxcVRJFksAbJlnryNS."], ["updated_at", Thu, 11 Jul 2013 22:21:54 UTC +00:00]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:21:54 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:21:54 UTC +00:00]]  (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", 7], ["created_at", Thu, 11 Jul 2013 22:21:54 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:21:54 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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.6ms) 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")  (18.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)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.5ms) 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 ('20130612073709')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:21:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:21:54 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 [["account_id", 7]] Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Cadenero::V1::Account Load (0.5ms) 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 21ms (Views: 6.5ms | ActiveRecord: 7.1ms) Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:21:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true 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)  (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  (18.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  (10.0ms) ROLLBACK  (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  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.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  (0.6ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 SQL (47.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 22:23:47 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$D5LUOwLg1bzte.gwMLXcwuRSaKesYvDx0r2MS1MIMQ05W5Ul5ELA2"], ["updated_at", Thu, 11 Jul 2013 22:23:47 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (3.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:23:47 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:23:47 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (9.6ms) SAVEPOINT active_record_1 SQL (5.7ms) 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 22:23:47 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:23:47 UTC +00:00], ["user_id", 1]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.9ms) CREATE SCHEMA "test1"  (10.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")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.8ms) 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")  (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)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.2ms) SELECT version FROM "schema_migrations"  (0.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 GET "/v1" for 127.0.0.1 at 2013-07-11 17:23:47 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 230ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:23:48 -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 (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (68.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", 1]] Completed 422 Unprocessable Entity in 115ms (Views: 17.2ms | ActiveRecord: 69.4ms) Cadenero::V1::Account Load (5.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  (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  (17.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  (7.6ms) ROLLBACK  (1.0ms) BEGIN  (0.6ms) 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 22:23:48 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$WmSUCi6ZlCP3XUshljT9gedUu4euQlmX2nQ.IJhlP/5AGoRcf93dm"], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (1.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (34.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)   (18.9ms) 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")  (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.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.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.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.3ms) SELECT version FROM "schema_migrations"  (0.5ms) 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')  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$34rMwEbL0tzsCQPCzu9TJ.umRiFhlkaiid.95Jem7A8fLBRmhc6xW"], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.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", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00]]  (0.1ms) 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", 3], ["created_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:23:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:23:48 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@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 ('test2') LIMIT 1 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 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 2]] Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 2.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  (0.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  (44.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.1ms) ROLLBACK  (1.7ms) BEGIN  (2.8ms) 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", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$.TRtI2mKoJVO3NRA5xNcpO3MnNnQVymNKeOR7WC/NKJRDcSq7i8RS"], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (4.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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")  (3.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (8.3ms) 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 ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:23:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:23:48 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 4]] Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::V1::Account Load (21.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 4]] Completed 201 Created in 79ms (Views: 45.4ms | ActiveRecord: 25.5ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:23:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true 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  (32.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  (12.3ms) ROLLBACK  (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 22:23:48 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$qabrerTILoxCUeCK5KNoW.x0bhub3YtpW/jDiGQywOx9NpuRIzfJm"], ["updated_at", Thu, 11 Jul 2013 22:23:48 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", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:23:48 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", 5], ["created_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:23:48 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (14.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.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)  (2.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("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)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (8.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.8ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (3.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:23:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:23:49 -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.0ms) 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" = 'user@example.com' LIMIT 1 [["account_id", 5]] Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' 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.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  (13.2ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$hESoNsdsMgrgDgStAEufs.rufOebFRxp1NLoj42wRdSWTbSzZWQYu"], ["updated_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (2.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) 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", Thu, 11 Jul 2013 22:23:49 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 6], ["created_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00], ["user_id", 6]]  (6.7ms) RELEASE SAVEPOINT active_record_1  (1.1ms) CREATE SCHEMA "test6"  (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)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (15.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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)  (6.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.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 ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:23:49 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@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 ('test6') 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", 6]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] 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", 6]] Completed 201 Created in 17ms (Views: 5.5ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:23:49 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"6", "default"=>:json} Cadenero::User Load (0.4ms) 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.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:23:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (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  (25.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  (7.2ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (10.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 22:23:49 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$U82fi7rDHiPTfpeVKzsf6.lpPXcRror39OqYxLU7fVOrPOVSAdW6."], ["updated_at", Thu, 11 Jul 2013 22:23:49 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 (107.2ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 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", 7], ["created_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:23:49 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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)   (6.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (11.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)  (5.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.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.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:23:49 -0500  (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  (13.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  (6.6ms) ROLLBACK  (1.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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.5ms) 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  (0.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (11.6ms) 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 22:29:59 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$oqyyFA3GZhIzYvW1iAF4KOE0oxwdEGX3DpuIV.uRsE0VQi2Bi6phm"], ["updated_at", Thu, 11 Jul 2013 22:29:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:29:59 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:29:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 SQL (4.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 22:29:59 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:29:59 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test1"  (10.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.8ms) 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")  (7.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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) 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)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (9.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (1.0ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-11 17:29:59 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 134ms (Views: 0.7ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:30:00 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (4.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (10.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" = 'user1@example.com' LIMIT 1 [["account_id", 1]] Cadenero::User Load (8.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 1]] 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", 1]] Completed 201 Created in 106ms (Views: 54.7ms | ActiveRecord: 24.6ms) Cadenero::V1::Account Load (5.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:30:00 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 7ms (Views: 0.3ms | 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  (30.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  (9.5ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) 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 22:30:00 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$D0KIUl9qz81eOe5QhPrafeiRAENNq3AvqRSW6cKuKr4E4Mq4DIMke"], ["updated_at", Thu, 11 Jul 2013 22:30:00 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" = 'test2' LIMIT 1 SQL (26.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00]]  (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", 2], ["created_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["user_id", 2]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (8.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)   (7.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (8.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (13.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.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (6.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:30:00 -0500  (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  (17.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  (7.3ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (2.3ms) 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 22:30:00 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$pOqi7g1CWMJB3dwbSOC1IuG1tzsjMzc7iKsncdnhua7NACkA9E04u"], ["updated_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 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", 3], ["created_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["user_id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (8.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.6ms) 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)   (0.9ms) 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")  (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)  (13.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (7.6ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:30:00 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:30:00 -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 (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (1.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 3]] Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 2.6ms) Cadenero::V1::Account Load (6.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  (17.8ms) 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  (24.6ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$dCZTcXh3QvfDOvl82IENguqNLfeDeqgFEyQQzPp7RRIrzZaguS3mq"], ["updated_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (3.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00]]  (26.5ms) 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", 4], ["created_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:30:00 UTC +00:00], ["user_id", 4]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (21.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.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.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)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) SELECT version FROM "schema_migrations"  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (6.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:30:00 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.2ms) 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", 4]] Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::V1::Account Load (12.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] 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" = $1 [["user_id", 4]] Completed 201 Created in 30ms (Views: 6.3ms | ActiveRecord: 16.2ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:30:01 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"4", "default"=>:json} Cadenero::User Load (0.7ms) 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.7ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:30:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (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.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.4ms) ROLLBACK  (0.4ms) 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", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$E0vG2prtMEUTA34jjZkutOiZgHicTcL50vW4W92VMBa0t8s00MVxG"], ["updated_at", Thu, 11 Jul 2013 22:30:01 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" = 'test5' LIMIT 1 SQL (10.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00]]  (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", 5], ["created_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["user_id", 5]]  (6.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test5"  (13.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)  (7.6ms) 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")  (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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.1ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$9rGU3YIH6CErXrDIfHcbJe/1qC8detnsjcHjrJmo4XvmzNpJ9wpoS"], ["updated_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (5.8ms) 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", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.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", 6], ["created_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:30:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 9ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:30:01 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@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" IN ('test5') LIMIT 1 Cadenero::User Load (5.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", 5]] Completed 422 Unprocessable Entity in 16ms (Views: 0.4ms | ActiveRecord: 8.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  (1.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  (20.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.7ms) ROLLBACK  (0.4ms) BEGIN  (3.3ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$wB//oGDHfkt6w85jZ86MEunE9C65oaMH/nybahEBcdxs02ExSea/."], ["updated_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (8.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (11.3ms) 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", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:30:01 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (12.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" ("authentication_token")  (10.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.4ms) 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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (7.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:30:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:30:01 -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 (4.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 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 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 7]] Completed 422 Unprocessable Entity in 11ms (Views: 0.3ms | ActiveRecord: 6.8ms) 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.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  (64.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  (10.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.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (19.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (7.1ms) 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  (1.0ms) BEGIN  (4.3ms) SAVEPOINT active_record_1 SQL (16.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 22:33:49 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$a9fL2a1E6mSWPpeyg5HEy.Yr8uud0Hvx2nedGjKurbnvOUdNkeA0G"], ["updated_at", Thu, 11 Jul 2013 22:33:49 UTC +00:00]]  (9.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:49 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:33:49 UTC +00:00]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) 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 22:33:49 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:33:49 UTC +00:00], ["user_id", 1]]  (2.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (8.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.5ms) 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")  (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)  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.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)   (0.9ms) 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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:33:49 -0500  (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.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  (17.1ms) ROLLBACK  (0.8ms) 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", Thu, 11 Jul 2013 22:33:49 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$ep1PZiYfF9aB0jt64AkeIOwf.GZBggl4XYhs3QxG5plGna96e.L9K"], ["updated_at", Thu, 11 Jul 2013 22:33:49 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" = 'test2' 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", Thu, 11 Jul 2013 22:33:49 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:33:49 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (11.3ms) 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 22:33:49 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:33:49 UTC +00:00], ["user_id", 2]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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)  (1.0ms) 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")  (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)   (7.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.3ms) 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)   (8.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.5ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:33:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 132ms (Views: 10.7ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:33:50 -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 (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') 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" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 2]] Completed 422 Unprocessable Entity in 18ms (Views: 0.4ms | ActiveRecord: 1.7ms) 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  (14.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (6.1ms) 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.6ms) ROLLBACK  (1.4ms) 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", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$mNhmnh5D6wczczdxlFBuIORY/emcinA0Nw41KJhzSIftZvuTBZzG6"], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (2.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00]]  (2.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", 3], ["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["user_id", 3]]  (2.5ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test3"  (25.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.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) 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)  (1.3ms) 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"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$Y38S2LL3nVnMIXsCEAh14.oh0eKjXhnHJcQv.a7nSskpOqdfKwo2C"], ["updated_at", Thu, 11 Jul 2013 22:33:50 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", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00]]  (0.3ms) 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", 4], ["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:33:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:33:50 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (3.2ms) 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" = 'user4@example.com' LIMIT 1 [["account_id", 3]] Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 3.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.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  (51.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (10.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  (16.6ms) ROLLBACK  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$n1i0zuL0XrJyeOXNc3zb/OjhkHhRpKXXtNi6tzJ.81ofh0aeIbG7G"], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (8.2ms) 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", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["user_id", 5]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (18.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)  (6.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")  (9.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)   (3.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("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.8ms) 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.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.0ms) 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 17:33:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:33:50 -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 (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') 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" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 5]] Completed 422 Unprocessable Entity in 9ms (Views: 0.3ms | ActiveRecord: 1.8ms) Cadenero::V1::Account Load (2.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  (25.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  (12.8ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$xUI5XBT.kaTVzLCP2nRatO7BGnSwLDJSz78uCG5i49u18AucSY8mS"], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00]]  (1.2ms) 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" = '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", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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", 6], ["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["user_id", 6]]  (2.8ms) RELEASE SAVEPOINT active_record_1  (16.4ms) CREATE SCHEMA "test6"  (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)  (5.5ms) 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.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)   (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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)   (4.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:33:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:33:50 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.2ms) 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" = 'user6@example.com' LIMIT 1 [["account_id", 6]] Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Cadenero::V1::Account Load (10.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] 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", 6]] Completed 201 Created in 81ms (Views: 55.5ms | ActiveRecord: 15.5ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:33:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 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.8ms) 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  (7.2ms) ROLLBACK  (0.5ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$S/sF6Fe1PFU7aRQwrmP.dOp2w7gGWvA7sCwt3uwx.TJnehI0ImHD."], ["updated_at", Thu, 11 Jul 2013 22:33:50 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", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 7], ["created_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:33:50 UTC +00:00], ["user_id", 7]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (16.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.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)   (5.8ms) 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.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)   (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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:33:50 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@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 ('test7') 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 [["account_id", 7]] Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 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 (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" = $1 [["user_id", 7]] Completed 201 Created in 20ms (Views: 6.2ms | ActiveRecord: 4.9ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:33:51 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"7", "default"=>:json} Cadenero::User Load (2.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 2.8ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:33:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (1.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  (11.7ms) 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  (7.5ms) ROLLBACK  (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  (5.3ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (18.9ms) 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  (0.1ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 SQL (12.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 22:37:26 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$SugQjYd8fe.4ucgka8IfYe6dYKSlYYxJdgTdD1lwi4RT3vhH/siBm"], ["updated_at", Thu, 11 Jul 2013 22:37:26 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (13.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:37:26 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:37:26 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Thu, 11 Jul 2013 22:37:26 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:37:26 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.6ms) CREATE SCHEMA "test1"  (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)   (6.9ms) 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")  (5.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)  (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) 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"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:37:27 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 132ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:37:27 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Completed 500 Internal Server Error in 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  (44.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  (15.3ms) ROLLBACK  (1.5ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$.0mBnxvlaw.ZDhYmTyBAtez2Vd8lb1jXqPvxlugEYA.sCz1HMqI1O"], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.2ms) 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.2ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.1ms) 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 22:37:27 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test2"  (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)  (7.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")  (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)   (1.2ms) 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")  (9.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)  (6.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (10.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.6ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:37:27 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Completed 500 Internal Server Error in 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  (60.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  (10.4ms) ROLLBACK  (2.4ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$IZC8TAUmdjX5C7ndzHt6KOLOby/39JayQg4M9ol4Ibiii4fw65bM2"], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00]]  (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", 3], ["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (12.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")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.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)  (10.3ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) 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 22:37:27 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$MVc.f9N1aYoWhYSuBWrJ3eyiBtZ9i2vBu.ex2j8AhiVnN.xgMKImm"], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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 (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.6ms) 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", 4], ["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:37:27 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:37:27 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Completed 500 Internal Server Error in 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  (12.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  (12.3ms) ROLLBACK  (16.6ms) 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 22:37:27 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$eF7n7KDmdgYTpKdS1ygTk.y6gbZ6oODX9zokEmc55tfe3xT.P6Gjm"], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00]]  (0.8ms) 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", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) SAVEPOINT active_record_1 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", 5], ["created_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["user_id", 5]]  (2.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (13.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (5.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:37:27 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:37:27 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Completed 500 Internal Server Error in 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  (17.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  (14.9ms) ROLLBACK  (0.1ms) 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 22:37:27 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$Af3ChVB45O.kcC5qViw/w.NlDZl9NkSjwf.1Jdo.3EvHS/k0e9vh6"], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) 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", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:37:27 UTC +00:00], ["user_id", 6]]  (3.5ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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)   (4.1ms) 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")  (6.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.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (13.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.6ms) 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 ('20130612073709')  (0.4ms) 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 17:37:27 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:37:27 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Completed 500 Internal Server Error in 1ms  (2.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.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  (11.1ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:37:28 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$CPtBqrOZhDPnW2BLYGLzjexMtyfUgDo9.1AihfumNLYr6lxi6yCci"], ["updated_at", Thu, 11 Jul 2013 22:37:28 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Thu, 11 Jul 2013 22:37:28 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:37:28 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 7], ["created_at", Thu, 11 Jul 2013 22:37:28 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:37:28 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test7"  (9.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")  (8.9ms) 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)   (10.1ms) 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")  (11.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.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:37:28 -0500  (0.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.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  (19.0ms) 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.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.8ms) 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.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (56.6ms) 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 22:38:04 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$lF6E8xLv/uo9Uog5l/bxde3SjULE7hNmRBDCegxWrjNTLQlpwLh6a"], ["updated_at", Thu, 11 Jul 2013 22:38:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Thu, 11 Jul 2013 22:38:04 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:38:04 UTC +00:00]]  (0.2ms) 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 22:38:04 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:38:04 UTC +00:00], ["user_id", 1]]  (7.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (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.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.9ms) 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)  (3.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (4.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:38:05 -0500  (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  (23.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  (23.2ms) ROLLBACK  (10.3ms) 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", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$yIBRDfZQisW8gSvSsWlP1.Y5xTwvi4JAYhGhk1AA4lq89GxotX87O"], ["updated_at", Thu, 11 Jul 2013 22:38:05 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" = 'test2' LIMIT 1 SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (4.7ms) SAVEPOINT active_record_1 SQL (3.5ms) 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 22:38:05 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["user_id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test2"  (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)  (4.7ms) 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)   (2.8ms) 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")  (6.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.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 ('20130612073709')  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:38:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 87ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:38:05 -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 (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (4.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" = 'foo@example.com' LIMIT 1 [["account_id", 2]] Completed 422 Unprocessable Entity in 51ms (Views: 0.4ms | ActiveRecord: 5.1ms) 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  (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  (7.4ms) ROLLBACK  (1.0ms) BEGIN  (4.2ms) SAVEPOINT active_record_1 SQL (4.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 22:38:05 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$TO0DLIvKdQ1yCGMiO/R.oOnq6n9NpMhxHeBGAcLf9GLijKiwr7vUu"], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00]]  (0.6ms) 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.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.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", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["user_id", 3]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.9ms) CREATE SCHEMA "test3"  (11.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)  (3.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) 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)  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:38:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:38:05 -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 ('test3') 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" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 3]] Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (28.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 3]] Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 3]] Completed 201 Created in 82ms (Views: 36.8ms | ActiveRecord: 37.4ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:38:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (3.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 3.4ms)  (9.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  (13.2ms) 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.1ms) ROLLBACK  (0.8ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$jHTdA84tZpAgPkuAp7yt0uxHp0Y2L04RB5ucuVzw8r.wPId46hSne"], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00]]  (0.4ms) 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.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00]]  (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", 4], ["created_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test4"  (7.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")  (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)   (1.5ms) 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")  (14.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)   (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 ('20130612073709')  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:38:05 -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 (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 4]] Cadenero::User Load (7.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::V1::Account Load (0.6ms) 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: 5.5ms | ActiveRecord: 10.4ms) Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:38:05 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"4", "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) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:38:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (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  (22.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  (9.3ms) ROLLBACK  (5.0ms) 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", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$vL7.7DYKYAzmqmiKOntkeelUHWFFM0yefXaOcJggMn2UoN26MFPoe"], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00]]  (0.9ms) 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" = '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", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00]]  (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", 5], ["created_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:38:05 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test5"  (24.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)  (6.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (7.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:38:06 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$zn0zrHXYd0xmzmiZTpRn/uPhymvHlh8txU9zPSvhhCvF82C8YvvYm"], ["updated_at", Thu, 11 Jul 2013 22:38:06 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" = '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", Thu, 11 Jul 2013 22:38:06 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:38:06 UTC +00:00]]  (10.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) 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", 6], ["created_at", Thu, 11 Jul 2013 22:38:06 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:38:06 UTC +00:00], ["user_id", 6]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:38:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:38:06 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@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" IN ('test5') 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" = $1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 5]] Completed 422 Unprocessable Entity in 6ms (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" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.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  (12.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  (17.6ms) ROLLBACK  (0.1ms) BEGIN  (1.0ms) 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 22:38:06 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$Rqk3HdmGfwODNK8HQvVOReer98ecUVyMbWXtBRtqWt9E5DcfD/2P2"], ["updated_at", Thu, 11 Jul 2013 22:38:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 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", Thu, 11 Jul 2013 22:38:06 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:38:06 UTC +00:00]]  (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", Thu, 11 Jul 2013 22:38:06 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:38:06 UTC +00:00], ["user_id", 7]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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)  (2.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (20.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)   (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (6.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:38:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:38:06 -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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 7]] Completed 422 Unprocessable Entity in 24ms (Views: 0.4ms | ActiveRecord: 2.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  (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  (30.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  (7.0ms) 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.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (19.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  (0.4ms) BEGIN  (1.9ms) SAVEPOINT active_record_1 SQL (9.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 22:39:13 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$TFhtynqRmEv76zFaoZVylerKxYU6DkVik.IjuWouRGWNSPIBW4rhO"], ["updated_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 1], ["created_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) CREATE SCHEMA "test1"  (6.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)   (4.0ms) 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")  (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)  (3.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.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)  (3.2ms) 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 ('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 17:39:13 -0500  (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.2ms) 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  (42.3ms) ROLLBACK  (13.4ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$l70g0ILr9DgC3SxC7XRx7OQ/befF0CZmscLP9ONrGaRxpg5m9ePpa"], ["updated_at", Thu, 11 Jul 2013 22:39:13 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.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.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", 2], ["created_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["user_id", 2]]  (3.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (20.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)  (2.8ms) 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")  (9.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)   (3.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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 17:39:13 -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.6ms) 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" = $1 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 [["account_id", 2]] Cadenero::User Load (0.7ms) 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" = $1 [["owner_id", 2]] Cadenero::V1::Account Load (2.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", 2]] Completed 201 Created in 152ms (Views: 55.6ms | ActiveRecord: 6.4ms) Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:39:13 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"2", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:39:13 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (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  (17.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  (9.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$IxtkVyOstdMXGfUCnQvt6OaA0ejbCvugX60EVPby9N6V5WDLawb7y"], ["updated_at", Thu, 11 Jul 2013 22:39:13 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.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00]]  (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", 3], ["created_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:39:13 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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" ("authentication_token")  (1.3ms) 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)   (5.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.9ms) 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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.4ms) 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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:39:13 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:39:13 -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 ('test3') 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 (5.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 3]] 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", 3]] Completed 201 Created in 41ms (Views: 22.3ms | ActiveRecord: 11.1ms) Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:39:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.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  (13.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.3ms) ROLLBACK  (0.5ms) BEGIN  (0.6ms) 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 22:39:14 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$e4cuEI9IA1rPfIWUdc/3uubce3TNX0Jg92DNX6s0GVXXvNNJRi11u"], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.8ms) 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", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (8.6ms) 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", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["user_id", 4]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (8.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.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.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)   (2.5ms) 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")  (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)  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) 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')  (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 22:39:14 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$nyyI55KL2dpU/OPSz.nU1.OAzryIjioOR6HmV4eW6geyPHbruytIe"], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' 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", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 5], ["created_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:39:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:39:14 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@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" IN ('test4') LIMIT 1 Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 [["account_id", 4]] Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' 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.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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  (6.3ms) ROLLBACK  (3.8ms) BEGIN  (6.0ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$3wuXIt32xcYS1VyW14Z.6etKMBC8Tf3yCy4x4d3kyjdzd0X6xN77m"], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' 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", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00]]  (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", 6], ["created_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["user_id", 6]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (12.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.3ms) 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.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)   (5.7ms) 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")  (11.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)   (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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:39:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:39:14 -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 (5.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') 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", 6]] Completed 422 Unprocessable Entity in 12ms (Views: 0.4ms | ActiveRecord: 6.6ms) 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  (9.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  (15.4ms) ROLLBACK  (3.1ms) 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", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$mUay7cIYp0ovluzHEZiCNeB4dfAcS38a/xbACUko3/RH303vynK/S"], ["updated_at", Thu, 11 Jul 2013 22:39:14 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" = '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", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.7ms) 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", 7], ["created_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:39:14 UTC +00:00], ["user_id", 7]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (7.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.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (6.1ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:39:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:39:14 -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 (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" = 'foo@example.com' LIMIT 1 [["account_id", 7]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) 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  (24.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (5.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  (7.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.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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.7ms) SAVEPOINT active_record_1 SQL (11.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 22:40:25 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$kmteqQC3oJNNyoxbJ3TD7..gBPPzEY69WyFAwnUT9.ed/kCi8YqqC"], ["updated_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00]]  (1.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.2ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00]]  (5.0ms) 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 22:40:25 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["user_id", 1]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test1"  (8.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)   (4.8ms) 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.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)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.3ms) 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.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (3.4ms) SAVEPOINT active_record_1 SQL (5.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$k4OHQd0kcFtZ7CAIJyXwlOn.5xc0fejhBiL.C3pz655/c5Z8SkhPa"], ["updated_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00]]  (5.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (7.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 2], ["created_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["user_id", 2]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:40:25 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 116ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:40:25 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (1.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" = 'user2@example.com' LIMIT 1 [["account_id", 1]] Completed 422 Unprocessable Entity in 18ms (Views: 0.6ms | ActiveRecord: 3.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  (2.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  (23.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.1ms) 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.3ms) ROLLBACK  (0.8ms) 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 22:40:25 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$8JRPRzB0kCX5wQmmuPGR1OwVNR.2mjA6FrpQ.bqaNkXDPufOlrU36"], ["updated_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.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", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:40:25 UTC +00:00], ["user_id", 3]]  (4.6ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test3"  (13.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.3ms) 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")  (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.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.5ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-11 17:40:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:40:26 -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", 3]] Cadenero::User Load (3.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 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 (4.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", 3]] Completed 201 Created in 91ms (Views: 72.9ms | ActiveRecord: 10.3ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:40:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (2.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Completed 200 OK in 9ms (Views: 0.2ms | ActiveRecord: 2.7ms)  (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  (16.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.4ms) ROLLBACK  (1.3ms) BEGIN  (1.9ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$ChTQwZFAEItrGkSdmA8l7ODFV3y/0bnvDIWw4tXuasMAq/JnSLldi"], ["updated_at", Thu, 11 Jul 2013 22:40:26 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" = 'test4' LIMIT 1 SQL (5.2ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["user_id", 4]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test4"  (15.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" ("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)  (1.4ms) 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")  (8.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)  (1.5ms) 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 ('20130612073709')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:40:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:40:26 -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 ('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 [["account_id", 4]] 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  (18.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  (26.3ms) ROLLBACK  (0.4ms) 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 22:40:26 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$Gih0a4G7V8NKvlEP2iGWJOA7NJyfjcHT9jwItRy.Pn9/5AP3qZVEG"], ["updated_at", Thu, 11 Jul 2013 22:40:26 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.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00]]  (0.2ms) 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", 5], ["created_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["user_id", 5]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test5"  (10.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.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (12.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.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.8ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:40:26 -0500  (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  (7.7ms) ROLLBACK  (0.8ms) BEGIN  (0.5ms) 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 22:40:26 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$FGZyLoGwyEHK19JrA/xae.eKmuMlLgq1aa.bJGtGlSQSIIC3PGjSW"], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (22.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (4.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00]]  (5.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 6], ["created_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["user_id", 6]]  (1.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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)  (2.5ms) 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.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)   (2.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) 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)  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:40:26 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') 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", 6]] Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] Cadenero::V1::Account Load (5.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", 6]] Completed 201 Created in 23ms (Views: 6.7ms | ActiveRecord: 9.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:40:26 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"6", "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 5ms (Views: 0.6ms | ActiveRecord: 0.6ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:40:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (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.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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  (14.6ms) ROLLBACK  (1.4ms) BEGIN  (4.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", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$A2.Im4p88e4i75Uk6dSBoOeOt6V5btRguoSc1ELzq5VWFuOTl7A5C"], ["updated_at", Thu, 11 Jul 2013 22:40:26 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" = 'test7' 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", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00]]  (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", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:40:26 UTC +00:00], ["user_id", 7]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) CREATE SCHEMA "test7"  (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.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (14.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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.6ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:40:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:40:26 -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 ('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" = 'foo@example.com' LIMIT 1 [["account_id", 7]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (1.0ms) 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  (17.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  (9.2ms) ROLLBACK  (1.1ms) 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'  (22.3ms) 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.2ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 SQL (21.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 22:43:39 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$E/HEKzoY8bApfOZT/9K3UOa4WPtcEjWMgrhq1ksYhFnKVIjsVYxMi"], ["updated_at", Thu, 11 Jul 2013 22:43:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:43:39 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:43:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) SAVEPOINT active_record_1 SQL (1.7ms) 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 22:43:40 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["user_id", 1]]  (5.9ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (10.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.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (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)   (10.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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:43:40 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 207ms (Views: 0.5ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:43:40 -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.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (20.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" = 'user1@example.com' LIMIT 1 [["account_id", 1]] Cadenero::User Load (3.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 1]] Cadenero::V1::Account Load (5.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 1]] Completed 201 Created in 96ms (Views: 39.0ms | ActiveRecord: 30.5ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:43:40 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 1.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  (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  (32.0ms) ROLLBACK  (0.7ms) BEGIN  (0.7ms) 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", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$geBeyqxLftybAJ41AAYgEengTSeNIx0X4mOimopZAfvBt6Sa.cPPq"], ["updated_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00]]  (0.8ms) 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", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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" ("authentication_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.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)  (1.6ms) 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")  (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)   (6.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (9.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 ('20130612073709')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$RqZrIJagCdil2XgFBDHaIOdhLC9j1YADTvbyfdXQe49oHhD6JLs4O"], ["updated_at", Thu, 11 Jul 2013 22:43:40 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" = 'test3' 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", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.5ms) 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", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["user_id", 3]]  (1.9ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:43:40 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:43:40 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (1.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 2]] Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | 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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.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  (43.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  (7.9ms) ROLLBACK  (7.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$fviqrWENeARlFhBpLZFT4eY8yp.hLGIRZC08lGOlKZmuvFwCvyXAe"], ["updated_at", Thu, 11 Jul 2013 22:43:40 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" = '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", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 4], ["created_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:43:40 UTC +00:00], ["user_id", 4]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.9ms) CREATE SCHEMA "test4"  (9.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.3ms) 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")  (5.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)  (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.1ms) 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)   (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:43:40 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:43:40 -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.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') 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 [["account_id", 4]] Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 2.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  (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  (28.0ms) 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  (8.0ms) ROLLBACK  (0.9ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$/5QAfUtjOAS4aMRA.zAK9OfY5ESXW.oVJOzu1gSL4jPnzRsteT3xO"], ["updated_at", Thu, 11 Jul 2013 22:43:41 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.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00]]  (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", 5], ["created_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) 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)  (0.9ms) 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")  (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)  (2.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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:43:41 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@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.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.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", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$oz4CoAWOhvm.944UMJe1ueItTPTQFKgyAdKLZNZI0IwZwfHh18GKy"], ["updated_at", Thu, 11 Jul 2013 22:43:41 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", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00]]  (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", 6], ["created_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (6.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)  (5.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("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)   (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.8ms) SELECT version FROM "schema_migrations"  (0.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 GET "/v1" for 127.0.0.1 at 2013-07-11 17:43:41 -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 17:43:41 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (3.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", 6]] Completed 422 Unprocessable Entity in 12ms (Views: 0.3ms | ActiveRecord: 6.5ms) 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.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  (40.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  (8.8ms) ROLLBACK  (0.1ms) BEGIN  (18.4ms) 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 22:43:41 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$g/PYpTxI.VEgaobxmgqxW.CFSo73dX0ZOhrXV.H8eyovqj0bREUVW"], ["updated_at", Thu, 11 Jul 2013 22:43:41 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", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00]]  (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", 7], ["created_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:43:41 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (10.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)   (6.7ms) 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")  (6.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)  (5.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (15.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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:43:41 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (5.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') 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" = 'user7@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" = 7 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 7]] 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" = $1 [["user_id", 7]] Completed 201 Created in 83ms (Views: 67.8ms | ActiveRecord: 8.8ms) Cadenero::V1::Account Load (5.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:43:41 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"7", "default"=>:json} Cadenero::User Load (1.2ms) 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.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:43:41 -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)  (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.5ms) 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  (9.7ms) 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.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (11.1ms) 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.1ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 SQL (9.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 22:44:20 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$Y0evq7kRoR98DBgEWdx8a.vz47UVQSLxGbrjpoNBX6IPPxQ0K/G2i"], ["updated_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00]]  (13.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (2.7ms) 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 22:44:20 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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)   (12.3ms) 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")  (15.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)  (5.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) SAVEPOINT active_record_1 SQL (3.7ms) 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 22:44:20 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$r0h3uWeH4Ir8haEBKHy70.W8qr.6tUbmIyOHkemirHNps8kVYOsrK"], ["updated_at", Thu, 11 Jul 2013 22:44:20 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" = '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", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 2], ["created_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["user_id", 2]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:20 -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 107ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:20 -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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (3.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" = 'user2@example.com' LIMIT 1 [["account_id", 1]] Completed 422 Unprocessable Entity in 20ms (Views: 0.7ms | ActiveRecord: 4.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  (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  (39.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.1ms) ROLLBACK  (0.6ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$WTfybG.4I.cuDuqzj9JnIeJeMDmY0S46uayuwYae/Rki6HPcpab0K"], ["updated_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:44:20 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", 3], ["created_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:20 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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)   (24.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")  (15.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)  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.5ms) 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.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (5.2ms) 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.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 17:44:21 -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 (2.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", 3]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 3]] Cadenero::V1::Account Load (6.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", 3]] Completed 201 Created in 66ms (Views: 42.4ms | ActiveRecord: 11.1ms) Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:21 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"3", "default"=>:json} Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 1.0ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 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  (23.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  (8.1ms) ROLLBACK  (0.6ms) BEGIN  (1.8ms) SAVEPOINT active_record_1 SQL (5.6ms) 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 22:44:21 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$hGEmW6cl0of/4q5q2cXYBO.D4LzsRICjplXncdBpzZEHHMoy8lOAG"], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (7.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.3ms) 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", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00]]  (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", 4], ["created_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) 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)   (3.5ms) 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")  (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)  (1.8ms) 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")  (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)   (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.3ms) 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 ('20130612073709')  (0.2ms) 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 17:44:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44: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 (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 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 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 4]] Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' 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  (101.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  (7.9ms) ROLLBACK  (2.4ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$S/dx7llYIeQk4EwKVyqq7.GKCp/SBVBWjQVsLxwX7J53RGdrPdHz2"], ["updated_at", Thu, 11 Jul 2013 22:44:21 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" = 'test5' 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", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00]]  (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", 5], ["created_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["user_id", 5]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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)   (7.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.5ms) 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.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) 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 17:44:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (5.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" = 'user5@example.com' LIMIT 1 [["account_id", 5]] Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 5]] 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", 5]] Completed 201 Created in 21ms (Views: 5.8ms | ActiveRecord: 7.9ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 1.2ms)  (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  (25.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.8ms) ROLLBACK  (1.1ms) BEGIN  (0.8ms) 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 22:44:21 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$rDEKIBW3Q4f6nzJzzO8JQui1bed0rikTrJJwAqWtC4aV8NpB7l4Wa"], ["updated_at", Thu, 11 Jul 2013 22:44:21 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", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["user_id", 6]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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)   (1.1ms) 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")  (5.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)  (5.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (8.7ms) 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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (5.7ms) SELECT version FROM "schema_migrations"  (5.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 GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44: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 ('test6') LIMIT 1 Cadenero::User Load (2.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 6]] Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 2.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  (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  (13.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  (9.6ms) ROLLBACK  (0.3ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$pdLyF2ZR7VFYmeNTr9ZGr.wZh1/2Hj.wa9mYdA3n6s8VBh2K3U9Am"], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.3ms) 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", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00]]  (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", 7], ["created_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:21 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test7"  (7.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.4ms) 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")  (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)  (4.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.7ms) 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)   (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:21 -0500 Cadenero::V1::Account Load (5.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@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  (25.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  (10.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  (5.3ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (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  (1.0ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 SQL (78.8ms) 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 22:44:37 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$sO6rgkpUmf5J.PWdEChHhOQEj/aE.M7mld4EzvHAJA8pep4GzdoKK"], ["updated_at", Thu, 11 Jul 2013 22:44:37 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:37 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:44:37 UTC +00:00]]  (0.2ms) 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", 1], ["created_at", Thu, 11 Jul 2013 22:44:37 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:37 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (11.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.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:37 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 44ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44: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 (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (2.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" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 1]] Completed 422 Unprocessable Entity in 56ms (Views: 0.4ms | ActiveRecord: 3.7ms) Cadenero::V1::Account Load (2.2ms) 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  (32.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.6ms) ROLLBACK  (2.0ms) BEGIN  (1.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", Thu, 11 Jul 2013 22:44:37 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$TrQYZpAB2/B6S8N.vMRuje2zddAe5pvrhZw7Pj/jzmUQMNuO65pfe"], ["updated_at", Thu, 11 Jul 2013 22:44: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" = 'test2' LIMIT 1 SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:37 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:44:37 UTC +00:00]]  (1.0ms) 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", Thu, 11 Jul 2013 22:44:37 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:37 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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)   (1.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.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)  (5.7ms) 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")  (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)  (2.0ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:37 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') 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" = 'user2@example.com' LIMIT 1 [["account_id", 2]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 2]] Cadenero::V1::Account Load (3.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 [["user_id", 2]] Completed 201 Created in 118ms (Views: 101.5ms | ActiveRecord: 7.8ms) Cadenero::V1::Account Load (9.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:38 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"2", "default"=>:json} Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 1.1ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (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  (13.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  (9.0ms) ROLLBACK  (2.1ms) BEGIN  (1.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 22:44:38 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$HWhsqhi649u9Z/ypUBbxx.Ekf/d2Zssd./6iiCw6WbnknNeUmldti"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (4.4ms) RELEASE SAVEPOINT active_record_1  (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" = 'test3' 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", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (9.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", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["user_id", 3]]  (2.6ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test3"  (21.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.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")  (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)  (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) 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)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.6ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:38 -0500 Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@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  (7.8ms) ROLLBACK  (0.4ms) 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", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$7MGmQJXcGhrU1NcjOTTut.dqq1U0wNPPJIi2V0imQYu164wPyQ1PO"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (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", 4], ["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["user_id", 4]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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.4ms) 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.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)  (1.6ms) 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")  (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)   (16.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (6.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.8ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) 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 17:44:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:38 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.8ms) 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" = 'user4@example.com' LIMIT 1 [["account_id", 4]] Cadenero::User Load (10.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::V1::Account Load (5.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] 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", 4]] Completed 201 Created in 35ms (Views: 6.5ms | ActiveRecord: 20.8ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.6ms) 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.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  (20.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  (9.8ms) ROLLBACK  (0.9ms) BEGIN  (0.6ms) 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 22:44:38 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$Yvzzo7LE9dn5ffm1Zf3bQeE9dMKwnAaT6Qg2e6Evq8mp3UlSPJq5y"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' 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", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (10.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)   (16.1ms) 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")  (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.5ms) 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")  (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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.7ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$aGPLrab9rhLMDci43cqrReb0kNvbs.6N.fJ8ifcSj0u5x3rJKp1HK"], ["updated_at", Thu, 11 Jul 2013 22:44: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" = 'test6' LIMIT 1 SQL (1.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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", 6], ["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:38 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.8ms) 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" = 'user6@example.com' LIMIT 1 [["account_id", 5]] Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | 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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (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  (31.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  (7.5ms) ROLLBACK  (1.2ms) BEGIN  (1.3ms) 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", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$pmK6WphOYbDCucFzmMkkJ.Utj3sfOkVjm1o/7gLiTPg5q9Wq.uUD2"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (8.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' 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", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) 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", 7], ["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["user_id", 7]]  (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)   (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")  (8.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)  (8.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.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)   (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.7ms) SELECT version FROM "schema_migrations"  (0.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 GET "/v1" for 127.0.0.1 at 2013-07-11 17:44:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:44:38 -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 ('test7') LIMIT 1 Cadenero::User Load (3.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" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 7]] Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | 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' 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  (13.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  (8.8ms) ROLLBACK  (0.9ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:44: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}  (1.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.8ms) 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", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$9/fKQeNE5ZEuYl8kl69C0ObEjS.RnvJwgMvVuYjYxHet/rUwe3Hyu"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]] SQL (1.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["name", "Testy"], ["owner_id", 8], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 8) LIMIT 1  (0.2ms) CREATE SCHEMA "test"  (15.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)  (6.2ms) 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")  (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)   (3.0ms) 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")  (5.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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'duDdwjihWvH52Ew22iRW' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 8 [["authentication_token", "duDdwjihWvH52Ew22iRW"], ["updated_at", Thu, 11 Jul 2013 22:44:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 110ms (Views: 1.5ms | ActiveRecord: 72.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.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  (13.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.7ms) ROLLBACK  (1.2ms) 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", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$xBgtey5omfAHMGx2Qlnub.ojeBgUkOGD7Ji5ZO/MCf7zbp0Qs5isO"], ["updated_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00]] SQL (2.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["name", "Testy"], ["owner_id", 9], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:44:39 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.9ms) 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 26ms (Views: 0.4ms | ActiveRecord: 4.0ms) Cadenero::V1::Account Load (3.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (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  (21.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  (4.2ms) ROLLBACK  (0.8ms) BEGIN Cadenero::V1::Account Exists (1.1ms) 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  (24.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  (7.9ms) ROLLBACK  (1.2ms) 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  (11.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (6.6ms) ROLLBACK  (2.4ms) BEGIN  (1.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$lkBR8xcnZhKorAWgWZfVV.9E0m4/WDNLF6p/7SEXCEZzim3O0BguC"], ["updated_at", Thu, 11 Jul 2013 22:44:39 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", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["name", "Test Account"], ["owner_id", 10], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["user_id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 10]]  (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.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  (6.2ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (1.0ms) 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  (29.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.1ms) 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.8ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 10ms (Views: 9.5ms | 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  (49.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.3ms) ROLLBACK  (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.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.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  (14.3ms) ROLLBACK  (2.6ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$pb5nTkDBBFqT.CqyTAWX9.CpzXqo1WRy/sbarPQmHdoAilqVFwQ7S"], ["updated_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00]]  (0.7ms) 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" = 'test8' LIMIT 1 SQL (1.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 11], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 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", 11], ["created_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (23.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.3ms) 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")  (5.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)  (6.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.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 ('20130612073709')  (0.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 17:44:39 -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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$s324UJN/RNaT/KDcgWS4rOym3lHRn3c.8hGYrQdI3xsBx1DvVbXlC"], ["updated_at", Thu, 11 Jul 2013 22:44:39 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", 11], ["created_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:39 UTC +00:00], ["user_id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 12 LIMIT 1 Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 12]] 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", 12]] Completed 201 Created in 27ms (Views: 7.8ms | ActiveRecord: 7.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  (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  (33.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  (10.4ms) ROLLBACK  (0.5ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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", Thu, 11 Jul 2013 22:44:42 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$kRaW4BJB3J6yU7UYgTHFOeOCY13QAvGWOBOnRQFQzWvVz5DDoWdxy"], ["updated_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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" = '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", Thu, 11 Jul 2013 22:44:42 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 13], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00]]  (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", 12], ["created_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00], ["user_id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$KqjI8HzO8lZ0mCEphi3yP.324GHFjTt8FdK1mDFXwmIwFx31aQnoi"], ["updated_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$jDMPyMFbHKa2OLAGFo9kvOC7fxmalz2WBIaOzMTj.2fjZFPQe.EQK"], ["updated_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Thu, 11 Jul 2013 22:44:42 UTC +00:00], ["name", "Root"], ["owner_id", 15], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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.2ms) 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)  (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")  (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.8ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zpMs3YiQot3SVsqEYSMx' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 13 [["authentication_token", "zpMs3YiQot3SVsqEYSMx"], ["updated_at", Thu, 11 Jul 2013 22:44:42 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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  (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  (5.2ms) 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.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.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  (2.5ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:45:05 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (9.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 22:45:05 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$EiPwUN.iRf3VeY5IVAoUj.1IR/fkcPBVySs6e8vXbPO1DL4ZXNZf6"], ["updated_at", Thu, 11 Jul 2013 22:45:05 UTC +00:00]] SQL (5.2ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:45:05 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:45:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.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 22:45:05 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:45:05 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (0.3ms) CREATE SCHEMA "test"  (9.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)  (2.4ms) 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")  (5.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)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'AztsLP7egkyGRNKXSoZz' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 1 [["authentication_token", "AztsLP7egkyGRNKXSoZz"], ["updated_at", Thu, 11 Jul 2013 22:45:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 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 [["account_id", 1]] Completed 201 Created in 553ms (Views: 21.8ms | ActiveRecord: 135.1ms) 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  (25.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  (9.8ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.1ms) 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 22:45:05 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$hMiguTg4iGFTwdPf.2/EQOXurXNA73QvW9Bz.pdi.VwQ8..72bjKW"], ["updated_at", Thu, 11 Jul 2013 22:45:05 UTC +00:00]] SQL (10.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:45:05 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:45:05 UTC +00:00]]  (2.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:45:05 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (1.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (1.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 39ms (Views: 0.3ms | ActiveRecord: 5.6ms) Cadenero::V1::Account Load (0.9ms) 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.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (3.0ms) ROLLBACK  (1.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  (2.8ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:45:49 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (8.9ms) 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 SQL (12.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 22:45:50 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$z/T6IoOsjtakozrV5AV/fuWXraBK3YAc/BrynrSOhCFsq07PNrG6a"], ["updated_at", Thu, 11 Jul 2013 22:45:50 UTC +00:00]] 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", Thu, 11 Jul 2013 22:45:50 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:45:50 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) 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 22:45:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:45:50 UTC +00:00], ["user_id", 1]]  (1.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (0.4ms) CREATE SCHEMA "test"  (25.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.9ms) 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")  (5.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)   (3.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.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.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (7.0ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'q3kxVN7ahDaGX1UJ8x6S' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (2.5ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 1 [["authentication_token", "q3kxVN7ahDaGX1UJ8x6S"], ["updated_at", Thu, 11 Jul 2013 22:45:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::User Load (11.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1]] Completed 201 Created in 613ms (Views: 29.4ms | ActiveRecord: 194.5ms) Cadenero::V1::Account Load (1.7ms) 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  (18.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  (11.4ms) ROLLBACK  (0.2ms) BEGIN  (1.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:45:50 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$DlPoErhnSkcAObh8yc6uZOInSmfLjj6qyuCfehCc9pPvb5pltPZ4K"], ["updated_at", Thu, 11 Jul 2013 22:45:50 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", Thu, 11 Jul 2013 22:45:50 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:45:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:45:50 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.5ms) 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  (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 30ms (Views: 1.2ms | ActiveRecord: 1.5ms) Cadenero::V1::Account Load (4.1ms) 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  (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  (3.0ms) ROLLBACK  (8.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  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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  (3.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 500 Internal Server Error in 174ms  (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.8ms) 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  (7.7ms) ROLLBACK  (2.3ms) BEGIN 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.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  (19.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  (11.1ms) ROLLBACK  (0.3ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:46:11 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (1.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (66.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 22:46:11 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$Fs.Piets0OC0K5tC6Rnc9eWlGxENGXMRBavBjqHodcMm98bulP3E2"], ["updated_at", Thu, 11 Jul 2013 22:46:11 UTC +00:00]] SQL (2.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:11 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:46:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) 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", 1], ["created_at", Thu, 11 Jul 2013 22:46:11 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:11 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (0.7ms) CREATE SCHEMA "test"  (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")  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (13.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)  (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.5ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'HXpUGuM6EEuefGA1mfzg' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.5ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 1 [["authentication_token", "HXpUGuM6EEuefGA1mfzg"], ["updated_at", Thu, 11 Jul 2013 22:46:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 413ms (Views: 1.5ms | ActiveRecord: 147.6ms) 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  (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.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  (28.8ms) ROLLBACK  (7.8ms) BEGIN  (0.5ms) 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", Thu, 11 Jul 2013 22:46:12 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$9jds8rKvZq5Eiku4/BoUC.OM1IcKBj8me4fOQesachZw.Sf.BL2TC"], ["updated_at", Thu, 11 Jul 2013 22:46:12 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", Thu, 11 Jul 2013 22:46:12 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:46: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.3ms) 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  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 89ms (Views: 0.4ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (1.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.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.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  (3.8ms) ROLLBACK  (0.6ms) 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", Thu, 11 Jul 2013 22:46:12 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$2sghLpWAC.Y4nPB/y06pqufnYCAoiYP0hc9iyJQUk/ohS0d9z38fy"], ["updated_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 3], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.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", Thu, 11 Jul 2013 22:46:12 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00], ["user_id", 3]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (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" ("authentication_token")  (1.6ms) 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)  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (9.4ms) 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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 17:46:12 -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  (4.4ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$Q1l78k86xREzf8uZd1Pz7u4UmlXHcD65q/QEVah1NAbiCiQfl2JeO"], ["updated_at", Thu, 11 Jul 2013 22:46:12 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", 3], ["created_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:12 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::V1::Account Load (17.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] 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", 4]] Completed 201 Created in 108ms (Views: 70.8ms | ActiveRecord: 25.7ms) Cadenero::V1::Account Load (3.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  (21.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  (20.8ms) ROLLBACK  (1.8ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (1.1ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.4ms) 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", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$xBDZrqu15yLyhrB6DDBPCe1Mt2YOZ3DBCDL8F88kNIlGu.KrIgATq"], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 5], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 4], ["created_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$vojWuuESmQfBNAUWB0xkmO8U5G7XE.9PUNvEGVSAueu2Ds85qo8tO"], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_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", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$/Vik0Yl1o3UFvYiOytuSZO6oWAy.t0DU1yYdNNHRO/ATJBPNYs69S"], ["updated_at", Thu, 11 Jul 2013 22:46:15 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.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["name", "Root"], ["owner_id", 7], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.7ms) 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)  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZsSmD2gWGTGcXZ7D9rLN' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 5 [["authentication_token", "ZsSmD2gWGTGcXZ7D9rLN"], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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.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  (7.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.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 Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (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.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  (9.0ms) ROLLBACK  (0.1ms) 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.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  (2.9ms) 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 (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 22:46:15 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$rIzuarR43jM6UUPW5rVKdesmIdj1a1Bbeb2kDxfPQOO3Or6GjZzyS"], ["updated_at", Thu, 11 Jul 2013 22:46:15 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", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["name", "Test Account"], ["owner_id", 8], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00]]  (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", 6], ["created_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 6]]  (0.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  (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.1ms) 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", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$uVkPuoSFDjE0MEG2rpGjB.mPP.QjutnM2dzIg4k/WzddUtFpPRrVO"], ["updated_at", Thu, 11 Jul 2013 22:46:15 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", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 9], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00]]  (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", 7], ["created_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:15 UTC +00:00], ["user_id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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.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")  (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)   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) 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)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:46:15 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:46:15 -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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') 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" = '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" = 9 LIMIT 1 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 (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", 9]] Completed 201 Created in 18ms (Views: 6.0ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:46:15 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true 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.2ms | ActiveRecord: 0.4ms)  (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.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.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", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$YQXYYuBU/Drt8VNDfBAGaehEhVihP4cXaxsPVf8dh1ynD2eMYmfeS"], ["updated_at", Thu, 11 Jul 2013 22:46:16 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", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 10], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00]]  (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", 8], ["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["user_id", 10]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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.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")  (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)   (1.2ms) 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")  (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)  (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) 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 ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:46: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 [["account_id", 8]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 10 LIMIT 1 Cadenero::V1::Account Load (0.5ms) 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: 5.4ms | ActiveRecord: 2.7ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:46:16 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"10", "default"=>:json} Cadenero::User Load (0.4ms) 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.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:46:16 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (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  (6.1ms) 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", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$4DXjSOZccVnJfK.tiWM4k.OvxuYbEiyuRE8ldd0putLjy0f.4X69O"], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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" = '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", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 11], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00]]  (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", 9], ["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["user_id", 11]]  (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.2ms) 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)   (1.4ms) 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")  (7.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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$LFHnR1xwVZQysRns0GUvhuWYmV2JowkGBzYusrpwv8ZvkO/zcD1Wa"], ["updated_at", Thu, 11 Jul 2013 22:46:16 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", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 12], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00]]  (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", 10], ["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["user_id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:46:16 -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 17:46:16 -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.5ms) 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" = 'user7@example.com' LIMIT 1 [["account_id", 9]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | 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  (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  (6.6ms) 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", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$xBBuZJiEZB4VS/ZCFIcqFOLxN0Ouny/i9GeQwk9jIoZsE7mc/lboW"], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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" = '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", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 13], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00]]  (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", 11], ["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["user_id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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")  (0.9ms) 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.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)   (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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:46:16 -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 17:46:16 -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 ('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", 11]] 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  (9.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  (4.2ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (6.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 22:46:16 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$TlEucf8VI6hTa4XIVXfQc.aeNwvyX5Ol8THgIoSogXhQI15JzVjH2"], ["updated_at", Thu, 11 Jul 2013 22:46:16 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" = '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", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 14], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00]]  (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", 12], ["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["user_id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (21.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" ("authentication_token")  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.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.7ms) 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")  (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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:46:16 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@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.3ms) 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.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", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$Q2/cs0OvxBNxddzsI4VQHe61SS7zKOE4nk/gexCEprZAE8Enumpp2"], ["updated_at", Thu, 11 Jul 2013 22:46:16 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" = '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", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 15], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00]]  (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", 13], ["created_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:46:16 UTC +00:00], ["user_id", 15]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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.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")  (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.1ms) 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.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.6ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:46:16 -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 17:46:16 -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.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", 13]] 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  (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  (4.7ms) ROLLBACK  (1.1ms) 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.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (18.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (0.2ms) BEGIN Cadenero::V1::Account Exists (4.2ms) 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  (28.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  (4.3ms) ROLLBACK  (0.7ms) 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  (17.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  (6.4ms) 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  (29.1ms) 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  (4.7ms) ROLLBACK  (1.4ms) 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 (3.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 22:47:54 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$8tXDrIkw9b0eSRTlcqn46./xkOrY7uJ0eJt8xqUoLO1lWUrXmdkYe"], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00]] SQL (2.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (10.4ms) 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 22:47:54 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (3.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", 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  (22.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  (2.4ms) ROLLBACK  (1.6ms) 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", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$1/SkQe8LY9BBXnbzY8PsPeBqoMwUGAdw4vNtnA8oIdb9e3pHK04F2"], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00]]  (2.2ms) RELEASE SAVEPOINT active_record_1  (5.1ms) 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 (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", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 2], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:47:54 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", 2], ["created_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["user_id", 2]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (23.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)   (5.3ms) 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")  (13.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)  (2.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) 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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:47:54 -0500 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@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  (26.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  (6.6ms) ROLLBACK  (1.2ms) BEGIN  (0.7ms) 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 22:47:54 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$jv1VHwywzeht6iZ13hlZeuPUvKfAtwOvet55Fmigg78WvTRXr5kx2"], ["updated_at", Thu, 11 Jul 2013 22:47:54 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", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 3], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.3ms) 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", 3], ["created_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["user_id", 3]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (2.3ms) CREATE SCHEMA "test2"  (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)   (4.6ms) 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")  (5.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)  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) 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)   (1.4ms) 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 ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:47:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 45ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:47:54 -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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') 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", 3]] Completed 422 Unprocessable Entity in 12ms (Views: 0.6ms | ActiveRecord: 5.0ms) Cadenero::V1::Account Load (10.0ms) 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.9ms) 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.0ms) ROLLBACK  (0.4ms) BEGIN  (1.0ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$YLkGWUdwl1lSAb1AOHf5iuYfEXHiXlmY.wSjyb3lUGhITC0zjFmtG"], ["updated_at", Thu, 11 Jul 2013 22:47:54 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.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 4], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["user_id", 4]]  (0.1ms) 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)   (13.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (51.8ms) 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)  (4.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.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)   (3.4ms) 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 ('20130612073709')  (0.2ms) 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 17:47:54 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:47:54 -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 ('test3') LIMIT 1 Cadenero::User Load (8.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" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 4]] Completed 422 Unprocessable Entity in 13ms (Views: 0.3ms | ActiveRecord: 8.6ms) 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.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  (14.7ms) 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  (9.3ms) ROLLBACK  (0.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$4u35hpKVyprNL5/.J7oweO.mYWI4/fwOLVJ/lEB10trh85wqoYBNK"], ["updated_at", Thu, 11 Jul 2013 22:47:54 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", Thu, 11 Jul 2013 22:47:54 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 5], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:47:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", 5], ["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (7.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)   (13.8ms) 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")  (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)  (5.9ms) 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")  (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)   (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:47:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:47:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.0ms) 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" = 'user4@example.com' LIMIT 1 [["account_id", 5]] Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 LIMIT 1 Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 5]] Cadenero::V1::Account Load (2.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", 5]] Completed 201 Created in 50ms (Views: 35.9ms | ActiveRecord: 6.5ms) Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:47:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (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  (16.9ms) 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  (5.7ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$3BIn9Vc7F0E1pznt1fpaYeehM15FGZ0lyV0H9Q5fjz9IbsMS9RKWS"], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 6], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (2.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", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["user_id", 6]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.3ms) CREATE SCHEMA "test5"  (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" ("authentication_token")  (1.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.3ms) 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 ('20130612073709')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$BZqCUtcCkiURKwLrS6UkNeRxPXAWXHlZ6jesaCfRxZI8v0FovdTbW"], ["updated_at", Thu, 11 Jul 2013 22:47:55 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 (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", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 7], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.7ms) SAVEPOINT active_record_1 SQL (2.8ms) 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", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["user_id", 7]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:47:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:47:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (10.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (6.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 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 [["account_id", 6]] Completed 422 Unprocessable Entity in 21ms (Views: 0.5ms | ActiveRecord: 16.9ms) 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  (28.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  (30.4ms) ROLLBACK  (0.4ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$9pnW.gfbb3AM9LTmtoomeO6OiJWhGV9n9ulifNKN8ctMix2rIZ5Ni"], ["updated_at", Thu, 11 Jul 2013 22:47:55 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 (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", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 8], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00]]  (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", 8], ["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["user_id", 8]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (31.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)   (2.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.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)  (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:47:55 -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.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" = 'user7@example.com' LIMIT 1 [["account_id", 8]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 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.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 17ms (Views: 6.8ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:47:55 -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 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:47:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (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  (18.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.9ms) 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.8ms) ROLLBACK  (1.4ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 3ms (Views: 1.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  (43.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (4.3ms) 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.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  (13.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  (13.8ms) ROLLBACK  (1.6ms) BEGIN  (2.4ms) SAVEPOINT active_record_1 SQL (5.6ms) 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 22:47:55 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$Hf7/pt8VxdLosrxWZWGPWOB04.o0uy8L9jiSB9LO4EOnLC7DIy2j2"], ["updated_at", Thu, 11 Jul 2013 22:47:55 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", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 9], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00]]  (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", 9], ["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["user_id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (22.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.9ms) 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")  (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)  (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.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 ('20130612073709')  (0.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 17:47:55 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$4BX2Qs/tDnYBnW1ALcXJy.KN/LSDZEi8zaHpZiOul51P3hH/ViYPq"], ["updated_at", Thu, 11 Jul 2013 22:47:55 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", 9], ["created_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:55 UTC +00:00], ["user_id", 10]]  (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" = 10 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 10]] 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", 10]] Completed 201 Created in 25ms (Views: 6.1ms | ActiveRecord: 5.7ms) 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  (17.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.9ms) 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  (21.8ms) ROLLBACK  (0.6ms) BEGIN  (4.0ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (3.7ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$F3xTQkypHVghqAHMzaEky.y9SJ.E/.5hgelhM/j8Pf5rONF0A3ufW"], ["updated_at", Thu, 11 Jul 2013 22:47: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" = '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", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 11], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00]]  (0.3ms) 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", 10], ["created_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$9EE1uxhQKKkpEn8yKaY6We1ZM0hUmcZqgy2wunKkbitdmRZdw/YyW"], ["updated_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$aBxsfuOiK/KNe1KgOzH65uLR9swdECBopG3DGkrcL7.G.EtBlMZz."], ["updated_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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" = '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", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["name", "Root"], ["owner_id", 13], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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.1ms) 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.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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tBH27cqBHLa8YNHnroDn' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 11 [["authentication_token", "tBH27cqBHLa8YNHnroDn"], ["updated_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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  (9.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.8ms) ROLLBACK  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:47:58 -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.7ms) 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 22:47:58 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$eTx8a54Wk7ApGHWTIR9Wne8GPJ/XpjmPvS/dp9KemRG5vQjAc3Feu"], ["updated_at", Thu, 11 Jul 2013 22:47:58 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", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["name", "Testy"], ["owner_id", 14], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00]]  (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", 12], ["created_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00], ["user_id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 12) LIMIT 1  (0.2ms) CREATE SCHEMA "test"  (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.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.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)  (1.2ms) 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")  (5.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.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) 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" = 'StEMoH1esD8Ptq3KtoT2' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 12 [["authentication_token", "StEMoH1esD8Ptq3KtoT2"], ["updated_at", Thu, 11 Jul 2013 22:47:58 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 70ms (Views: 1.7ms | ActiveRecord: 38.6ms) 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  (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  (4.7ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) 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", Thu, 11 Jul 2013 22:47:59 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$Y4cW/3MJFvjIUn8Jq44Ya.E6vKGKAIC7XUfTujkJ5lR4.ictw5VH."], ["updated_at", Thu, 11 Jul 2013 22:47:59 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", Thu, 11 Jul 2013 22:47:59 UTC +00:00], ["name", "Testy"], ["owner_id", 15], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:47:59 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:47:59 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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 15ms (Views: 0.4ms | ActiveRecord: 0.9ms) 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  (11.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  (4.1ms) 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.5ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (33.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (6.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  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.8ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (8.3ms) 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 22:49:31 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$lzoX3q99Fbp9chhfZCdXLOJSfCzbBXgN1J7JYPpwMKniKSRaHuo2."], ["updated_at", Thu, 11 Jul 2013 22:49:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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" = '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", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:49:32 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 22:49:32 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$HwMFWa8QmW3pc1T3cctfAuaC82RlfSZM5x.qN1jnFc3hzgisLp4um"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$LGzEsIF.gF9V6zDL9qgSWe.USuOnfs7ahB32JVT.cTTkq4vR1SZQ2"], ["updated_at", Thu, 11 Jul 2013 22:49:32 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" = '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", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www"  (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.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")  (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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UMApCwKimNixUTTv5Ckz' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 2 [["authentication_token", "UMApCwKimNixUTTv5Ckz"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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  (16.8ms) 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  (10.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) 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", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$NwRxz.xZ8UwWTDClQmT.yOrtk0dKRB7jWVmDVj8YU8k2BgkjczisC"], ["updated_at", Thu, 11 Jul 2013 22:49:32 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.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 4], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (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", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["user_id", 4]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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.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.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)   (2.6ms) 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")  (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.0ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:49:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 48ms (Views: 0.5ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:49:32 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') 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" = 'foo@example.com' LIMIT 1 [["account_id", 3]] Completed 422 Unprocessable Entity in 14ms (Views: 0.5ms | ActiveRecord: 1.6ms) Cadenero::V1::Account Load (1.2ms) 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.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;  (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.9ms) ROLLBACK  (1.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", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$DNdkKm/HWqp25QF.UYBC6u6AMJEsBOC8INGDDFVzsKUgLmFb/5qiO"], ["updated_at", Thu, 11 Jul 2013 22:49:32 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", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 5], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (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", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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" ("authentication_token")  (5.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.1ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:49:32 -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 ('test3') 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", 4]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 LIMIT 1 Cadenero::V1::Account Load (0.6ms) 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 46ms (Views: 35.2ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:49:32 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"5", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:49:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.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.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  (4.8ms) ROLLBACK  (0.1ms) 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", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$GYqiEeTlSfurW9M/pihHJOSQFJZHi.j3nD.s.97hLjaWDporcKNKK"], ["updated_at", Thu, 11 Jul 2013 22:49:32 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" = 'test4' 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", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 6], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (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", 5], ["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["user_id", 6]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$enkXXuu.9Vt4jPZ9l8pXjeYWsiqBUyKVxdBA7K9lMcaLIFp7gX5Me"], ["updated_at", Thu, 11 Jul 2013 22:49:32 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" = '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", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 7], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (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", 6], ["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["user_id", 7]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:49:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:49:32 -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 ('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" = 'user6@example.com' LIMIT 1 [["account_id", 5]] 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.0ms) 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.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", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$c5fSO1hWq/mwSKi39pJk.efo/kALz50G8fh6Qc/3LmZFvO3l/i/wi"], ["updated_at", Thu, 11 Jul 2013 22:49:32 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", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 8], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.3ms) 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", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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)  (1.2ms) 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")  (4.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)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) 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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (5.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:49:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:49:32 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (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", 7]] 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.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  (3.9ms) ROLLBACK  (0.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$fHS.2GZWMb/XVPM2TwByaOueYIJCW1annMHKm3Wj9hDvFk6iSaK8i"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.3ms) 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" = '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", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 9], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (6.5ms) 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", 8], ["created_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:32 UTC +00:00], ["user_id", 9]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test7"  (21.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.8ms) 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")  (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)   (1.2ms) 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")  (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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.9ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:49:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:49:32 -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 ('test7') 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" = $1 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 [["account_id", 8]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] 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", 9]] Completed 201 Created in 17ms (Views: 6.3ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:49:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.7ms) 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.7ms)  (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  (7.4ms) ROLLBACK  (0.1ms) 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", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$TtCgM9ZZNNY/kI68XkuFy.NiDXFQ3xWfmdtmetm7GWW2mc9gHBR5m"], ["updated_at", Thu, 11 Jul 2013 22:49:33 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", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 10], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00]]  (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", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["user_id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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.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.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)   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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.2ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:49:33 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@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  (8.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  (7.3ms) 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  (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  (4.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  (14.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  (7.1ms) ROLLBACK  (0.2ms) BEGIN  (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 (1.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 22:49:33 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$RB5P41y5.wRB3bu6SWvIneAv99N9Ow/7xiPHhQaeqz7kbCXEuPXsO"], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00]] SQL (40.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["name", "Test Account"], ["owner_id", 11], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00]]  (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", 10], ["created_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["user_id", 11]]  (0.2ms) RELEASE SAVEPOINT active_record_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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 10]]  (10.1ms) 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  (66.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  (7.1ms) ROLLBACK  (0.4ms) BEGIN Cadenero::V1::Account Exists (7.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL 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  (62.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (6.6ms) ROLLBACK  (0.4ms) BEGIN  (0.9ms) 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 22:49:33 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$HdZOubv3xoSvGGYQfdHLHOIsSA7GdIuwzNt7aMxH.iURYmgs6c7LS"], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (9.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (1.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 12], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00]]  (0.3ms) 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", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["user_id", 12]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test9"  (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)  (4.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (10.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (10.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)   (13.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.8ms) 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)  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (8.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 ('20130612073709')  (0.2ms) 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 17:49:33 -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" = 'test9' 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", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$51/eN7ueoldMf2nxKgdzYezRbisPPdwuy5nUH0554q5t34/Y0VoTu"], ["updated_at", Thu, 11 Jul 2013 22:49:33 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", 11], ["created_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["user_id", 13]]  (10.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (6.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 13 LIMIT 1 Cadenero::V1::Account Load (7.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 13]] Cadenero::V1::Account Load (8.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 [["user_id", 13]] Completed 201 Created in 52ms (Views: 7.3ms | ActiveRecord: 33.6ms) 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  (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.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  (16.7ms) ROLLBACK  (0.3ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:49:33 -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.8ms) 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 (3.6ms) 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 22:49:33 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$YU4XAqrWb6BewDluA5mIYOCu.Wkz9Qdq00OTv48EmzEtBYLJVnXrS"], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00]] SQL (2.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["name", "Testy"], ["owner_id", 14], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (3.0ms) 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", 12], ["created_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:33 UTC +00:00], ["user_id", 14]]  (1.6ms) RELEASE SAVEPOINT active_record_1 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" != 12) LIMIT 1  (0.2ms) CREATE SCHEMA "test"  (10.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)   (3.7ms) 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")  (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)  (7.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (6.2ms) 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 ('20130612073709')  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (9.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wU2QZaqUvVHkqE7qJx3S' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (1.8ms) SAVEPOINT active_record_1 SQL (5.7ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 12 [["authentication_token", "wU2QZaqUvVHkqE7qJx3S"], ["updated_at", Thu, 11 Jul 2013 22:49:34 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 173ms (Views: 0.2ms | ActiveRecord: 139.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  (33.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  (16.2ms) ROLLBACK  (0.2ms) BEGIN  (4.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.1ms) 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", Thu, 11 Jul 2013 22:49:34 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$IcnnOe79iNvEXk9nRpE63.Li23aJfZCLKKBATeAqLDHiIJvA0PKBi"], ["updated_at", Thu, 11 Jul 2013 22:49:34 UTC +00:00]] SQL (9.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:34 UTC +00:00], ["name", "Testy"], ["owner_id", 15], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:49:34 UTC +00:00]]  (14.0ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:49:34 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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 17ms (Views: 0.4ms | ActiveRecord: 1.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.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.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.9ms) ROLLBACK  (2.9ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (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  (8.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  (18.6ms) 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)  (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  (31.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  (12.7ms) 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'  (13.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  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:49:49 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (7.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (14.8ms) 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 22:49:50 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$oLoolbI4D/g91F4r2FHYUut5nisAHF//MflJ3wjXA3mWf5RkYujhK"], ["updated_at", Thu, 11 Jul 2013 22:49:50 UTC +00:00]] SQL (4.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:49:50 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:49:50 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (10.2ms) 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 22:49:50 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:49:50 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (0.4ms) 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)  (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")  (5.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)   (3.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.5ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'kyfzuWNiWE1xz9jwr4Y2' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (15.7ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 1 [["authentication_token", "kyfzuWNiWE1xz9jwr4Y2"], ["updated_at", Thu, 11 Jul 2013 22:49:50 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 656ms (Views: 0.2ms | ActiveRecord: 176.1ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (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  (16.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  (19.7ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.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", Thu, 11 Jul 2013 22:49:50 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$emGYEwlOxTPpky0ZYYDPP.lvxqge4OuS1/pajD1g6H3mzIp2SA7.e"], ["updated_at", Thu, 11 Jul 2013 22:49:50 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", Thu, 11 Jul 2013 22:49:50 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:49:50 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:49:50 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (4.0ms) 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 30ms (Views: 0.4ms | ActiveRecord: 5.1ms) 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  (29.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  (4.9ms) 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.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.2ms) 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  (1.0ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:51:11 -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.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (22.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 22:51:12 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$woIeudwRaxKkX.2S6yjAMO7QwMGdqSwWOikLS9UoUPcCvNj36Dv92"], ["updated_at", Thu, 11 Jul 2013 22:51:12 UTC +00:00]] SQL (2.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:12 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:51:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) SAVEPOINT active_record_1 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", 1], ["created_at", Thu, 11 Jul 2013 22:51:12 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:12 UTC +00:00], ["user_id", 1]]  (7.8ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (0.5ms) CREATE SCHEMA "test"  (34.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")  (4.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.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)   (7.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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")  (6.3ms) SELECT version FROM "schema_migrations"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3YYH2BH6N6kZ57mTdzCp' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 1 [["authentication_token", "3YYH2BH6N6kZ57mTdzCp"], ["updated_at", Thu, 11 Jul 2013 22:51:12 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 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" = $1 [["account_id", 1]] Completed 201 Created in 691ms (Views: 22.0ms | ActiveRecord: 179.3ms) 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  (17.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  (22.5ms) ROLLBACK  (0.9ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:12 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$ja6TOFIlo9lvR05uHaQnPexs5iFyWQjaBmp00jEbTJphQwMZNaf4a"], ["updated_at", Thu, 11 Jul 2013 22:51:12 UTC +00:00]] 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", Thu, 11 Jul 2013 22:51:12 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:51:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:51: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.4ms) 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  (13.5ms) 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 36ms (Views: 0.3ms | ActiveRecord: 14.8ms) Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC 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  (16.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  (15.0ms) 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'  (15.3ms) 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.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (67.6ms) 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 22:51:22 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$dcxFGzddjTILx8Zt57UeyuEWWIUQusg5NDUy2Kyep3r0wRJd3Nv.u"], ["updated_at", Thu, 11 Jul 2013 22:51:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:22 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:51:22 UTC +00:00]]  (2.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) 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 22:51:22 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:22 UTC +00:00], ["user_id", 1]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.6ms) 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.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)  (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)   (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:51:23 -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.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (6.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" = 'user1@example.com' LIMIT 1 [["account_id", 1]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 1]] Cadenero::V1::Account Load (50.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", 1]] Completed 201 Created in 206ms (Views: 55.7ms | ActiveRecord: 58.7ms) Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:51:23 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:51:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (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  (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  (12.6ms) ROLLBACK  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (11.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 22:51:23 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$yM1llQ8CM5KMFV396FyWnO1eB/7jGgriLahC2yEimHV.L5hlOKmNe"], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (1.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", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["user_id", 2]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test2"  (10.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)   (7.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.2ms) 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)  (4.6ms) 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")  (12.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")  (0.2ms) SELECT version FROM "schema_migrations"  (0.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 GET "/v1" for 127.0.0.1 at 2013-07-11 17:51:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:51:23 -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.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 [["account_id", 2]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (1.6ms) 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 18ms (Views: 6.0ms | ActiveRecord: 5.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:51:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 3ms (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  (12.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  (11.2ms) ROLLBACK  (0.6ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$XYfIA0jahnjpX/ns6phBRuJGyKjHbaDFTdxCL5chUfhZzSNjtQ0hy"], ["updated_at", Thu, 11 Jul 2013 22:51:23 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 (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00]]  (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", 3], ["created_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (30.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.4ms) 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")  (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)  (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) 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 ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:51:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:51:23 -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 ('test3') 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" = 'foo@example.com' LIMIT 1 [["account_id", 3]] Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 1.6ms) 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.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  (26.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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.5ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$Yi0.krZLFtBElQjpZhNrk.22L7haAYNJoBHVesEpMJQas/ySTFYAG"], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (5.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00]]  (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", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (29.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)   (3.9ms) 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.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)  (16.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) 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 17:51:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:51:23 -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.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (3.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" = 'user@example.com' LIMIT 1 [["account_id", 4]] Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (1.0ms) 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  (23.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  (8.0ms) ROLLBACK  (0.1ms) 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", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$0xxTbE8fwACzy51d4EVPcu6XLF7Mq43qGBHXxkV/EjPRS7I7acz3i"], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' 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", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00]]  (0.8ms) 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", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:23 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test5"  (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)   (2.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (18.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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)   (3.5ms) 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 ('20130612073709')  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) 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 22:51:24 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$9WrciRDtjtaJT6kd4OP6SeV98Ucq8Dnf0IMXu3kX0yrNyL71mwiRG"], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' 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", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00]]  (0.5ms) 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", 6], ["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:51:24 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:51:24 -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.6ms) 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" = 'user6@example.com' LIMIT 1 [["account_id", 5]] Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 1.3ms) 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  (28.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  (12.0ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) 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", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$5Rd281ih1m/YIaHTpmKF5eE4TKNU.9LedUVWWB3BC8oCYVo0okDl."], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.1ms) 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", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.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", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (14.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.5ms) 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.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")  (3.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:51:24 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (1.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  (20.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (8.4ms) ROLLBACK  (1.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (6.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" = $1 [["account_id", 1001]] Completed 201 Created in 11ms (Views: 3.7ms | ActiveRecord: 6.1ms)  (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  (77.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.9ms) ROLLBACK  (0.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)  (7.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  (30.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  (5.0ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) 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", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$3gA6UJrGmYXwAbDLJGHHRuZsTSRQyF5cjTTCZtzZ7dO9sr.wwdu.y"], ["updated_at", Thu, 11 Jul 2013 22:51:24 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", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 8], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.2ms) 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", 8], ["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (8.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" ("authentication_token")  (2.5ms) 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)   (2.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (14.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.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (6.7ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 17:51:24 -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" = 'test8' 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", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$IUDNPO9GHVhRpioFw4L73.sXoOTTbBiLxOvDy0IwtZ46mzAXj2F8."], ["updated_at", Thu, 11 Jul 2013 22:51:24 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", 8], ["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["user_id", 9]]  (1.0ms) 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::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.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", 9]] Completed 201 Created in 27ms (Views: 5.8ms | ActiveRecord: 4.4ms) 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  (1.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  (15.2ms) 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  (9.7ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (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  (25.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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  (17.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.6ms) ROLLBACK  (11.4ms) BEGIN  (4.3ms) 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", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$H1WM.NWcFWUSzv9IavzXIu3qo2kU9dwHytmp/.KDMoMActSVXMez2"], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00]] 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", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["name", "Test Account"], ["owner_id", 10], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.5ms) 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", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["user_id", 10]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (13.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", 9]]  (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  (20.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.1ms) ROLLBACK  (0.3ms) BEGIN Cadenero::V1::Account Exists (1.3ms) 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  (22.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  (5.5ms) ROLLBACK  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:51:24 -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.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (2.3ms) 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 22:51:24 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$TLN6.UUebEmhL5SvS8wcI.7UR9yv6DRRWKnDrBTQAiG8H.2OVmKEK"], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00]] 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", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["name", "Testy"], ["owner_id", 11], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 10], ["created_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:24 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 10) LIMIT 1  (0.3ms) CREATE SCHEMA "test"  (16.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" ("authentication_token")  (2.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)  (4.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")  (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)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (7.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'w541YDfZmX42xytx1iVq' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 10 [["authentication_token", "w541YDfZmX42xytx1iVq"], ["updated_at", Thu, 11 Jul 2013 22:51:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 11 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", 10]] Completed 201 Created in 140ms (Views: 6.8ms | ActiveRecord: 89.3ms) Cadenero::V1::Account Load (1.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  (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  (13.4ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (8.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:25 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$fA7txZPtf.vui1mnCYg9ouMw8O3wNDzoRgZ1Jeg6LxP3/Yq4j0yde"], ["updated_at", Thu, 11 Jul 2013 22:51:25 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", Thu, 11 Jul 2013 22:51:25 UTC +00:00], ["name", "Testy"], ["owner_id", 12], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:51:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:51:25 -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.4ms) 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 17ms (Views: 0.3ms | ActiveRecord: 0.9ms) 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  (4.1ms) 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  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (1.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (5.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (6.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", Thu, 11 Jul 2013 22:51:28 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$c11B29dDG1wf7vDd2Xaafes7v51Kb1QshSBjT/jysSyVNnbifkafO"], ["updated_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00]]  (5.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' 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", Thu, 11 Jul 2013 22:51:28 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 13], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 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", 12], ["created_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00], ["user_id", 13]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$bNtubtA4RZCZfN.EGMN8X./sz8xVDnJMKPcIUsl5.g13hCS5zh2YC"], ["updated_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$pnhNftjd8l19ZBqNYeWxO.ybZx6nTXueG8mAtwz.bmdqifmtQhmVO"], ["updated_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' 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", Thu, 11 Jul 2013 22:51:28 UTC +00:00], ["name", "Root"], ["owner_id", 15], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.3ms) CREATE SCHEMA "www"  (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.4ms) 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.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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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)   (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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TXUSD4y5XV2HLpJWbwic' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 13 [["authentication_token", "TXUSD4y5XV2HLpJWbwic"], ["updated_at", Thu, 11 Jul 2013 22:51:28 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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  (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  (7.8ms) ROLLBACK  (6.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  (2.3ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.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  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (80.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 22:52:40 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$XmJJsi9xxZ1v2.wg5lNcC.XvzkSp5HQUjqx1nBa9FuXG8oZ9bkmVu"], ["updated_at", Thu, 11 Jul 2013 22:52:40 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:40 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:52:40 UTC +00:00]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Thu, 11 Jul 2013 22:52:40 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:40 UTC +00:00], ["user_id", 1]]  (10.4ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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)   (2.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (10.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (12.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)  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) 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 ('20130612073709')  (1.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 17:52:41 -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 70ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:52:41 -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.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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" = 'user@example.com' LIMIT 1 [["account_id", 1]] Completed 422 Unprocessable Entity in 32ms (Views: 0.4ms | ActiveRecord: 2.0ms) Cadenero::V1::Account Load (2.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  (28.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  (8.6ms) ROLLBACK  (0.1ms) BEGIN  (1.9ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$i5P.eG5V.UrzBZulYIuCk.pCaKP3zyzNFiCNO8duN4oumBqZOS.gO"], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 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", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00]]  (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", 2], ["created_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (18.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)   (4.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)  (0.9ms) 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")  (22.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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (10.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.2ms) SELECT version FROM "schema_migrations"  (0.5ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:52:41 -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 (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 [["account_id", 2]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 2]] Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 2]] Completed 201 Created in 140ms (Views: 75.3ms | ActiveRecord: 5.8ms) Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:52:41 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"2", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:52:41 -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)  (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  (13.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.9ms) ROLLBACK  (0.8ms) BEGIN  (1.3ms) 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 22:52:41 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$67uZhVFM0fUaXVzYlN3a2enmDxLQNgEgbFVMLjHB8zd3ToCU0uQ.2"], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00]]  (0.8ms) 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 (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", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00]]  (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", 3], ["created_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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)   (2.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (6.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.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)  (4.2ms) 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")  (5.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)  (6.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:52:41 -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 17:52:41 -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 ('test3') 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", 3]] Completed 422 Unprocessable Entity in 10ms (Views: 0.4ms | 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  (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  (23.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) 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  (1.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 22:52:41 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$WxFAbPicXvMXrniOu6R25uQjcH3nzMfmaKbp/pUil3qAiiGin97m."], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (4.4ms) 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", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["user_id", 4]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.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.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (7.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (8.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:52:41 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (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  (23.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  (24.0ms) ROLLBACK  (2.0ms) BEGIN  (1.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$GZsHf8Q3FEbghf5844Feeeu6KGlWjLcSAfKKtkfAI/ImyOTR/GH/6"], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00]]  (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", 5], ["created_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:41 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (14.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)   (5.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")  (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)  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (11.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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)   (2.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (6.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 ('20130612073709')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$srWOFr7cDrhHkU4wFOixPuJNN8qdAtHO/SH6El3IQRK6Z9anpipuK"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (5.6ms) 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", 6], ["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["user_id", 6]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:52:42 -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 17:52:42 -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 (3.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", 5]] Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 3.7ms) 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  (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.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  (10.3ms) ROLLBACK  (2.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (9.3ms) 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 22:52:42 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$GlM1Hl28likGK9GYUd5fgeOAJD0M6a87r8RyFrAboIiaBPSC5hbwm"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (1.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' 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", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (13.3ms) 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", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["user_id", 7]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (13.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)   (5.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")  (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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.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)   (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (9.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (5.4ms) SELECT version FROM "schema_migrations"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (6.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:52:42 -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 17:52:42 -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 (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user7@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" = 7 LIMIT 1 Completed 500 Internal Server Error in 14ms  (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  (55.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  (16.0ms) ROLLBACK  (3.3ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:52:42 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 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", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$wPZvaDD49Re/AJRLqzVi4.3eBl482bM4VpCuWlE0CR3EUcbtiK0DG"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]] SQL (1.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["name", "Testy"], ["owner_id", 8], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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", 8], ["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 8) LIMIT 1  (2.4ms) CREATE SCHEMA "test"  (9.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)  (10.0ms) 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")  (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)   (2.4ms) 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")  (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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.9ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'er1QxSqPXnp4WFWKDq4o' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 8 [["authentication_token", "er1QxSqPXnp4WFWKDq4o"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]]  (1.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 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 [["account_id", 8]] Completed 201 Created in 137ms (Views: 7.5ms | ActiveRecord: 79.3ms) Cadenero::V1::Account Load (2.7ms) 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  (11.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  (10.4ms) ROLLBACK  (1.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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 22:52:42 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$VyK4GnN/wKcX6c04sktfXuLMdF5xeDXdneQgg5uSC0fRNoa9K2Adi"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]] SQL (4.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["name", "Testy"], ["owner_id", 9], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:52:42 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (1.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  (2.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 38ms (Views: 0.4ms | ActiveRecord: 4.1ms) Cadenero::V1::Account Load (6.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC 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  (12.0ms) 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  (3.9ms) ROLLBACK  (0.4ms) BEGIN  (1.3ms) 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 22:52:42 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$QVSkmw5ZN2bg8kBNs3lXOeMpDmRpZW6./YJNRrx98yBvz5z0T2I0q"], ["updated_at", Thu, 11 Jul 2013 22:52:42 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 (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", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 10], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) 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", 10], ["created_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["user_id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (14.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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)  (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (15.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)   (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (8.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 17:52:42 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$/xUbWwco5NZzMzyaAdHi/elPRfHoCOpbVslqQtF17EVkD6AR5UspW"], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00]] SQL (2.8ms) 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", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:42 UTC +00:00], ["user_id", 11]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 11 LIMIT 1 Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 11]] Cadenero::V1::Account Load (2.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", 11]] Completed 201 Created in 29ms (Views: 6.5ms | ActiveRecord: 9.0ms) 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  (2.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  (17.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (16.1ms) 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.9ms) ROLLBACK  (3.1ms) BEGIN Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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  (37.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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.5ms) ROLLBACK  (0.6ms) BEGIN Cadenero::V1::Account Exists (1.5ms) 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  (97.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.0ms) ROLLBACK  (0.6ms) BEGIN Cadenero::V1::Account Exists (2.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (1.1ms) 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.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  (8.1ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) 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 22:52:43 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$.iNnEXmn.nBStvgoTvGF.O8OwxfvRO72./WeoUuIBubS7vwUV4A82"], ["updated_at", Thu, 11 Jul 2013 22:52:43 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", Thu, 11 Jul 2013 22:52:43 UTC +00:00], ["name", "Test Account"], ["owner_id", 12], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:52:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.8ms) 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", 11], ["created_at", Thu, 11 Jul 2013 22:52:43 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:43 UTC +00:00], ["user_id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 11]]  (0.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.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.9ms) ROLLBACK  (0.8ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.9ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.8ms) 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 22:52:46 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$kmZZyrpsWxlz6EfM0rrR/.wrn6mbIsAkH9xHzAe2sHPvOexccyodi"], ["updated_at", Thu, 11 Jul 2013 22:52:46 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" = '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", Thu, 11 Jul 2013 22:52:46 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 13], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:52:46 UTC +00:00]]  (0.2ms) 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", 12], ["created_at", Thu, 11 Jul 2013 22:52:46 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:52:46 UTC +00:00], ["user_id", 13]]  (0.2ms) 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 22:52:46 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$E4fvPj7gzfjbvIAzzbF4k.5HcEFLBw0DA2SBdi3lGDjzlr5e9Bwpa"], ["updated_at", Thu, 11 Jul 2013 22:52:46 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:52:46 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$TMwwPLoN2fMso054HOuG1.7Gxa5Op7h2o6EvmNx7phxj2d96ivkvq"], ["updated_at", Thu, 11 Jul 2013 22:52:46 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", Thu, 11 Jul 2013 22:52:46 UTC +00:00], ["name", "Root"], ["owner_id", 15], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:52:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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.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.1ms) 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)  (1.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ENkuv9kppFzFNeAx1We9' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 13 [["authentication_token", "ENkuv9kppFzFNeAx1We9"], ["updated_at", Thu, 11 Jul 2013 22:52:46 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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  (15.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.3ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1001]] Completed 201 Created in 5ms (Views: 3.3ms | ActiveRecord: 0.9ms)  (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.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.2ms) 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.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  (9.9ms) 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  (3.2ms) ROLLBACK  (7.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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.7ms) 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  (0.5ms) BEGIN Cadenero::V1::Account Exists (0.9ms) 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  (14.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  (21.8ms) ROLLBACK  (21.7ms) 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) 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  (22.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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.7ms) ROLLBACK  (0.6ms) BEGIN Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (82.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  (16.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.7ms) BEGIN  (2.8ms) 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 (4.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 22:54:00 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$79veX2r.EsEBXZftYxiXSurUpmTKkPcT1aoYGtjxLxilvHIL/0g4S"], ["updated_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00]] SQL (2.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00]]  (43.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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 22:54:00 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 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  (24.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  (5.2ms) ROLLBACK  (2.5ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$Mj/vzTCE4dBhWSVKbxwovuSxoqxyLOn0LMG4ZTm88kAlr6b2Wxbi2"], ["updated_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Thu, 11 Jul 2013 22:54:00 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 2], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 2], ["created_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:00 UTC +00:00], ["user_id", 2]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (9.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.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (8.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (13.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.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.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.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 ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:54:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 46ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:54:01 -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 ('test1') LIMIT 1 Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 2]] Completed 422 Unprocessable Entity in 66ms (Views: 0.4ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (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  (25.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (12.9ms) ROLLBACK  (0.3ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 SQL (2.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 22:54:01 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$nQI8PGpZyTSoEzQFC52BrOOvwnBunibA..dMS8lAAU.pjhPj9KBxu"], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00]]  (0.6ms) 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" = '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", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 3], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (1.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", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["user_id", 3]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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)   (8.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (6.0ms) 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)  (4.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.7ms) 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)   (7.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$dNZk9TEcvM0opiseBd/F1.E1Z1TPq79KA0gZpzoNDeR8jWCJnZgWi"], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (8.2ms) 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.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 4], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00]]  (0.2ms) 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", 4], ["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["user_id", 4]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:54:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:54:01 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 3]] Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 3.1ms) 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.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  (19.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.6ms) ROLLBACK  (0.6ms) BEGIN  (0.8ms) 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", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$DZyNLnsW0Geyv8P/zPLzUuqWXVHyyaHuTLccfGTi3w6Z3MwczfJIa"], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (1.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 5], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (2.5ms) 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", 5], ["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["user_id", 5]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (1.2ms) CREATE SCHEMA "test4"  (14.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)   (5.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (7.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) 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)   (5.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.5ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:54:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:54:01 -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.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') 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" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 5]] Completed 422 Unprocessable Entity in 6ms (Views: 0.5ms | ActiveRecord: 1.9ms) 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.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  (22.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (7.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", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$8rvY3AASVWWe/nVZVv.rpu0eWuLRyclqOQ06Wg.daLX1c71h0nb.G"], ["updated_at", Thu, 11 Jul 2013 22:54:01 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" = 'test5' 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", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 6], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00]]  (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", 6], ["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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" ("authentication_token")  (7.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("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)  (8.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) 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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:54:01 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 [["account_id", 6]] Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 6]] Completed 201 Created in 58ms (Views: 41.1ms | ActiveRecord: 6.5ms) Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:54:01 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"6", "default"=>:json} Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.7ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:54:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (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  (18.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  (8.1ms) ROLLBACK  (0.9ms) 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", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$1neYThsq4z.ofDOyG1g7SOZUoOUuUGQZsm8HXLVu3MQvssHsXNIiq"], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00]]  (1.5ms) 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" = 'test6' LIMIT 1 SQL (1.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 7], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00]]  (1.8ms) 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", 7], ["created_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:01 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) CREATE SCHEMA "test6"  (7.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)   (4.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (9.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.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.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) 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 17:54:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:54:02 -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.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", 7]] Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 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 (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", 7]] Completed 201 Created in 18ms (Views: 6.7ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:54:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true 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)  (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  (19.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (14.4ms) 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", Thu, 11 Jul 2013 22:54:02 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$naHVOx3MBiYiDigdweuKpuT5mLrxPsu2xOpL3SaTvygYqb8IzipGi"], ["updated_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00]]  (0.7ms) 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 (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", Thu, 11 Jul 2013 22:54:02 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 8], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00]]  (1.7ms) 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", 8], ["created_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00], ["user_id", 8]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.7ms) CREATE SCHEMA "test7"  (24.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.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")  (5.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)  (2.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.7ms) 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 ('20130612073709')  (0.1ms) 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 17:54:02 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@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  (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  (6.6ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$QcRumI.QaowqpTM21sRlLOQ.sy7x45KdNMSHWCwnP.hRY0QBt4e1C"], ["updated_at", Thu, 11 Jul 2013 22:54:02 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", Thu, 11 Jul 2013 22:54:02 UTC +00:00], ["name", "Testy"], ["owner_id", 9], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:54:02 -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.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (7.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (1.6ms) 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 26ms (Views: 0.4ms | ActiveRecord: 9.8ms) 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  (17.0ms) 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.8ms) ROLLBACK  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:54:02 -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", Thu, 11 Jul 2013 22:54:02 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$UEmXr2X7r9GQit4yNQUUGuqtvBdby3UlBC8qDDaeRvSCcAkyKYpEW"], ["updated_at", Thu, 11 Jul 2013 22:54:02 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", Thu, 11 Jul 2013 22:54:02 UTC +00:00], ["name", "Testy"], ["owner_id", 10], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00]]  (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", 10], ["created_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00], ["user_id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 10) LIMIT 1  (14.0ms) CREATE SCHEMA "test"  (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)   (5.5ms) 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.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)  (5.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.8ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7Suba2XDKBauRygUY7Fm' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (3.4ms) SAVEPOINT active_record_1 SQL (1.8ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 10 [["authentication_token", "7Suba2XDKBauRygUY7Fm"], ["updated_at", Thu, 11 Jul 2013 22:54:02 UTC +00:00]]  (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" = 10 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", 10]] Completed 201 Created in 148ms (Views: 7.4ms | ActiveRecord: 92.5ms) Cadenero::V1::Account Load (1.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.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;  (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  (0.8ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$vyx0XFhwyphvJIQZvs9AGePhPkQkkQyq//AslmPq/BCByCAMf3pSy"], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 11], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00]]  (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", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$l1byPp0LSnAaHCi1Ss/mzuf.ZujjNocyTT.JGXbzOnmgC5x.6z3ri"], ["updated_at", Thu, 11 Jul 2013 22:54:05 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 22:54:05 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$v93oCDM.y/BGWSIbd7NACevR.89ad5KZXfNTioXB8BtDLZnKHNQB."], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["name", "Root"], ["owner_id", 13], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (18.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)   (4.1ms) 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.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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yRGdCtk79KJUP1qutjsf' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 12 [["authentication_token", "yRGdCtk79KJUP1qutjsf"], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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.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.0ms) 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", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$6hN3NuAjW3RBRQxHGTvYIezk2d3M5SG/QkfJA0M41HQF7SUUf4nHW"], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 14], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00]]  (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", 13], ["created_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["user_id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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" ("authentication_token")  (1.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)   (2.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")  (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)  (1.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.5ms) 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/users" for 127.0.0.1 at 2013-07-11 17:54:05 -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" = 'test9' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$CbsUvf.dMDv/RmQXoSDkSeAtYFt5CuZdvuVnlQ440nriAtZwGnnbu"], ["updated_at", Thu, 11 Jul 2013 22:54:05 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", 13], ["created_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:54:05 UTC +00:00], ["user_id", 15]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 15 LIMIT 1 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 15]] 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", 15]] Completed 201 Created in 24ms (Views: 6.6ms | ActiveRecord: 4.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  (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  (5.6ms) 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  (15.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (2.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} 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 [["account_id", 1001]] Completed 201 Created in 5ms (Views: 3.0ms | ActiveRecord: 1.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.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.6ms) ROLLBACK Connecting to database specified by database.yml  (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'  (23.1ms) 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  (0.1ms) BEGIN  (3.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (4.6ms) 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 22:59:38 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$.SRtkxsIlNdZhSZFZ/FaYuz4Xes8kWXYLI4aJsRq9rs58TrPhuFlK"], ["updated_at", Thu, 11 Jul 2013 22:59:38 UTC +00:00]] SQL (1.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", Thu, 11 Jul 2013 22:59:38 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:59:38 UTC +00:00]]  (5.6ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:59:38 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.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  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 286ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.4ms) ROLLBACK  (1.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  (13.4ms) 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  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 17:59:38 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' 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", Thu, 11 Jul 2013 22:59:38 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$N8DVE2sI7xuCx2Np78GciejGDEYbZk6qoUUbRUkH1HQJoQNZhfD8W"], ["updated_at", Thu, 11 Jul 2013 22:59:38 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 22:59:38 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:59:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (14.9ms) SAVEPOINT active_record_1 SQL (1.7ms) 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 22:59:39 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00], ["user_id", 1]]  (3.7ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (5.8ms) CREATE SCHEMA "test"  (12.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" ("authentication_token")  (4.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.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') Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'cRAKEmp4uSkPFXG2kvGu' LIMIT 1  (0.7ms) SAVEPOINT active_record_1  (1.1ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'cRAKEmp4uSkPFXG2kvGu', "updated_at" = '2013-07-11 22:59:39.277051' WHERE "public"."cadenero_accounts"."id" = 1  (0.7ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 466ms (Views: 2.0ms | ActiveRecord: 113.0ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (4.5ms) ROLLBACK  (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  (23.3ms) 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  (0.1ms) BEGIN  (10.7ms) SAVEPOINT active_record_1 SQL (3.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 22:59:39 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$SoC1YY.NQO8jkMw6YCAom.UVFr4HBRKpE0VKVQVCBM7/Kb6SOavGO"], ["updated_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (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", Thu, 11 Jul 2013 22:59:39 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.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 22:59:39 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test1"  (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)   (9.3ms) 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")  (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)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (0.5ms) 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') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 17:59:39 -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' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$/7MVzwPVzl257Oz3xq.g7.GXWTLCdNCS00/wcNKYM3qp8li4tvp5m"], ["updated_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00]] SQL (9.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 22:59:39 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00], ["user_id", 2]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 184ms (Views: 47.6ms | ActiveRecord: 14.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  (6.9ms) ROLLBACK  (0.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  (23.0ms) 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.1ms) BEGIN  (0.8ms) 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 (3.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 22:59:39 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ZvJBBoFf2DyTo.tRYd3hS.iP9c4VvTPtCYQ0/ghyEi8sIwCcKEzS2"], ["updated_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00]] SQL (4.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", Thu, 11 Jul 2013 22:59:39 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Thu, 11 Jul 2013 22:59:39 UTC +00:00]]  (5.8ms) RELEASE SAVEPOINT active_record_1  (5.3ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 22:59:40 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:40 UTC +00:00], ["user_id", 1]]  (0.9ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (5.0ms) ROLLBACK  (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  (19.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) 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.1ms) BEGIN Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.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  (14.2ms) 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  (0.2ms) 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.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  (22.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.3ms) 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.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.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  (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)  (1.3ms) ROLLBACK  (0.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  (45.8ms) 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  (1.9ms) 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.6ms) ROLLBACK  (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  (21.2ms) 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.1ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (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", Thu, 11 Jul 2013 22:59:44 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$Zopi8FfYJfN0.5252pNouOICqsvxevypEauJXS8dtji2WEbfsM6fC"], ["updated_at", Thu, 11 Jul 2013 22:59:44 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 (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 22:59:44 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Thu, 11 Jul 2013 22:59:44 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) 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 22:59:44 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:44 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 22:59:45 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$wwFhsWqrKtjBUwyT/2.d8uyC465anX7jQ/lafl3i50LuIZ2bzoEWS"], ["updated_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$1tvV6/pb.8e.fWPfErgKKeCQuRkCce83WlguhXEjxWGxfOl83jXzG"], ["updated_at", Thu, 11 Jul 2013 22:59:45 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 22:59:45 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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.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)  (0.9ms) 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")  (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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) 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" = 'Q9Rw1F6YgH8xtedZbEec' LIMIT 1  (0.9ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'Q9Rw1F6YgH8xtedZbEec', "updated_at" = '2013-07-11 22:59:45.233571' 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.1ms) ROLLBACK  (0.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  (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  (0.1ms) BEGIN  (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 22:59:45 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$MTMVm6PPUj9FO.OFCTclu.bxs/SkeyTSj4BKzdoa1DXnvTNB/6IDK"], ["updated_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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 22:59:45 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) 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 22:59:45 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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)  (1.7ms) 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")  (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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) 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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:59:45 -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  (4.1ms) ROLLBACK  (0.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  (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  (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 22:59:45 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$jx7KGfUuhxJym83d8f2s/u2axOFriPayPSuzVvIZr2A5VDflwLUEm"], ["updated_at", Thu, 11 Jul 2013 22:59:45 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" = 'test4' 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 22:59:45 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Thu, 11 Jul 2013 22:59:45 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 22:59:45 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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)  (2.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)   (1.8ms) 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")  (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)   (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 ('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 17:59:45 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 110ms (Views: 4.8ms | ActiveRecord: 2.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:59:45 -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 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:59:45 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (3.1ms) ROLLBACK  (0.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  (13.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  (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 22:59:45 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$bRZMpVmwarMr2Zw11Zn3F.kLwbosdm8b4nNoHqk2dgvx3ik1NTnHW"], ["updated_at", Thu, 11 Jul 2013 22:59:45 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 22:59:45 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:45 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.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)   (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")  (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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:59:45 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 17:59:45 -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 (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.4ms) ROLLBACK  (0.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  (12.1ms) 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.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 22:59:46 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$xLQ29PnVUAy6AI6ogws0z.t882ni7CTsKqsIANTZJrV0GIPUIdAQ6"], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' 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 22:59:46 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00]]  (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", 1], ["created_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (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")  (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)   (0.9ms) 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")  (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.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$.nuTFz7ovvy0EkBzMi3Uj.r1T1BMLXGT2ErJ5eG1fW0p3J58l3ERC"], ["updated_at", Thu, 11 Jul 2013 22:59:46 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" ("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 22:59:46 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 2], ["subdomain", "test7"], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00]]  (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", 2], ["created_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["user_id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:59:46 -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 17:59:46 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@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" IN ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.0ms) ROLLBACK  (0.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  (24.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  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$mEFSxXX0u4DeZLG./9FeNulngl5Rbf75t/09wn3d0F/Ywsvw6WgNS"], ["updated_at", Thu, 11 Jul 2013 22:59:46 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" = 'test8' LIMIT 1 SQL (3.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 22:59:46 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (4.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 22:59:46 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["user_id", 1]]  (2.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (12.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.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.5ms) 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)   (11.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:59:46 -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 17:59:46 -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 (0.6ms) 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" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | 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' LIMIT 1  (5.0ms) ROLLBACK  (0.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  (34.1ms) 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  (3.7ms) BEGIN  (0.6ms) 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 22:59:46 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$s2EZJ6C3njxopKBFhZxhXuOA3HRkZfCyKCAY/j924hettIUrDtrza"], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' 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 22:59:46 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.0ms) 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 22:59:46 UTC +00:00], ["updated_at", Thu, 11 Jul 2013 22:59:46 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test9"  (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.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.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.3ms) 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")  (6.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)   (12.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 ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 17:59:46 -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 17:59:46 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user10@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (7.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user10@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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" = 1 Completed 201 Created in 162ms (Views: 21.4ms | ActiveRecord: 10.0ms) Cadenero::V1::Account Load (5.8ms) 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 17:59:47 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.6ms)  (11.3ms) ROLLBACK  (0.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  (23.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 Connecting to database specified by database.yml Connecting to database specified by database.yml  (6.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  (18.4ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (17.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  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 21:55:21 -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.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (7.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 02:55:21 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$5iyN8m4Ag224ePx4QvZ5Wu0dV8VNf0anDwEv.HK3EQx/DT4/UphkG"], ["updated_at", Fri, 12 Jul 2013 02:55:21 UTC +00:00]] 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", Fri, 12 Jul 2013 02:55:21 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 02:55:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", Fri, 12 Jul 2013 02:55:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 02:55:21 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (3.2ms) CREATE SCHEMA "test"  (37.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")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (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.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) 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" = 'yfdJiqakJiBkz8SNzLeg' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'yfdJiqakJiBkz8SNzLeg', "updated_at" = '2013-07-12 02:55:21.778817' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 457ms (Views: 3.1ms | ActiveRecord: 93.0ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.9ms) ROLLBACK  (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  (0.1ms) BEGIN  (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 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 02:55:21 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$4WXgINwpb4XIiidl9Wb.ievjGsPzkXCNV1MQH9n4yj.zoO8fBGBwK"], ["updated_at", Fri, 12 Jul 2013 02:55:21 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", Fri, 12 Jul 2013 02:55:21 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 02:55:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 21:55:21 -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.4ms) 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 114ms (Views: 0.3ms | ActiveRecord: 0.7ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.2ms) ROLLBACK  (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.8ms) 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.1ms) BEGIN  (0.6ms) 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", Fri, 12 Jul 2013 02:55:24 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$rXsbwGkLhsXYO3FbGIhtvOkYxycMnAsSJXy93LTypQTIk1dW6Qah6"], ["updated_at", Fri, 12 Jul 2013 02:55:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (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", Fri, 12 Jul 2013 02:55:24 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 02:55:24 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", Fri, 12 Jul 2013 02:55:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 02:55:24 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 02:55:24 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$L2JIgCQ0F6OHr6wJCaxHIuPOfkAtfiV6piK1VhkxiyPj5i00.ByJi"], ["updated_at", Fri, 12 Jul 2013 02:55:24 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", Fri, 12 Jul 2013 02:55:24 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$QzDRanE1h2q3QB65/Iaj4eK7KhoNnA3LD5b6mnTBbenSy8H4lE4bW"], ["updated_at", Fri, 12 Jul 2013 02:55:24 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", Fri, 12 Jul 2013 02:55:24 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 02:55:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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)  (1.0ms) 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.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)  (3.3ms) 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 ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) 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" = 'N4avqL4ZnsooqQxajSeH' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'N4avqL4ZnsooqQxajSeH', "updated_at" = '2013-07-12 02:55:24.997572' 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.1ms) ROLLBACK  (0.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  (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  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (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  (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) ROLLBACK  (0.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  (16.0ms) 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 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.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  (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  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (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.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  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 02:55:25 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$5QS8EFQSLRni1azWunFjOOv0NVF0gkbQLyB0YM54v1KUAxM143uK2"], ["updated_at", Fri, 12 Jul 2013 02:55:25 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", Fri, 12 Jul 2013 02:55:25 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 02:55:25 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 02:55:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 02:55:25 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (0.2ms) ROLLBACK  (0.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  (13.8ms) 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.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.2ms) ROLLBACK  (0.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.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  (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", Fri, 12 Jul 2013 02:55:25 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$WAI70m6QEnA8/xmt9/yAQ.FYYcOdNZKm5aBLbBvM20IjUC1ift5WC"], ["updated_at", Fri, 12 Jul 2013 02:55:25 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" = 'test2' 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", Fri, 12 Jul 2013 02:55:25 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 02:55:25 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 02:55:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 02:55:25 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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.0ms) 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")  (5.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)   (3.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 21:55:25 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.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" = 'user3@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 131ms (Views: 27.5ms | ActiveRecord: 2.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 21:55:25 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 21:55:25 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (3.1ms) ROLLBACK  (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  (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", Fri, 12 Jul 2013 02:55:26 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$UzljCsoFhLTVNDI5I9LG0uE2278OERcXEZGBbUmdCGK/jkDphv1xq"], ["updated_at", Fri, 12 Jul 2013 02:55:26 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 (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", Fri, 12 Jul 2013 02:55:26 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 02:55:26 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 02:55:26 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 02:55:26 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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.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")  (4.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)   (1.0ms) 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")  (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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Fri, 12 Jul 2013 02:55:26 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$91d/N28eW5CfkFyUq38/NuZBDgXMRE3DmxIzUU7WMUznMzoa1NC6K"], ["updated_at", Fri, 12 Jul 2013 02:55:26 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.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", Fri, 12 Jul 2013 02:55:26 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 2], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 02:55:26 UTC +00:00]]  (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", Fri, 12 Jul 2013 02:55:26 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 02:55:26 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 21:55:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 21:55:26 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@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" 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" = 1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.0ms) ROLLBACK  (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.1ms) 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.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", Fri, 12 Jul 2013 02:55:26 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$BFODwfZZgu58qDQoJKnu1.N5Rn58Epxm32MNXU0FIvlY0NT1mQ/x2"], ["updated_at", Fri, 12 Jul 2013 02:55:26 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.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", Fri, 12 Jul 2013 02:55:26 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 02:55:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 02:55:26 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 02:55:26 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (3.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.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")  (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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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)   (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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 21:55:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 21:55:26 -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 (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" = 'user6@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 105ms (Views: 4.4ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 21:55:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (4.1ms) ROLLBACK  (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  (11.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.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", Fri, 12 Jul 2013 02:55:26 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$njhMLjC/nFntI4Idr.q1UukRqN1/lEX/WWfVgAqTKHQCg9.V3Jb6e"], ["updated_at", Fri, 12 Jul 2013 02:55:26 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 (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", Fri, 12 Jul 2013 02:55:26 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 02:55:26 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 02:55:26 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 02:55:26 UTC +00:00], ["user_id", 1]]  (0.1ms) 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.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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.1ms) 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 21:55:26 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' LIMIT 1  (4.8ms) ROLLBACK  (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  (20.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  (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", Fri, 12 Jul 2013 02:55:26 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$kN3XzNS3wUQzjiH5dm9Odex8dEGTzgh2EVvDaiFp39WlM8v949BH2"], ["updated_at", Fri, 12 Jul 2013 02:55:26 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 (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", Fri, 12 Jul 2013 02:55:26 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 02:55:26 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 02:55:26 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 02:55:26 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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)  (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")  (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)   (1.0ms) 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")  (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.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-11 21:55:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 21:55:26 -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 (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.3ms) ROLLBACK  (0.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  (12.8ms) 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.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", Fri, 12 Jul 2013 02:55:27 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$QQ//9zwzqcezKzud1f25YemsVgj1WeVeKltKCTo6FkPkwAPJzkjv6"], ["updated_at", Fri, 12 Jul 2013 02:55:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Fri, 12 Jul 2013 02:55:27 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 02:55:27 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 02:55:27 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 02:55:27 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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.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.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)   (0.9ms) 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.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"  (0.3ms) 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') Started GET "/v1" for 127.0.0.1 at 2013-07-11 21:55:27 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 21:55:27 -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 (0.5ms) 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" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.3ms) ROLLBACK  (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  (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  (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", Fri, 12 Jul 2013 02:55:27 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$M2QwnLTnaiuHYBisuYKV0.gIGDm5iokg7WoPQdY7rCR9KltPLEpCy"], ["updated_at", Fri, 12 Jul 2013 02:55:27 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.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", Fri, 12 Jul 2013 02:55:27 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 02:55:27 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 02:55:27 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 02:55:27 UTC +00:00], ["user_id", 1]]  (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.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.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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)  (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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) 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 21:55:27 -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" = 'test9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 02:55:27 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$CX5JU5NQEpw3d1ARoRuah.ofp4FDJFfdQWr4HY7jSKHaE.Ygdwa6e"], ["updated_at", Fri, 12 Jul 2013 02:55:27 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", Fri, 12 Jul 2013 02:55:27 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 02:55:27 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 110ms (Views: 4.8ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.0ms) ROLLBACK  (0.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  (11.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  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.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  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (8.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 [["account_id", 1001]] Completed 201 Created in 128ms (Views: 101.3ms | ActiveRecord: 11.9ms)  (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.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.5ms) ROLLBACK  (0.1ms) BEGIN 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.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.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  (1.9ms) ROLLBACK  (0.8ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (4.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 03:38:09 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$jFUBMYCPaw3PUiOANs.ZWO9Gv5UCJL.FQfrF5WK9IBKosL6isnf8K"], ["updated_at", Fri, 12 Jul 2013 03:38:09 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 (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 12 Jul 2013 03:38:09 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 03:38:09 UTC +00:00]]  (0.2ms) 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", Fri, 12 Jul 2013 03:38:09 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 03:38:09 UTC +00:00], ["user_id", 1]]  (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", Fri, 12 Jul 2013 03:38:09 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$FajC6L1gD80dXwuZfRpH7uZ7awwEqrmqNOPiebSvKfsW0IHt.zcCi"], ["updated_at", Fri, 12 Jul 2013 03:38:09 UTC +00:00]]  (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", Fri, 12 Jul 2013 03:38:09 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$YOMG75Lmigd9cr7FzrEJzOx6ThTMzsrWmUarlwD.SxZ00OCPR18Ee"], ["updated_at", Fri, 12 Jul 2013 03:38:09 UTC +00:00]]  (0.3ms) 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" = '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", Fri, 12 Jul 2013 03:38:09 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 03:38:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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)  (1.1ms) 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.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)   (1.0ms) 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")  (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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GwdKonTDRYYNz5ZsYeow' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 2 [["authentication_token", "GwdKonTDRYYNz5ZsYeow"], ["updated_at", Fri, 12 Jul 2013 03:38:09 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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  (10.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  (5.0ms) 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  (8.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  (2.6ms) ROLLBACK  (0.3ms) BEGIN  (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 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$SHOmLd8W5IrcSNb5bY3ifeG/YEQjUdGtH2Qt8ZmsRqObSp1dyR1XG"], ["updated_at", Fri, 12 Jul 2013 03:38:10 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", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["name", "Test Account"], ["owner_id", 4], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 03:38:10 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", 3], ["created_at", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["user_id", 4]]  (1.8ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (3.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 3]]  (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.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.6ms) ROLLBACK  (0.6ms) BEGIN Cadenero::V1::Account Exists (0.8ms) 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  (9.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.3ms) 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.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.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  (3.3ms) ROLLBACK  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 22:38:10 -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", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$mymmuKvNWpagR5SDjgeimea7iY2hcbjGKUBobUOsLtKZJvPq8YGZe"], ["updated_at", Fri, 12 Jul 2013 03:38:10 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", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["name", "Testy"], ["owner_id", 5], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 03:38:10 UTC +00:00]]  (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", 4], ["created_at", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 4) LIMIT 1  (0.4ms) CREATE SCHEMA "test"  (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)  (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.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) 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" = 'zZrKzW6Modz4HZSYwEB7' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 4 [["authentication_token", "zZrKzW6Modz4HZSYwEB7"], ["updated_at", Fri, 12 Jul 2013 03:38:10 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 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", 4]] Completed 201 Created in 127ms (Views: 10.6ms | ActiveRecord: 36.9ms) 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.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  (43.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.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", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$SwnAZS4xmCO4lUHdMtNwYeABan/ISDc9gdORxUGg6quGLPHA0oCF2"], ["updated_at", Fri, 12 Jul 2013 03:38:10 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", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["name", "Testy"], ["owner_id", 6], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 03:38:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-11 22:38:10 -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.3ms | ActiveRecord: 0.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.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  (9.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  (7.8ms) 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", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$nk7tMN8QsoCgUY2hqzU/iOLNMsGZ8fFAfH1dqwzJbJNyxCAS1xgWu"], ["updated_at", Fri, 12 Jul 2013 03:38:10 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" = '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", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 7], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 03:38:10 UTC +00:00]]  (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", 6], ["created_at", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["user_id", 7]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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" ("authentication_token")  (1.7ms) 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)  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-11 22:38:10 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.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.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$ED5fhdwj4QxeSEhNdu2FUOchz6jBbWF4xrQNvTYKJLc6EwoCroYFq"], ["updated_at", Fri, 12 Jul 2013 03:38:10 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", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["user_id", 8]]  (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" = 8 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 8]] 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", 8]] Completed 201 Created in 45ms (Views: 31.3ms | ActiveRecord: 3.9ms) 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  (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  (6.3ms) ROLLBACK  (0.1ms) 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", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$v96CALHyBCMHbl07ogPW1OOItpJsZJAirnD55gSn/LP433r2W7ZuS"], ["updated_at", Fri, 12 Jul 2013 03:38:10 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", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 9], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 03:38:10 UTC +00:00]]  (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", 7], ["created_at", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["user_id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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.1ms) 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.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")  (70.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)   (33.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (21.4ms) SELECT version FROM "schema_migrations"  (12.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) 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 22:38: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 22:38:10 -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 ('test3') 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" = 'user4@example.com' LIMIT 1 [["account_id", 7]] Cadenero::User Load (3.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 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.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", 9]] Completed 201 Created in 22ms (Views: 6.0ms | ActiveRecord: 5.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 22:38:10 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true 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 8ms (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  (10.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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.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", Fri, 12 Jul 2013 03:38:10 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$l.W0Ygac14rdrF6pagSalOXj1d33h66bTy9geJmoQHQY3Lsya/5W2"], ["updated_at", Fri, 12 Jul 2013 03:38:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 10], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 03:38:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.8ms) 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", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["user_id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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.2ms) 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)  (0.8ms) 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")  (3.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)  (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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$LH5vbG204xOzkF1hu6ILwOP9CRcSirH3xv411OvvT1ZrmwoHY4lr."], ["updated_at", Fri, 12 Jul 2013 03:38:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 11], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 03:38:11 UTC +00:00]]  (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", 9], ["created_at", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-11 22:38:11 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 22:38:11 -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 ('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" = 'user6@example.com' LIMIT 1 [["account_id", 8]] 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  (16.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  (12.9ms) 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", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$4zywu8yf2JPbQzMAiJ3Yr.JNqJTuGVDda8E2CNIc8oroBKIdbonvq"], ["updated_at", Fri, 12 Jul 2013 03:38:11 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", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 12], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 03:38:11 UTC +00:00]]  (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", 10], ["created_at", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["user_id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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" ("authentication_token")  (12.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.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.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.8ms) 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 ('20130612073709')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 22:38:11 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (2.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" = $1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 [["account_id", 10]] Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 12 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 12]] 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", 12]] Completed 201 Created in 20ms (Views: 5.7ms | ActiveRecord: 6.7ms) Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-11 22:38:11 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"12", "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 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-11 22:38: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 2ms (Views: 0.6ms | 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  (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  (7.3ms) ROLLBACK  (0.4ms) 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", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$1e5ucDSeBOEVqkdKPvbdY.fMOvYGPmO4d7B20mUpxo0R35z2k3Aaq"], ["updated_at", Fri, 12 Jul 2013 03:38:11 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.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 13], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 03:38:11 UTC +00:00]]  (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", 11], ["created_at", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["user_id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.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.8ms) 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.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 ('20130612073709')  (0.1ms) 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 22:38:11 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@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  (8.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.2ms) ROLLBACK  (0.1ms) 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", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$n5IAqQJhsU2cMaj7DsaY2OGjgMEnNbtFTO7UQsOznGRHJQCJS7KeK"], ["updated_at", Fri, 12 Jul 2013 03:38:11 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", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 14], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 03:38:11 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", 12], ["created_at", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["user_id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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.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)  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (14.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 ('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 22:38:11 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 22:38:11 -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 ('test8') 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" = 'foo@example.com' LIMIT 1 [["account_id", 12]] Completed 422 Unprocessable Entity in 6ms (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" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.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  (12.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  (11.1ms) ROLLBACK  (0.3ms) 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", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$VypwwRV2Tk5rZXAQHwzTpOjogOzZzUfmKqhtMnctmo0RAy5YHivuS"], ["updated_at", Fri, 12 Jul 2013 03:38:11 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.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 15], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 03:38:11 UTC +00:00]]  (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", 13], ["created_at", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 03:38:11 UTC +00:00], ["user_id", 15]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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)   (3.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.4ms) 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)  (1.5ms) 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")  (15.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.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 ('20130612073709')  (0.2ms) 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 22:38:11 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-11 22:38:11 -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 ('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" = 'user@example.com' LIMIT 1 [["account_id", 13]] 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  (9.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  (8.3ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml  (4.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.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (21.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  (1.9ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 18ms (Views: 5.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (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  (17.7ms) 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  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.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  (62.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (1.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (13.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 14:37:28 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$tQ0.IKRYAhEMCKQ5aDjgWuHafFq/maUD6v8LzpXjjHtEKXIj4u1Ym"], ["updated_at", Fri, 12 Jul 2013 14:37:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (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", Fri, 12 Jul 2013 14:37:28 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 14:37:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 14:37:28 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:37:28 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.8ms) CREATE SCHEMA "test1"  (33.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.9ms) 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")  (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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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')  (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", Fri, 12 Jul 2013 14:37:28 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$YXCazQYXKDfWFyWzQQs77e8IpSV6Rt9ShcUNk21zlGDkUBldus8ba"], ["updated_at", Fri, 12 Jul 2013 14:37:28 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" = '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", Fri, 12 Jul 2013 14:37:28 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 14:37:28 UTC +00:00]]  (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", Fri, 12 Jul 2013 14:37:28 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:37:28 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 09:37:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 09:37:28 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@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" IN ('test1') 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" = 'user2@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 16ms (Views: 0.4ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.1ms) ROLLBACK  (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  (9.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  (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", Fri, 12 Jul 2013 14:37:28 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$u2IpFHbvDtfyMlucwsQjke6AN8IULiAoCo1eQK/b1BRoOTTHnxqeq"], ["updated_at", Fri, 12 Jul 2013 14:37:28 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", Fri, 12 Jul 2013 14:37:28 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 14:37:28 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 14:37:28 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:37:28 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.2ms) SELECT version FROM "schema_migrations"  (0.5ms) 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') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 09:37:28 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) 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 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 132ms (Views: 27.8ms | ActiveRecord: 2.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 09:37:28 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 09:37:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (5.3ms) ROLLBACK  (1.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  (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  (0.5ms) 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", Fri, 12 Jul 2013 14:37:29 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$BPyzxvbgwWvHqjGM.P6jkedD04S8B8M6mr2EYGL5qlOVfUNJidBZm"], ["updated_at", Fri, 12 Jul 2013 14:37:29 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 (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", Fri, 12 Jul 2013 14:37:29 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 14:37:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 14:37:29 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:37:29 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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.3ms) 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")  (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)  (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) 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-12 09:37:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 09:37:29 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 106ms (Views: 4.4ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 09:37:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.0ms) ROLLBACK  (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  (14.0ms) 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.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", Fri, 12 Jul 2013 14:37:29 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$cD1YMdwFj8zj39HVkQJ3PedXSfGXzkq/93HBY0GRJWF7cUVodYlGm"], ["updated_at", Fri, 12 Jul 2013 14:37:29 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.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", Fri, 12 Jul 2013 14:37:29 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 14:37:29 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 14:37:29 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:37:29 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.3ms) 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")  (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.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) 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-12 09:37:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 09:37:29 -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 (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" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (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.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  (16.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (0.5ms) 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", Fri, 12 Jul 2013 14:37:29 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$eUF9rNSlMCPwR4ACVwGTTO/y9kjXQkkaQtnAaAVWVqJm99Nod/ajK"], ["updated_at", Fri, 12 Jul 2013 14:37:29 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.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", Fri, 12 Jul 2013 14:37:29 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 14:37:29 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 14:37:29 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:37:29 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.1ms) 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)  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-12 09:37:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 09:37:29 -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 (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.9ms) ROLLBACK  (0.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  (12.3ms) 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.5ms) 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", Fri, 12 Jul 2013 14:37:29 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$IjxLuv7NOQTC8kPvPsobYeQM4Jy94RZbAykyhjNpk.9RZhE6z673K"], ["updated_at", Fri, 12 Jul 2013 14:37:29 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 (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", Fri, 12 Jul 2013 14:37:29 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 14:37:29 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 14:37:29 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:37:29 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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.0ms) 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.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.4ms) 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 ('20130612073709')  (0.1ms) 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-12 09:37:30 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' LIMIT 1  (6.0ms) ROLLBACK  (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  (16.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  (0.7ms) 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", Fri, 12 Jul 2013 14:37:30 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$nTifDDmxFtaAz3KryDrjiOlyO5LM/Nvfi0oHqarGT2kIkZb6xlbm."], ["updated_at", Fri, 12 Jul 2013 14:37:30 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" = 'test8' 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", Fri, 12 Jul 2013 14:37:30 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 14:37:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 14:37:30 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:37:30 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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)   (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")  (4.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)  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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.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 ('20130612073709')  (0.1ms) 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-12 09:37:30 -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" = 'test8' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 14:37:30 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$bwDNKhsB4g/QLQY9Wc5qZeo7KvScHp0Q85RU/1OP8FdEDAH2h11Lq"], ["updated_at", Fri, 12 Jul 2013 14:37:30 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", Fri, 12 Jul 2013 14:37:30 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:37:30 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 110ms (Views: 4.8ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.4ms) ROLLBACK  (0.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  (13.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.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.3ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 14:37:33 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$iqMi6HbLlEGjdx4zmrgrGOu8s0UmCvLTGygdzeQCzDwCDejGnyaSu"], ["updated_at", Fri, 12 Jul 2013 14:37:33 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 (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", Fri, 12 Jul 2013 14:37:33 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 14:37:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 14:37:33 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:37:33 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", Fri, 12 Jul 2013 14:37:33 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$zGm.55K126nqYMPLjfvVauqmAvUN1BezD6z8sdnuXoEPeuqUyg4.a"], ["updated_at", Fri, 12 Jul 2013 14:37:33 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", Fri, 12 Jul 2013 14:37:34 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$/H8JGoOFe3.2GikuDrevKueZD9I4UpIS1ZcDGI8wn9VhQVR1Y/Faq"], ["updated_at", Fri, 12 Jul 2013 14:37:34 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", Fri, 12 Jul 2013 14:37:34 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 14:37:34 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)   (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")  (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)  (0.8ms) 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")  (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.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) 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" = 'umx6e9x2LzpKDq8R4as8' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'umx6e9x2LzpKDq8R4as8', "updated_at" = '2013-07-12 14:37:34.089378' 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"   (10.4ms) ROLLBACK  (0.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  (31.9ms) 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  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 09:37:34 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 14:37:34 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$UhGwTAgIf0Ovo6rgrdRxk.PwQHTDUAcuxw1IeVqkvjmznV0jR17oq"], ["updated_at", Fri, 12 Jul 2013 14:37:34 UTC +00:00]] 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", Fri, 12 Jul 2013 14:37:34 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 14:37:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 14:37:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:37:34 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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  (0.2ms) CREATE SCHEMA "test"  (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)   (0.9ms) 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")  (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)  (3.3ms) 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")  (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.9ms) 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 ('20130612073709')  (0.2ms) 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" = 'yESurYpTExjvYv1XozLm' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'yESurYpTExjvYv1XozLm', "updated_at" = '2013-07-12 14:37:34.314318' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 168ms (Views: 3.1ms | ActiveRecord: 40.7ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.5ms) ROLLBACK  (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  (19.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  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 14:37:34 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$WA9Y6E7ZnWL9SriLFYAgjuh9zz8zAR3tlaPOVbyCRaxdDZmJu./n6"], ["updated_at", Fri, 12 Jul 2013 14:37:34 UTC +00:00]] 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", Fri, 12 Jul 2013 14:37:34 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 14:37:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 09:37:34 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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  (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 116ms (Views: 0.4ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.2ms) ROLLBACK  (0.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  (12.8ms) 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  (0.6ms) BEGIN  (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 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 14:37:34 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$s69u22Wwe.r1a522v6JGeu0CVxv2NAZqTTDkGl5zSV2GSDs7APMIa"], ["updated_at", Fri, 12 Jul 2013 14:37:34 UTC +00:00]] 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", Fri, 12 Jul 2013 14:37:34 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 14:37:34 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 14:37:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:37:34 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (0.2ms) ROLLBACK  (0.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.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  (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.3ms) ROLLBACK  (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.2ms) 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.7ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.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.7ms) 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  (0.3ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.2ms) ROLLBACK  (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  (13.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 Connecting to database specified by database.yml  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.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  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (33.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 14:51:17 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$pHuc2Cfle1/OXPPo7KFR9eEYOylW0lY18k4ida9rEg53mR6Ju.DS6"], ["updated_at", Fri, 12 Jul 2013 14:51:17 UTC +00:00]]  (2.0ms) RELEASE SAVEPOINT active_record_1  (7.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (3.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", Fri, 12 Jul 2013 14:51:17 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 14:51:17 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", Fri, 12 Jul 2013 14:51:17 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:51:17 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (7.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" ("authentication_token")  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (7.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 09:51:17 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 14:51:18 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$u3zZj8GktkkGyadxxPlw9eIltNYM6qL1jaNHA.loey2UAQ9XSar.i"], ["updated_at", Fri, 12 Jul 2013 14:51:18 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", Fri, 12 Jul 2013 14:51:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:51:18 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 196ms (Views: 76.3ms | ActiveRecord: 4.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  (13.5ms) ROLLBACK  (0.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  (14.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.2ms) 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", Fri, 12 Jul 2013 14:51:18 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$LYuJjV90.PKuShrQ0Ke.cOXIGMQ5p3psb79Z6uxzqvXgC9EKaLGs6"], ["updated_at", Fri, 12 Jul 2013 14:51:18 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", Fri, 12 Jul 2013 14:51:18 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 14:51:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 09:51:18 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.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  (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 117ms (Views: 0.3ms | ActiveRecord: 0.7ms) 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.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  (10.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  (0.8ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 09:51:18 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.8ms) 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", Fri, 12 Jul 2013 14:51:18 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$aQKE3tTcoJMJ5Z9rKbDdjuUdSFwmFyFABcsDr/Nh2ngz5AWsW7pye"], ["updated_at", Fri, 12 Jul 2013 14:51:18 UTC +00:00]] SQL (1.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", Fri, 12 Jul 2013 14:51:18 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 14:51:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (13.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", Fri, 12 Jul 2013 14:51:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:51:18 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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  (0.2ms) 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")  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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)  (2.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 ('20130612073709')  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5uRJSo9a1YhdY4CL48qP' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (1.1ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = '5uRJSo9a1YhdY4CL48qP', "updated_at" = '2013-07-12 14:51:18.670372' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 206ms (Views: 1.8ms | ActiveRecord: 59.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (5.5ms) ROLLBACK  (0.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  (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  (4.0ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) 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", Fri, 12 Jul 2013 14:51:22 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$Orn57y3.URjZonqtJHkkwebIjVo8gdUg72CfOGg8CTHh.87zwWEr."], ["updated_at", Fri, 12 Jul 2013 14:51:22 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" = 'test2' 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", Fri, 12 Jul 2013 14:51:22 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 14:51:22 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 14:51:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:51:22 UTC +00:00], ["user_id", 1]]  (0.9ms) 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", Fri, 12 Jul 2013 14:51:22 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$3hvPL83fDcUZeSZdxRcBOOIDwK884GZTvnNbHlqPiKMexsDJ3xW3a"], ["updated_at", Fri, 12 Jul 2013 14:51:22 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", Fri, 12 Jul 2013 14:51:22 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$dpRr3TEW3tTApjLFpHIidOhwYGzymUeZiWEyI37UUwwiOzFHjR/Z."], ["updated_at", Fri, 12 Jul 2013 14:51:22 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", Fri, 12 Jul 2013 14:51:22 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 14:51:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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.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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('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" = 'Xyt4AxPfpsM5Hpvs3eFv' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'Xyt4AxPfpsM5Hpvs3eFv', "updated_at" = '2013-07-12 14:51:22.474537' 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"   (3.4ms) ROLLBACK  (0.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  (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  (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", Fri, 12 Jul 2013 14:51:22 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$PNeGKtsdWIVHiXIDfEcIVe/VYGn6Mbakc/59bCI9.e8qfNZEq0Eni"], ["updated_at", Fri, 12 Jul 2013 14:51:22 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 (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", Fri, 12 Jul 2013 14:51:22 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 14:51:22 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 14:51:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:51:22 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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)  (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")  (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)   (0.9ms) 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.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)   (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 ('20130612073709')  (1.6ms) 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-12 09:51:22 -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-12 09:51:22 -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 (0.5ms) 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" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.3ms) 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  (14.8ms) 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  (0.4ms) 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", Fri, 12 Jul 2013 14:51:22 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$pOAEfk3aJ4EcTxBwre0UV.yzQqA8hwuE69AQQsh4cIs8igBQQhKP2"], ["updated_at", Fri, 12 Jul 2013 14:51:22 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 (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", Fri, 12 Jul 2013 14:51:22 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 14:51:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 14:51:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:51:22 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) CREATE SCHEMA "test4"  (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)  (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")  (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)   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.3ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-12 09:51:22 -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-12 09:51:22 -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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (2.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" = 1 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" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 108ms (Views: 4.5ms | ActiveRecord: 3.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 09:51:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.4ms) ROLLBACK  (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.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  (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", Fri, 12 Jul 2013 14:51:23 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$md.cfjzeQxsodR4Fd6XZWeK70H0jP/T3Yp.nLYpHRfyN.cTPlsfmq"], ["updated_at", Fri, 12 Jul 2013 14:51:23 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.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", Fri, 12 Jul 2013 14:51:23 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 14:51:23 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 14:51:23 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:51:23 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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.7ms) 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.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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.6ms) SELECT version FROM "schema_migrations"  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 09:51:23 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1  (4.8ms) ROLLBACK  (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  (15.1ms) 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.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", Fri, 12 Jul 2013 14:51:23 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$vIP3dRY330xDjPD3NqhsWOtyYqo6zWG2zpPuCMeqgs1MDPfA9H1aC"], ["updated_at", Fri, 12 Jul 2013 14:51:23 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.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", Fri, 12 Jul 2013 14:51:23 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 14:51:23 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 14:51:23 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:51:23 UTC +00:00], ["user_id", 1]]  (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)  (1.1ms) 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")  (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)   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 09:51:23 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') 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" = 'user7@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 113ms (Views: 4.7ms | ActiveRecord: 2.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-12 09:51:23 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 09:51:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (10.2ms) ROLLBACK  (0.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  (39.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  (0.1ms) BEGIN  (3.0ms) SAVEPOINT active_record_1 SQL (8.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 14:51:23 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$jdlIXVhs1F4aY3GAisQaCOsjsQfo62qMsBWnDt6BX2SYxMnDv4koO"], ["updated_at", Fri, 12 Jul 2013 14:51:23 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 (4.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", Fri, 12 Jul 2013 14:51:24 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 14:51:24 UTC +00:00]]  (2.0ms) RELEASE SAVEPOINT active_record_1  (1.3ms) 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", 1], ["created_at", Fri, 12 Jul 2013 14:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:51:24 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.3ms) CREATE SCHEMA "test7"  (8.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)  (3.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")  (13.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)   (2.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.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.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) 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-12 09:51:24 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 09:51:24 -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 (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 1.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  (5.5ms) ROLLBACK  (0.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  (24.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  (0.1ms) BEGIN  (0.4ms) 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", Fri, 12 Jul 2013 14:51:24 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$/oGmB3pVSpPgFuzdtkXmUuZgFnuN441aHuDca95OpM3ptNRK.e3ZK"], ["updated_at", Fri, 12 Jul 2013 14:51:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (5.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", Fri, 12 Jul 2013 14:51:24 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 14:51:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 14:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:51:24 UTC +00:00], ["user_id", 1]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test8"  (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.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (7.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (11.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)   (14.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (16.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (11.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", Fri, 12 Jul 2013 14:51:24 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$hEs9LAYDznx/.pJpsh3myeZ06QGvURpsOlU/u28DUcJmhBXnwLCh6"], ["updated_at", Fri, 12 Jul 2013 14:51:24 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.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", Fri, 12 Jul 2013 14:51:24 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 2], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 14:51:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.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", Fri, 12 Jul 2013 14:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:51:24 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 09:51:24 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 09:51:24 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user10@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.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" = 1 AND "public"."cadenero_users"."email" = 'user10@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 1.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  (6.2ms) ROLLBACK  (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  (16.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  (0.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.2ms) 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", Fri, 12 Jul 2013 14:51:24 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$th/BntgcI9sTRAH9zDJW0.81djxfrprLD8naX23.XqPhmtaD.rgGK"], ["updated_at", Fri, 12 Jul 2013 14:51:24 UTC +00:00]] 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", Fri, 12 Jul 2013 14:51:24 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 14:51:24 UTC +00:00]]  (0.2ms) 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", Fri, 12 Jul 2013 14:51:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:51:24 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (4.4ms) ROLLBACK  (0.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  (13.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (5.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  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (1.5ms) ROLLBACK  (0.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  (11.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.1ms) BEGIN Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (2.7ms) ROLLBACK  (1.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  (20.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.1ms) BEGIN Cadenero::V1::Account Exists (4.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.3ms) ROLLBACK  (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  (24.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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  (1.4ms) 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)  (7.8ms) ROLLBACK  (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  (26.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (11.1ms) ROLLBACK  (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  (33.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 Connecting to database specified by database.yml Connecting to database specified by database.yml  (1.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  (2.3ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (20.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 26ms (Views: 6.5ms | ActiveRecord: 0.0ms)  (1.5ms) ROLLBACK  (0.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  (37.7ms) 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  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (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  (21.1ms) 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.1ms) BEGIN Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (2.0ms) ROLLBACK  (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  (15.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (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  (17.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  (0.1ms) BEGIN Cadenero::V1::Account Exists (8.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (1.4ms) ROLLBACK  (0.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  (37.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  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (3.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 14:55:34 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$TgsZP4BAztVf8HVqMSciwenIIumkVGg23j2/G/e3P8EEkRlnH42AC"], ["updated_at", Fri, 12 Jul 2013 14:55:34 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", Fri, 12 Jul 2013 14:55:34 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 14:55:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 14:55:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:55:34 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (3.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 LIMIT 1  (0.8ms) ROLLBACK  (0.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  (13.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  (0.2ms) BEGIN  (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", Fri, 12 Jul 2013 14:55:35 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$XzlJdIrasiSBw99e9RXqhetOPKWt8LT8jEfscgToYa7trkaSdoYtG"], ["updated_at", Fri, 12 Jul 2013 14:55:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (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", Fri, 12 Jul 2013 14:55:35 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 14:55:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 14:55:35 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:55:35 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (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)   (5.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.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)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.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.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) 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-12 09:55:35 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 09:55:35 -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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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" = 'user1@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 (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1 Completed 201 Created in 201ms (Views: 83.2ms | ActiveRecord: 4.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 09:55:35 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true 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 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (5.7ms) ROLLBACK  (0.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  (18.1ms) 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.1ms) BEGIN  (10.3ms) SAVEPOINT active_record_1 SQL (3.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 14:55:35 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$eXoJnY7mhJeVClfK/nPcGeMlZzpo6VCWEqsjK3p02mx3WrQaz26m2"], ["updated_at", Fri, 12 Jul 2013 14:55:35 UTC +00:00]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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 (1.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", Fri, 12 Jul 2013 14:55:35 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 14:55:35 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", Fri, 12 Jul 2013 14:55:35 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:55:35 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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)   (9.0ms) 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")  (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)  (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (40.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.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (10.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.7ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 09:55:35 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' LIMIT 1  (14.2ms) ROLLBACK  (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  (45.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.1ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 14:55:35 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$a8ZK8NstZcSgD.fHItli3.T8Dmp557lDaO.kUC22s2NctyUN4ocOq"], ["updated_at", Fri, 12 Jul 2013 14:55:35 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", Fri, 12 Jul 2013 14:55:35 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 14:55:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 14:55:35 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:55:35 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test3"  (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)   (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.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.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")  (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)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) 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-12 09:55:36 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 09:55:36 -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 (0.5ms) 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" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.7ms) ROLLBACK  (3.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  (18.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (0.5ms) 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", Fri, 12 Jul 2013 14:55:36 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$wGqkVu1sEtpa2QIhb7NAX.cRD95HBDBG8rtjOKhDihNAi7nnR14pS"], ["updated_at", Fri, 12 Jul 2013 14:55: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 (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", Fri, 12 Jul 2013 14:55:36 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 14:55:36 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 14:55:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:55:36 UTC +00:00], ["user_id", 1]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (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.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.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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 09:55:36 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 09:55:36 -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 (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') 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" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.9ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.2ms) ROLLBACK  (0.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  (17.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (0.1ms) BEGIN  (1.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", Fri, 12 Jul 2013 14:55:36 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$L3Dyp5w1PnIt2NLKN5fgd.R98ZpuS6UXoufm4Ml9QNYQRr996Ze9W"], ["updated_at", Fri, 12 Jul 2013 14:55: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" = 'test5' LIMIT 1 SQL (2.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", Fri, 12 Jul 2013 14:55:36 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 14:55:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 14:55:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:55:36 UTC +00:00], ["user_id", 1]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (2.5ms) 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)  (10.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (17.9ms) 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 ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 09:55: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.2ms) 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" = 'user5@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 116ms (Views: 8.9ms | ActiveRecord: 3.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 09:55:36 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.5ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 09:55:36 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (2.6ms) ROLLBACK  (1.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  (26.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.1ms) 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", Fri, 12 Jul 2013 14:55:36 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$Y/m7udUTNWX1wbbrxaAqHe1DW8xlnPAG8jUYCB10fiYNx9oNBVrHm"], ["updated_at", Fri, 12 Jul 2013 14:55: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.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", Fri, 12 Jul 2013 14:55:36 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 14:55:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 14:55:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:55:36 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.0ms) 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")  (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)  (1.0ms) 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")  (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)   (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 14:55:37 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$kLpOUhTOSMC6OVvU5eyoYunK0Nh206INuXD4e1Km2Hc6QCn5r3.ia"], ["updated_at", Fri, 12 Jul 2013 14:55: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" = '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", Fri, 12 Jul 2013 14:55:37 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 2], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 14:55:37 UTC +00:00]]  (0.1ms) 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", 2], ["created_at", Fri, 12 Jul 2013 14:55:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:55:37 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 09:55:37 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 09:55:37 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@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" IN ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | 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  (6.8ms) 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  (12.8ms) 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  (0.3ms) BEGIN  (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", Fri, 12 Jul 2013 14:55:37 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$HdrVcHUaBGr6bgJSN6L51OchidZQgXWHfQNHNK/.W1Gdnzv/sR0ly"], ["updated_at", Fri, 12 Jul 2013 14:55: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" = 'test8' 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", Fri, 12 Jul 2013 14:55:37 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 14:55:37 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 14:55:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:55:37 UTC +00:00], ["user_id", 1]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (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.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 09:55:37 -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" = 'test8' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 14:55:37 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$XOcw3xBAZnWe334xMO.2U.4oQldYZqiKzUCFcuU44gpKhrvJOql2O"], ["updated_at", Fri, 12 Jul 2013 14:55:37 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", Fri, 12 Jul 2013 14:55:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:55:37 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 129ms (Views: 5.0ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.5ms) ROLLBACK  (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  (45.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  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 09:55:37 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.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 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 14:55:37 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$HbcoVlSrK35sqhbSVb7ipu1eH/k6gLrmFh.c12cAklkgi9KvSCRzO"], ["updated_at", Fri, 12 Jul 2013 14:55:37 UTC +00:00]] 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", Fri, 12 Jul 2013 14:55:37 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 14:55:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Fri, 12 Jul 2013 14:55:37 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:55:37 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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  (0.1ms) CREATE SCHEMA "test"  (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.2ms) 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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.2ms) 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 ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ohZqhUBKzcqQRppEYf6S' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.9ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'ohZqhUBKzcqQRppEYf6S', "updated_at" = '2013-07-12 14:55:37.621848' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 188ms (Views: 2.2ms | ActiveRecord: 38.0ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (4.5ms) ROLLBACK  (0.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.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.1ms) BEGIN  (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 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 14:55:37 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$v3SptTAoA1SvFtJ0HwzfAubCAnA4QWvHyTLkPQ32T2aZkVTMghzN6"], ["updated_at", Fri, 12 Jul 2013 14:55:37 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", Fri, 12 Jul 2013 14:55:37 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 14:55:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 09:55:37 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.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.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 111ms (Views: 0.3ms | ActiveRecord: 0.7ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.3ms) ROLLBACK  (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.0ms) 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.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 14:55:41 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$OPEmL/PhTvhIBwS3kaixR.Y2J4oAtzYVa7.m2dRBZnM5UVoI6wJWi"], ["updated_at", Fri, 12 Jul 2013 14:55:41 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 (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", Fri, 12 Jul 2013 14:55:41 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 14:55:41 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 14:55:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 14:55:41 UTC +00:00], ["user_id", 1]]  (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", Fri, 12 Jul 2013 14:55:41 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$mqZj.riAuK0TqhZx.sUhYeaiTyUgcA1eBPxM81uyVBYOiW61Kc8Tu"], ["updated_at", Fri, 12 Jul 2013 14:55:41 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", Fri, 12 Jul 2013 14:55:41 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$jIUwS8vDbDmh0TZHI0/oYuWRTbCyYmp21feoiPyU9hSDplpoY.nzu"], ["updated_at", Fri, 12 Jul 2013 14:55:41 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", Fri, 12 Jul 2013 14:55:41 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 14:55:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) 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")  (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)  (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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UCvqpKQsxwY7zLwrsmPp' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'UCvqpKQsxwY7zLwrsmPp', "updated_at" = '2013-07-12 14:55:41.663222' 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"   (3.0ms) ROLLBACK  (0.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  (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 Connecting to database specified by database.yml  (8.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) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.0ms) 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  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (9.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:00:42 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$2rSnfQQF5bAMiUCC9.3Qk.kYKfs5yVhEmbrzv7AoMjRfheaRjyHcq"], ["updated_at", Fri, 12 Jul 2013 15:00:42 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" = 'test1' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 15:00:42 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 15:00:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", Fri, 12 Jul 2013 15:00:42 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:00:42 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", Fri, 12 Jul 2013 15:00:42 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$QzgwDX51dKKJDMztWF7qb.F7CC5VW1a.gFU4FW9tnofysTalJ342i"], ["updated_at", Fri, 12 Jul 2013 15:00:42 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", Fri, 12 Jul 2013 15:00:43 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$nP4ngOecEd.aOOPMPA7jGOj.5g7fuQ.kSikW2MFdWv2tDCjOt.fCe"], ["updated_at", Fri, 12 Jul 2013 15:00:43 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", Fri, 12 Jul 2013 15:00:43 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 15:00:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www"  (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.1ms) 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.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)  (1.0ms) 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")  (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)  (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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ciyhQYvSq2zGCVRnhUNK' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.8ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'ciyhQYvSq2zGCVRnhUNK', "updated_at" = '2013-07-12 15:00:43.133891' 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"   (16.8ms) ROLLBACK  (0.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  (14.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  (0.3ms) 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.5ms) ROLLBACK  (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  (16.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.9ms) 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) ROLLBACK  (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  (17.8ms) 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.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", Fri, 12 Jul 2013 15:00:43 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$SN4juyQtmgYp0SUHXUPQTO5vqH6XDSVzdv2m6/jK61JuQALlTDe8W"], ["updated_at", Fri, 12 Jul 2013 15:00:43 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" = 'test2' 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", Fri, 12 Jul 2013 15:00:43 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 15:00:43 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", Fri, 12 Jul 2013 15:00:43 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:00:43 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.9ms) 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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 10:00: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" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:00:43 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Ex6wS1MlytY4EmQXeCFGUOSzzxJRra6oyhfFNlqERFc.YnGfqEzEy"], ["updated_at", Fri, 12 Jul 2013 15:00: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", 1], ["created_at", Fri, 12 Jul 2013 15:00:43 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:00:43 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 146ms (Views: 35.2ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.8ms) ROLLBACK  (0.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  (11.3ms) 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  (1.0ms) 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.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  (18.5ms) 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  (1.1ms) BEGIN  (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 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:00:43 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$msn8pHOH18qOpZB2x2mKyOgLH/40ddhnlGA4ppfsekrDQA7gUprVW"], ["updated_at", Fri, 12 Jul 2013 15:00:43 UTC +00:00]] 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", Fri, 12 Jul 2013 15:00:43 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:00:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:00:43 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:00:43 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (0.2ms) ROLLBACK  (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  (13.2ms) 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 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.3ms) ROLLBACK  (13.1ms) 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  (108.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  (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  (34.1ms) 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  (33.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  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 10:00:44 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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", Fri, 12 Jul 2013 15:00:44 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$QEmqQYs7gVaV3F148/GjMuqGLuUXAtHCx1dhy6/2oArSwmMAIzEGa"], ["updated_at", Fri, 12 Jul 2013 15:00:44 UTC +00:00]] SQL (1.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", Fri, 12 Jul 2013 15:00:44 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:00:44 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 15:00:44 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:00:44 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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  (0.1ms) CREATE SCHEMA "test"  (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")  (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)  (0.8ms) 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")  (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.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GHx7Zr86zGzvJGDjEx1x' LIMIT 1  (1.6ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'GHx7Zr86zGzvJGDjEx1x', "updated_at" = '2013-07-12 15:00:44.729508' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 263ms (Views: 1.9ms | ActiveRecord: 36.5ms) Cadenero::V1::Account Load (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (9.8ms) ROLLBACK  (0.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  (26.6ms) 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  (0.1ms) BEGIN  (6.6ms) 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.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:00:45 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$rSAewCIy0qBHkbs9iiGk7eGEbv4ExdSDEd9VpPpTCOQ/TBDG0xUY."], ["updated_at", Fri, 12 Jul 2013 15:00:45 UTC +00:00]] SQL (5.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", Fri, 12 Jul 2013 15:00:45 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:00:45 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 10:00:45 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (10.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (5.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (4.6ms) 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 212ms (Views: 0.4ms | ActiveRecord: 20.4ms) Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (1.2ms) ROLLBACK  (10.1ms) 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.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.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", Fri, 12 Jul 2013 15:00:45 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$MFn/E3ped/9ohKDcu85/H.5nG.yDwI87hogt6BzrjGrdMTFTyWaMm"], ["updated_at", Fri, 12 Jul 2013 15:00:45 UTC +00:00]]  (4.5ms) RELEASE SAVEPOINT active_record_1  (5.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (2.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", Fri, 12 Jul 2013 15:00:45 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 15:00:45 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:00:45 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:00:45 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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)  (1.5ms) 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")  (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)   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) 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)  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.9ms) 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 (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:00:45 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$gTxiNM9iCGMnZh61ONEtpeJYLCSatyChmnWv5e6G8STG5SmdIP0Um"], ["updated_at", Fri, 12 Jul 2013 15:00:45 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.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", Fri, 12 Jul 2013 15:00:45 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 2], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 15:00:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (9.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", Fri, 12 Jul 2013 15:00:45 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:00:45 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:00:45 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (8.4ms) ROLLBACK  (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  (18.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) 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.1ms) BEGIN  (0.3ms) 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", Fri, 12 Jul 2013 15:00:45 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$bdM037/h35gL9vhueo0lmedq218RM3HCUzYU/wUQBbv8Vwvvt/eEu"], ["updated_at", Fri, 12 Jul 2013 15:00:45 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.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", Fri, 12 Jul 2013 15:00:45 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 15:00:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Fri, 12 Jul 2013 15:00:46 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:00:46 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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")  (7.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (12.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)  (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")  (11.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)  (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.7ms) SELECT version FROM "schema_migrations"  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (6.3ms) ROLLBACK  (0.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  (35.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (1.4ms) BEGIN  (10.1ms) SAVEPOINT active_record_1 SQL (8.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:00:46 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$4jSbxX9LXUx6ugKyoemPEuarUMX.dy28ELppCO00oOA8QAVSK8bnq"], ["updated_at", Fri, 12 Jul 2013 15:00:46 UTC +00:00]]  (0.3ms) 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 (2.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", Fri, 12 Jul 2013 15:00:46 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 15:00:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 15:00:46 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:00:46 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (10.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (5.1ms) 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')  (6.8ms) ROLLBACK  (0.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  (13.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (8.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  (0.6ms) BEGIN  (8.9ms) SAVEPOINT active_record_1 SQL (9.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:00:46 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$MXkLgiBbDQCGmA2GIw8lsO1Uf83b8mzMKTS.e4w7DfiDY/BCn0jYS"], ["updated_at", Fri, 12 Jul 2013 15:00:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (7.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (11.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", Fri, 12 Jul 2013 15:00:46 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 15:00:46 UTC +00:00]]  (10.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 15:00:46 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:00:46 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)   (8.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (12.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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("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)   (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (21.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 ('20130612073709')  (18.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (4.5ms) ROLLBACK  (0.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  (23.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (9.4ms) BEGIN  (6.4ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:00:46 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$2szHjarayhlHQgLJjaixse7MbR3V/RCDB0u6oRnm6ITrmCj.V1GI."], ["updated_at", Fri, 12 Jul 2013 15:00:46 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (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" = 'test8' LIMIT 1 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", Fri, 12 Jul 2013 15:00:46 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 15:00:46 UTC +00:00]]  (1.3ms) 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", 1], ["created_at", Fri, 12 Jul 2013 15:00:46 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:00:46 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.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.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)   (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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.3ms) 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')  (3.2ms) ROLLBACK  (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  (10.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  (0.1ms) BEGIN  (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", Fri, 12 Jul 2013 15:00:47 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$n2NKnC/ie6.rlaY0/XWj.ug.oPYb9s/St7m5oWwYh0ZPIkenrc3Ai"], ["updated_at", Fri, 12 Jul 2013 15:00:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' 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", Fri, 12 Jul 2013 15:00:47 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 15:00:47 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 15:00:47 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:00:47 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (14.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)   (4.7ms) 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)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.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.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (5.5ms) ROLLBACK  (1.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  (22.3ms) 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 Connecting to database specified by database.yml  (5.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.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (17.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  (1.6ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (29.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:02:52 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$Q.CllkMJ0kdzqthGkzZHNOJDaYSiK8kumlQEG8Q4GiuQ5eUjtcx1m"], ["updated_at", Fri, 12 Jul 2013 15:02:52 UTC +00:00]]  (7.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 15:02:52 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 15:02:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (18.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 15:02:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:02:52 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (10.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.4ms) 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.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)  (2.2ms) 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")  (3.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)   (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) 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 ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (5.5ms) ROLLBACK  (0.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  (14.8ms) 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  (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", Fri, 12 Jul 2013 15:02:52 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$mwddxqaoRoQRkDVI4H2rKO52rNBK3Yy/v6aswSiYCWB56owBkJQam"], ["updated_at", Fri, 12 Jul 2013 15:02:52 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" = 'test2' 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", Fri, 12 Jul 2013 15:02:52 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 15:02:52 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 15:02:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:02:52 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) CREATE SCHEMA "test2"  (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" ("authentication_token")  (8.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (8.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.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (5.5ms) ROLLBACK  (4.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  (18.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.1ms) 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  (12.4ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:02:53 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$v2ldXMqitzP7ju2EWHBovu/ssfdbPZ97S1jhtMV63erf66Wsn6582"], ["updated_at", Fri, 12 Jul 2013 15:02:53 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 (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", Fri, 12 Jul 2013 15:02:53 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 15:02:53 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 15:02:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:02:53 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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)   (2.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")  (5.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)  (1.6ms) 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")  (3.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)  (4.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (4.9ms) ROLLBACK  (0.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  (43.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  (0.7ms) 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", Fri, 12 Jul 2013 15:02:53 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$xpBUO1sugNNwhcigTG59t.whRutMrUry157YL4J1lXqk47wwp4sl6"], ["updated_at", Fri, 12 Jul 2013 15:02:53 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 (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", Fri, 12 Jul 2013 15:02:53 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 15:02:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:02:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:02:53 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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)  (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")  (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)   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) 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')  (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", Fri, 12 Jul 2013 15:02:53 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$QqsZrAYdxCr5wy9VI8pL..FP80FMK66c9I072ducz6HpiCsN3uDka"], ["updated_at", Fri, 12 Jul 2013 15:02:53 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.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", Fri, 12 Jul 2013 15:02:53 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 2], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 15:02:53 UTC +00:00]]  (0.1ms) 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", 2], ["created_at", Fri, 12 Jul 2013 15:02:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:02:53 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:02:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (4.6ms) ROLLBACK  (0.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  (22.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.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", Fri, 12 Jul 2013 15:02:53 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$P0P70p8jP0IXDQaGaciYh.1YOQHmiGzjIMwMyDrjNoKebK4e./RN6"], ["updated_at", Fri, 12 Jul 2013 15:02:53 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.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", Fri, 12 Jul 2013 15:02:53 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 15:02:53 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 15:02:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:02:53 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (31.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)   (0.9ms) 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")  (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)  (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) 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)  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (5.0ms) SELECT version FROM "schema_migrations"  (12.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (7.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (3.0ms) ROLLBACK  (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  (13.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (4.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  (4.3ms) 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", Fri, 12 Jul 2013 15:02:54 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$VoSRBtx9YFxCh000kC8vFe/vaGirwDRppA6R/eJHLwwB1Hna61gHa"], ["updated_at", Fri, 12 Jul 2013 15:02:54 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" = 'test7' 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", Fri, 12 Jul 2013 15:02:54 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 15:02:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Fri, 12 Jul 2013 15:02:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:02:54 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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.4ms) 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.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)   (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.1ms) 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)  (1.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (5.4ms) ROLLBACK  (7.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  (27.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 Connecting to database specified by database.yml  (8.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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.7ms) 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  (0.4ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (9.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:13:24 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$oFP.lXzr8LOVPSta8Z7CFeR08wqrcYpiW36ss.LovSsPpMLgfJ0EG"], ["updated_at", Fri, 12 Jul 2013 15:13:24 UTC +00:00]]  (3.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 15:13:24 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 15:13:24 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", Fri, 12 Jul 2013 15:13:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:13:25 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (8.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.3ms) 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-12 10:13:25 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:13:25 -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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 200ms (Views: 88.0ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:13:25 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (11.6ms) ROLLBACK  (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  (23.5ms) 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  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (16.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:13:25 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$F3sdddzw1jhkk2Ew5jEk9uUM6hP2PPEFjmeVf1jRg8IefkTZ2XpWO"], ["updated_at", Fri, 12 Jul 2013 15:13:25 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (1.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Fri, 12 Jul 2013 15:13:25 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 15:13:25 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", Fri, 12 Jul 2013 15:13:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:13:25 UTC +00:00], ["user_id", 1]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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.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")  (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)  (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.0ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:13:25 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 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 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 152ms (Views: 4.5ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:13:25 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:13:25 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.2ms) ROLLBACK  (0.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  (33.2ms) 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  (1.0ms) BEGIN  (3.5ms) 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", Fri, 12 Jul 2013 15:13:26 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$y9UDyyILeXOludWehb/TLe7JBAW/ez3cQmU3AULW5j9ShuSdH/VRK"], ["updated_at", Fri, 12 Jul 2013 15:13:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Fri, 12 Jul 2013 15:13:26 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 15:13:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 1], ["created_at", Fri, 12 Jul 2013 15:13:26 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:13:26 UTC +00:00], ["user_id", 1]]  (2.0ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test3"  (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.2ms) 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.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)  (4.7ms) 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")  (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.4ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Fri, 12 Jul 2013 15:13:26 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$nNiliJS9aH75zhJAK5B4Oe7OHeJClg5zyF7hZ4P2SH3dhbSkdOVvi"], ["updated_at", Fri, 12 Jul 2013 15:13:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 15:13:26 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 2], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 15:13:26 UTC +00:00]]  (0.1ms) 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", 2], ["created_at", Fri, 12 Jul 2013 15:13:26 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:13:26 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:13:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:13:26 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@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" 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" = 1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.1ms) ROLLBACK  (0.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  (9.9ms) 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  (0.7ms) 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", Fri, 12 Jul 2013 15:13:26 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$31kwTlxK3UYF726OnXBg9e3cNsrv63PLUp3pkNODTCBw4jCuj5Xmi"], ["updated_at", Fri, 12 Jul 2013 15:13:26 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' 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", Fri, 12 Jul 2013 15:13:26 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 15:13:26 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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", Fri, 12 Jul 2013 15:13:26 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:13:26 UTC +00:00], ["user_id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test5"  (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.3ms) 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")  (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)  (5.1ms) 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")  (23.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)  (4.4ms) 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 ('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-12 10:13:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:13:26 -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 (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | 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' LIMIT 1  (3.6ms) ROLLBACK  (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  (19.3ms) 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.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (2.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:13:26 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$309GjOz3/ufeate8lkrKMuVPg8mpt6fWAhuoUPAAyF0KGeFYvkxzO"], ["updated_at", Fri, 12 Jul 2013 15:13:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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.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", Fri, 12 Jul 2013 15:13:26 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 15:13:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", Fri, 12 Jul 2013 15:13:26 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:13:26 UTC +00:00], ["user_id", 1]]  (3.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.3ms) 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")  (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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.6ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (20.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('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-12 10:13:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:13:26 -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 (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.7ms) ROLLBACK  (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  (17.6ms) 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  (0.1ms) BEGIN  (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", Fri, 12 Jul 2013 15:13:26 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$FyLVOvN5h8K4bSZOI5LZnevKeWYp6WWxz95YNOJzU0hVfnXY2OToK"], ["updated_at", Fri, 12 Jul 2013 15:13:26 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.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", Fri, 12 Jul 2013 15:13:26 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 15:13:26 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", Fri, 12 Jul 2013 15:13:26 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:13:26 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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)   (2.4ms) 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")  (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)  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (39.3ms) 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)  (10.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 ('20130612073709')  (0.1ms) 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-12 10:13:27 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' LIMIT 1  (5.3ms) ROLLBACK  (0.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  (17.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 Connecting to database specified by database.yml  (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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.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  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (10.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:24:13 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$JPDjpFsmIge5nQDQ379sCOzs0XrweH7ckIwpsZ5squmuFmchMjta6"], ["updated_at", Fri, 12 Jul 2013 15:24:13 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (6.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", Fri, 12 Jul 2013 15:24:13 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 15:24:13 UTC +00:00]]  (5.3ms) RELEASE SAVEPOINT active_record_1  (1.7ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 15:24:13 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:24:13 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (13.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)   (12.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (21.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.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)  (4.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) 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)  (1.6ms) 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 ('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-12 10:24:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:24:14 -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 (4.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 30ms (Views: 0.4ms | ActiveRecord: 5.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  (8.2ms) ROLLBACK  (1.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.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  (1.4ms) BEGIN  (0.1ms) 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", Fri, 12 Jul 2013 15:24:14 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$x5p9D8YQjkOpeUQCelKtlOVRtnZ4ILsT8mvK01MVSHKb11xEg0.wG"], ["updated_at", Fri, 12 Jul 2013 15:24:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Fri, 12 Jul 2013 15:24:14 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 15:24:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", Fri, 12 Jul 2013 15:24:14 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:24:14 UTC +00:00], ["user_id", 1]]  (3.8ms) RELEASE SAVEPOINT active_record_1  (3.3ms) CREATE SCHEMA "test2"  (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")  (7.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)  (7.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (13.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"  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) 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-12 10:24:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:24:14 -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 (2.0ms) 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" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 2.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  (6.7ms) ROLLBACK  (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  (31.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (8.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.0ms) BEGIN  (5.0ms) 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", Fri, 12 Jul 2013 15:24:14 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$bY5oynhk.IDDDur5hDvgTuhQHVvfIlrYHzTWGy7/aRS.sR.n/YZyO"], ["updated_at", Fri, 12 Jul 2013 15:24:14 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Fri, 12 Jul 2013 15:24:14 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 15:24:14 UTC +00:00]]  (4.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", Fri, 12 Jul 2013 15:24:14 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:24:14 UTC +00:00], ["user_id", 1]]  (5.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (7.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (9.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (35.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.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.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)  (4.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Fri, 12 Jul 2013 15:24:14 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$V3qVUTYGeZBQG8CJwEDI1.8gMI/zj2QnmPLyg1jUPkOIb1rljMwn2"], ["updated_at", Fri, 12 Jul 2013 15:24:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (28.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (10.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 15:24:14 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 2], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 15:24:14 UTC +00:00]]  (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", 2], ["created_at", Fri, 12 Jul 2013 15:24:14 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:24:14 UTC +00:00], ["user_id", 2]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:24:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:24:14 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@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" IN ('test3') LIMIT 1 Cadenero::User Load (7.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" = 'user4@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 12ms (Views: 0.4ms | ActiveRecord: 7.6ms) Cadenero::V1::Account Load (2.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.2ms) ROLLBACK  (0.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  (22.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  (0.1ms) BEGIN  (2.7ms) 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", Fri, 12 Jul 2013 15:24:15 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$hpuDG6akEk1y2GtU.ivCKukSMp.T8xcoBQU1WNns1xe60Ayo/AAdK"], ["updated_at", Fri, 12 Jul 2013 15:24:15 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 (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", Fri, 12 Jul 2013 15:24:15 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 15:24:15 UTC +00:00]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (2.7ms) SAVEPOINT active_record_1 SQL (2.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", Fri, 12 Jul 2013 15:24:15 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:24:15 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (25.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.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (9.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)  (3.9ms) 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")  (6.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.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')  (4.5ms) 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-12 10:24:15 -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-12 10:24:15 -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 (2.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (9.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 189ms (Views: 27.5ms | ActiveRecord: 13.1ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:24:15 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.9ms) ROLLBACK  (0.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  (24.4ms) 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  (0.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", Fri, 12 Jul 2013 15:24:15 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$eSwWM4UIOXOmUHPBOZTAPOjCOgk/bnW0uWfu4rYfrPtcT4Q6SIU3y"], ["updated_at", Fri, 12 Jul 2013 15:24:15 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.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", Fri, 12 Jul 2013 15:24:15 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 15:24:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:24:15 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:24:15 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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)   (0.9ms) 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)  (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")  (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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:24:15 -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.6ms) 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" = 'user6@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 129ms (Views: 4.9ms | ActiveRecord: 2.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:24:15 -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 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:24:15 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.0ms) ROLLBACK  (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  (18.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  (0.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", Fri, 12 Jul 2013 15:24:16 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$uPT/UM8Qhk0vXXTnvhdeaON.bsUMTQy7m8RZyhCwE8qv800hiO3ZK"], ["updated_at", Fri, 12 Jul 2013 15:24:16 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 (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", Fri, 12 Jul 2013 15:24:16 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 15:24:16 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 15:24:16 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:24:16 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) 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-12 10:24:16 -0500 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' LIMIT 1  (6.3ms) ROLLBACK  (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  (16.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (0.1ms) BEGIN  (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", Fri, 12 Jul 2013 15:24:16 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$yZVOsh0vYNM3wjLQyrEGXOv7lgfp0qhaYCs9utSAkKmgOl8OqmyhG"], ["updated_at", Fri, 12 Jul 2013 15:24:16 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" = 'test8' 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", Fri, 12 Jul 2013 15:24:16 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 15:24:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:24:16 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:24:16 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (3.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.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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.2ms) 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)  (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 ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 10:24:16 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>"#", "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (1.2ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 5ms  (2.2ms) ROLLBACK  (0.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  (13.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  (0.4ms) 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.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:24:20 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$LANAaTCmBRVvWhtMIVJMme/SOo3H.h4gkSTZqhuRC7WO0IKlbu63a"], ["updated_at", Fri, 12 Jul 2013 15:24: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" = 'test9' 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", Fri, 12 Jul 2013 15:24:20 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 15:24:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:24:20 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:24:20 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", Fri, 12 Jul 2013 15:24:20 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$xugivDOOlHyUc/5Rp6T36O38ExJ6ilwFZYx4xQe5dsdofjzgmwNku"], ["updated_at", Fri, 12 Jul 2013 15:24:20 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", Fri, 12 Jul 2013 15:24:20 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$HsjlvQ2q1BG7UMw7BiZpo.Pyxxug0qTRjnVwZ0EIPaagnidk0.amW"], ["updated_at", Fri, 12 Jul 2013 15:24:20 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", Fri, 12 Jul 2013 15:24:20 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 15:24:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "www"  (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.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)  (0.9ms) 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")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (5.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 ('20130612073709')  (0.2ms) 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" = 'hQ6c9q38Zxqc8iUYTs6A' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'hQ6c9q38Zxqc8iUYTs6A', "updated_at" = '2013-07-12 15:24:20.304362' 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"   (5.9ms) ROLLBACK  (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.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.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 5ms (Views: 4.0ms | ActiveRecord: 0.0ms)  (0.7ms) ROLLBACK  (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  (28.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  (1.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.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  (17.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  (0.3ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 10:24:20 -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 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:24:20 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$2fT5X5iBLECLuTF8R9wU9ehDy4fM9wupLy7p05Djb1oJxZEtG1qu6"], ["updated_at", Fri, 12 Jul 2013 15:24:20 UTC +00:00]] 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", Fri, 12 Jul 2013 15:24:20 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:24:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Fri, 12 Jul 2013 15:24:20 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:24:20 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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  (0.2ms) CREATE SCHEMA "test"  (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.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.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)  (0.9ms) 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")  (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.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.2ms) 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" = 'P1Jsq39XDcWUVVxJtSeK' LIMIT 1  (0.4ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'P1Jsq39XDcWUVVxJtSeK', "updated_at" = '2013-07-12 15:24:20.679528' WHERE "public"."cadenero_accounts"."id" = 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 232ms (Views: 1.8ms | ActiveRecord: 39.0ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (4.3ms) ROLLBACK  (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  (17.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.1ms) BEGIN  (0.7ms) 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.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:24:20 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$0LXJleRkjAtuiaiq8MWjnO0CcS0CNwED.kh7YEZrOknswD8iVzRPO"], ["updated_at", Fri, 12 Jul 2013 15:24:20 UTC +00:00]] 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", Fri, 12 Jul 2013 15:24:20 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:24:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 10:24:20 -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.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.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.3ms) ROLLBACK  (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  (13.5ms) 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  (2.5ms) BEGIN Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.3ms) ROLLBACK  (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  (15.7ms) 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.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:24:21 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$8ee9WRAC9XeGzFbh4TGqD.dWTGN9n5v8N2DVyfeMmXi9RwWiSBhQ."], ["updated_at", Fri, 12 Jul 2013 15:24:21 UTC +00:00]] SQL (1.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", Fri, 12 Jul 2013 15:24:21 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:24:21 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 15:24:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:24:21 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (0.2ms) ROLLBACK  (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  (18.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.5ms) 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.1ms) ROLLBACK  (0.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.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (1.9ms) BEGIN Cadenero::V1::Account Exists (14.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.4ms) ROLLBACK  (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  (32.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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 Connecting to database specified by database.yml  (10.1ms) 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  (4.3ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (21.7ms) 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  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (9.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:25:03 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$5Qk.Gu0XoSeHBjyUuVExc.wET/Hqs1YOPJhNI4R0A0i25QbhcJVJm"], ["updated_at", Fri, 12 Jul 2013 15:25:03 UTC +00:00]]  (3.1ms) RELEASE SAVEPOINT active_record_1  (28.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 15:25:03 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 15:25:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (5.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 15:25:03 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:25:03 UTC +00:00], ["user_id", 1]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (9.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" ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) 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")  (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.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (2.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 10:25:03 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>"#", "default"=>:json} Cadenero::V1::Account Load (6.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 12ms  (8.0ms) 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  (12.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (6.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  (1.7ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 10:25:03 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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", Fri, 12 Jul 2013 15:25:03 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$09VlIL5IJIWusCEG9MFgDO0nW3SqNop6y7lfzvBAw372PRyhBym8."], ["updated_at", Fri, 12 Jul 2013 15:25:03 UTC +00:00]] 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", Fri, 12 Jul 2013 15:25:03 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:25:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:25:03 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:25:03 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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  (0.1ms) CREATE SCHEMA "test"  (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)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (6.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (3.0ms) 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" = 'UjVdqxysqoyEmg7Lsexo' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (1.1ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'UjVdqxysqoyEmg7Lsexo', "updated_at" = '2013-07-12 15:25:03.707528' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 281ms (Views: 3.1ms | ActiveRecord: 66.7ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (5.3ms) ROLLBACK  (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.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.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 (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:25:03 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$9z3eGQf4zcaFECm4EYM22e.Azgkve404GVPCdbJ3MpT4fKdOjyrae"], ["updated_at", Fri, 12 Jul 2013 15:25:03 UTC +00:00]] 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", Fri, 12 Jul 2013 15:25:03 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:25:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 10:25:03 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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  (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 120ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.4ms) ROLLBACK  (0.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  (13.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  (6.7ms) 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", Fri, 12 Jul 2013 15:25:04 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$yQmD7e1l0e6N5ISL7iXXpOleX0np/rSRYI47qQ0UKHNSaWTzpRAF6"], ["updated_at", Fri, 12 Jul 2013 15:25:04 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" = 'test2' 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", Fri, 12 Jul 2013 15:25:04 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 15:25:04 UTC +00:00]]  (0.2ms) 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", 1], ["created_at", Fri, 12 Jul 2013 15:25:04 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:25:04 UTC +00:00], ["user_id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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)   (3.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (6.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.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)  (12.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 ('20130612073709')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:25:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:25:04 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>"{\"email\":\"foo@example.com\",\"password\":\"password\",\"password_confirmation\":\"password\"}", "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" = 'email' LIMIT 1 Completed 422 Unprocessable Entity in 12ms (Views: 0.3ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.0ms) ROLLBACK  (1.1ms) 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.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (0.3ms) 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", Fri, 12 Jul 2013 15:25:04 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$THQwaXJ2sGc4VjVF/6mBVe6FrNTI0sC/lQrnCxUuVJb1PY/GrHyYS"], ["updated_at", Fri, 12 Jul 2013 15:25:04 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" = 'test3' 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", Fri, 12 Jul 2013 15:25:04 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 15:25:04 UTC +00:00]]  (0.6ms) 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", 1], ["created_at", Fri, 12 Jul 2013 15:25:04 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:25:04 UTC +00:00], ["user_id", 1]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (8.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.2ms) 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.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.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:25:04 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>"{\"email\":\"user3@example.com\",\"password\":\"password\"}", "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') 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" = 1 AND "public"."cadenero_users"."email" = 'email' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 1.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1  (4.4ms) ROLLBACK  (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.8ms) 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.2ms) BEGIN  (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", Fri, 12 Jul 2013 15:25:04 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$eKshYGnOp3PE6HK6c2KIv.EdMPDDSCdaI6jmy0U94YLhxZ6Zzrh/u"], ["updated_at", Fri, 12 Jul 2013 15:25:04 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 (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", Fri, 12 Jul 2013 15:25:04 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 15:25:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (10.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", Fri, 12 Jul 2013 15:25:04 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:25:04 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test4"  (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.3ms) 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")  (4.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)  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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-12 10:25:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:25:04 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>"{\"email\":\"user@example.com\",\"password\":\"\",\"password_confirmation\":\"\"}", "default"=>:json} Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'email' LIMIT 1 Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (1.1ms) 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_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (16.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  (4.9ms) BEGIN  (0.1ms) 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", Fri, 12 Jul 2013 15:25:05 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$WfuGyOFzOTEINyfGnoMNzuawtVr9HIhl1x1hPQEZQq9vlHH2wPKSW"], ["updated_at", Fri, 12 Jul 2013 15:25:05 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.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", Fri, 12 Jul 2013 15:25:05 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 15:25:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.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", Fri, 12 Jul 2013 15:25:05 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:25:05 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (32.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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Fri, 12 Jul 2013 15:25:05 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$J0tMOGsE2qn14Zdo5ilt7OICAJRo2wnS93HIP9/Td.0YXMrCfCYgC"], ["updated_at", Fri, 12 Jul 2013 15:25:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Fri, 12 Jul 2013 15:25:05 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 15:25:05 UTC +00:00]]  (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", Fri, 12 Jul 2013 15:25:05 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:25:05 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:25:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:25:05 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>"{\"email\":\"user6@example.com\",\"password\":\"\",\"password_confirmation\":\"\"}", "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::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" = 'email' LIMIT 1 Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.8ms) ROLLBACK  (0.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.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  (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", Fri, 12 Jul 2013 15:25:05 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$jS8g9GHtJKJbvFYdzzQV.uBE50065jT42nnitM0k2erGUquTK8hvu"], ["updated_at", Fri, 12 Jul 2013 15:25:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' 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", Fri, 12 Jul 2013 15:25:05 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 15:25:05 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 15:25:05 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:25:05 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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)   (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.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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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")  (1.6ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:25:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:25:05 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>"{\"email\":\"user7@example.com\",\"password\":\"password\"}", "default"=>:json} Cadenero::V1::Account Load (0.7ms) 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" = 'email' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' LIMIT 1  (3.2ms) ROLLBACK  (0.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  (18.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (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", Fri, 12 Jul 2013 15:25:05 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$F1rz4i/Bj3Hp6JiwBE6q5Oym4TII1Hz79WjxpO/3Z.O1TNDL6sYae"], ["updated_at", Fri, 12 Jul 2013 15:25:05 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" = 'test8' LIMIT 1 SQL (2.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", Fri, 12 Jul 2013 15:25:05 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 15:25:05 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", Fri, 12 Jul 2013 15:25:05 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:25:05 UTC +00:00], ["user_id", 1]]  (2.8ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test8"  (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.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.4ms) 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)  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.4ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:25:05 -0500 Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@example.com' LIMIT 1  (5.8ms) ROLLBACK  (0.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  (14.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  (0.5ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (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", Fri, 12 Jul 2013 15:25:09 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$jbmVwa3rIrh5xpetHds33OTHybZGyk5WwjvFTFeA2AjaRokIzw8CW"], ["updated_at", Fri, 12 Jul 2013 15:25:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' 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", Fri, 12 Jul 2013 15:25:09 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 15:25:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:25:09 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:25:09 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", Fri, 12 Jul 2013 15:25:09 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$AzuyPASH1brCiqDONtQXAePu0sFsIQf44oM2bNts3ltp5eTYfye52"], ["updated_at", Fri, 12 Jul 2013 15:25:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:25:09 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$bJIVa4RZTD2XpEHr5GgwwuTdaC91aD.S4QSneQ2x7kpUrfaoNp.OK"], ["updated_at", Fri, 12 Jul 2013 15:25: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" = '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", Fri, 12 Jul 2013 15:25:09 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 15:25:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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")  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) 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")  (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.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 ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'V3592yPpTPDyYRtTRqTy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'V3592yPpTPDyYRtTRqTy', "updated_at" = '2013-07-12 15:25:09.684044' 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"   (5.7ms) ROLLBACK  (0.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  (16.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  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (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  (16.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  (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.2ms) ROLLBACK  (1.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  (17.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.1ms) BEGIN Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.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  (16.4ms) 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  (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.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  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (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  (17.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  (0.1ms) BEGIN  (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 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:25:10 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$BXIKdVmCmjQxNWOG/xnFjulhp7OMidX.Rxu4KPzwxAHCz4f/8WhH."], ["updated_at", Fri, 12 Jul 2013 15:25:10 UTC +00:00]] 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", Fri, 12 Jul 2013 15:25:10 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:25:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:25:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:25:10 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (0.3ms) ROLLBACK  (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  (17.8ms) 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 Connecting to database specified by database.yml  (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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (19.2ms) 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.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (10.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:26:15 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$VE53V19ydzcqMW5EtO1cv.lmkpyRGYB1Dkp45vWHS1gONGnqdz6l2"], ["updated_at", Fri, 12 Jul 2013 15:26:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.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", Fri, 12 Jul 2013 15:26:15 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 15:26:15 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", Fri, 12 Jul 2013 15:26:15 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:15 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (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)   (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (10.2ms) 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)  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (7.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 10:26:15 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:26:15 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$wKUKaSCYmTBN7PuB/86oWeu9/Se3zArIdh9Z83w9miQJhEsZ72Og."], ["updated_at", Fri, 12 Jul 2013 15:26:15 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", Fri, 12 Jul 2013 15:26:15 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:15 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 174ms (Views: 44.6ms | 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  (5.3ms) ROLLBACK  (3.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  (14.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) 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 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)  (5.5ms) ROLLBACK  (0.4ms) 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  (33.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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  (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)  (6.8ms) ROLLBACK  (0.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  (29.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (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", Fri, 12 Jul 2013 15:26:20 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$91f2Wf34m4w/CaDy3lW8t./YAcTfXXLTP6Htmd9ylvnAya8PWXsHW"], ["updated_at", Fri, 12 Jul 2013 15:26:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (5.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", Fri, 12 Jul 2013 15:26:20 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 15:26:20 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 1], ["created_at", Fri, 12 Jul 2013 15:26:20 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:20 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", Fri, 12 Jul 2013 15:26:20 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$euw.eJSuoNVo8sxkWc1LleeDthi0VHNQ7GNAuA4O7Gjm.7JrGaF9q"], ["updated_at", Fri, 12 Jul 2013 15:26:20 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", Fri, 12 Jul 2013 15:26:20 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$I15dILVu1XGu61URLTxeo.7X0NCIUCxgeDiARSyDkJotItxcXl5k6"], ["updated_at", Fri, 12 Jul 2013 15:26:20 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", Fri, 12 Jul 2013 15:26:20 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 15:26:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.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)  (1.2ms) 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")  (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)   (4.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) 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" = 'xhqo1fVHVSnbhBybp7j8' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (2.2ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'xhqo1fVHVSnbhBybp7j8', "updated_at" = '2013-07-12 15:26:20.458741' 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.9ms) ROLLBACK  (0.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  (14.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  (0.1ms) 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", Fri, 12 Jul 2013 15:26:20 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$I75vgHXCTa6snm2c6SFYsueYl2L0y07LAdqm4wxqP3sRgeC1oVZGW"], ["updated_at", Fri, 12 Jul 2013 15:26:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (37.2ms) 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 (2.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", Fri, 12 Jul 2013 15:26:20 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 15:26:20 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 15:26:20 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:20 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test3"  (30.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" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (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.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:26:20 -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-12 10:26:20 -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 (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | 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  (4.8ms) ROLLBACK  (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  (17.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  (0.3ms) 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", Fri, 12 Jul 2013 15:26:20 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$yR1hl4.pdFpW3J.if9dRVuuSvoUHkp69W9LWU7kHoVVTri3QiTC4W"], ["updated_at", Fri, 12 Jul 2013 15:26:20 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.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", Fri, 12 Jul 2013 15:26:20 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 15:26:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.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", Fri, 12 Jul 2013 15:26:20 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:20 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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.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")  (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)   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.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.3ms) 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')  (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", Fri, 12 Jul 2013 15:26:21 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$BA0yTJTJWI3S13jXOdlLFej76.RsZVkhmI8OFQ9twbcGIeKWz1ZBm"], ["updated_at", Fri, 12 Jul 2013 15:26:21 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.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", Fri, 12 Jul 2013 15:26:21 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 2], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 15:26:21 UTC +00:00]]  (0.1ms) 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", 2], ["created_at", Fri, 12 Jul 2013 15:26:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:21 UTC +00:00], ["user_id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:26:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:26:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@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" IN ('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"."email" = 'user6@example.com' LIMIT 1 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' LIMIT 1  (6.6ms) ROLLBACK  (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  (17.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  (0.4ms) 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", Fri, 12 Jul 2013 15:26:21 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$6NxyCqZDvOf8JdmW59edX.NjJvw8ztX6WKq/lFhzCeykxMZRi/XnW"], ["updated_at", Fri, 12 Jul 2013 15:26:21 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 (1.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", Fri, 12 Jul 2013 15:26:21 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 15:26:21 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", Fri, 12 Jul 2013 15:26:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:21 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test6"  (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.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.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.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")  (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.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('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-12 10:26:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:26:21 -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.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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"."email" = 'user7@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 109ms (Views: 5.2ms | ActiveRecord: 2.7ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:26:21 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true 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 7ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (9.3ms) ROLLBACK  (3.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  (73.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  (0.1ms) BEGIN  (9.3ms) 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", Fri, 12 Jul 2013 15:26:21 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$.0kCnuVj9TlGbcZ.s2CpBewEd.P5uOyxNuFUIVsbo.U.gwUqPtwzy"], ["updated_at", Fri, 12 Jul 2013 15:26:21 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" = 'test7' 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", Fri, 12 Jul 2013 15:26:21 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 15:26:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (10.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 15:26:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:21 UTC +00:00], ["user_id", 1]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (17.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)  (7.7ms) 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")  (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)   (4.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) 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 ('20130612073709')  (0.5ms) 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-12 10:26:22 -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-12 10:26:22 -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 (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 11ms (Views: 0.5ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (2.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.1ms) ROLLBACK  (0.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  (18.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  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:26:22 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$ianb3OIj0RRvFQFft1sequGeZC6K8BEJv3bMwNaAhzZ1ZY.dkXFSa"], ["updated_at", Fri, 12 Jul 2013 15:26:22 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" = 'test8' 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", Fri, 12 Jul 2013 15:26:22 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 15:26:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", Fri, 12 Jul 2013 15:26:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:22 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (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)  (2.8ms) 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.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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:26:22 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@example.com' LIMIT 1  (4.9ms) ROLLBACK  (0.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  (13.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  (0.4ms) 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", Fri, 12 Jul 2013 15:26:22 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$4msJ/k0gqK0HOEq7knp7secxxq6e5MQ5RaOnc2Ht1zqB/El.l6ga6"], ["updated_at", Fri, 12 Jul 2013 15:26:22 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 (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", Fri, 12 Jul 2013 15:26:22 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 15:26:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:26:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:22 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.3ms) CREATE SCHEMA "test9"  (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)  (3.9ms) 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")  (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)   (3.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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)  (3.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) 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-12 10:26:22 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user10@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 'user10@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 (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 120ms (Views: 4.6ms | ActiveRecord: 2.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user10@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:26:22 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:26:22 -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 60ms (Views: 0.7ms | ActiveRecord: 0.0ms)  (17.0ms) ROLLBACK  (0.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  (33.2ms) 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.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:26:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$NHoXzK6NjdJPyBYGW0h0h.zR72E9lQOhNx.iAY.R4OLAj2tOiQlQC"], ["updated_at", Fri, 12 Jul 2013 15:26:22 UTC +00:00]] 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", Fri, 12 Jul 2013 15:26:22 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:26:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:26:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:22 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (3.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 LIMIT 1  (0.2ms) ROLLBACK  (1.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  (24.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  (0.3ms) 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.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  (39.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (4.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  (2.4ms) BEGIN Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (1.4ms) ROLLBACK  (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  (22.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  (0.1ms) BEGIN Cadenero::V1::Account Exists (23.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (11.7ms) ROLLBACK  (2.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  (21.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (0.7ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 10:26: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}  (19.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (42.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (8.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:26:24 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$LiK4ZzuYTz67X1KM7FI9peKe6QOKUKxS98b2ZDdzsY7I3uKU5gDua"], ["updated_at", Fri, 12 Jul 2013 15:26:24 UTC +00:00]] SQL (2.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", Fri, 12 Jul 2013 15:26:24 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:26:24 UTC +00:00]]  (1.5ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (20.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 15:26:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:24 UTC +00:00], ["user_id", 1]]  (10.5ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (14.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (2.3ms) CREATE SCHEMA "test"  (37.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)   (12.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (21.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.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.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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') Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'W64JMWgPTEN21LRzTsyM' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (2.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'W64JMWgPTEN21LRzTsyM', "updated_at" = '2013-07-12 15:26:24.402000' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 503ms (Views: 2.5ms | ActiveRecord: 259.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (4.8ms) ROLLBACK  (1.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  (31.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (0.1ms) BEGIN  (2.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (9.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 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", Fri, 12 Jul 2013 15:26:24 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$1tlDewzhfzx9unfFj.TyKuOxGDpA90NHvyFqeHeB7tO2K/IqAtHmq"], ["updated_at", Fri, 12 Jul 2013 15:26:24 UTC +00:00]] SQL (2.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", Fri, 12 Jul 2013 15:26:24 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:26:24 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 10:26:24 -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.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 188ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.6ms) ROLLBACK  (0.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  (32.5ms) 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 Connecting to database specified by database.yml  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (19.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  (0.9ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (10.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:26:47 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$t/gQmcTl4F2RuY9ARSfPkeHZM1M5sZxGMWmHenkgeWJy.tN4KSdLu"], ["updated_at", Fri, 12 Jul 2013 15:26:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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" = 'test1' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 15:26:47 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 15:26:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", Fri, 12 Jul 2013 15:26:47 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:47 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", Fri, 12 Jul 2013 15:26:47 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$rWU4BZs6GUf4Hqta7wLWpeuS9HX.PUOCSdb7kbVchFVR.b0XLNbNO"], ["updated_at", Fri, 12 Jul 2013 15:26:47 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", Fri, 12 Jul 2013 15:26:47 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$IOnTdWkI5uVJXqin0Hs8GegFufJBCKib.FAYrWtm4UlAeNJJKL8G."], ["updated_at", Fri, 12 Jul 2013 15:26:47 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", Fri, 12 Jul 2013 15:26:47 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 15:26:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www"  (28.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)   (4.0ms) 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")  (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)  (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")  (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.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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FxNYqymT6TJxCPTuahZt' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'FxNYqymT6TJxCPTuahZt', "updated_at" = '2013-07-12 15:26:47.735300' 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"   (5.7ms) ROLLBACK  (0.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  (11.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  (0.7ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (6.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  (18.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.6ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (1.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  (20.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  (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.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  (16.9ms) 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  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.4ms) ROLLBACK  (1.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  (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  (1.5ms) BEGIN Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.8ms) 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  (14.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (1.0ms) 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", Fri, 12 Jul 2013 15:26:48 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$HBr2LP8QzcYtiM/TCUu3tOPF4Zm7A8ajh.7Rj/RNjfy4GIkNqr9Fa"], ["updated_at", Fri, 12 Jul 2013 15:26:48 UTC +00:00]] 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", Fri, 12 Jul 2013 15:26:48 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:26:48 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", Fri, 12 Jul 2013 15:26:48 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:48 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (0.4ms) ROLLBACK  (0.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  (12.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  (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", Fri, 12 Jul 2013 15:26:48 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$mjCLOdJ3HC/LQihX/sfYoORGqAoPRj0yO9qn4WESsubFLXzSlD5K2"], ["updated_at", Fri, 12 Jul 2013 15:26:48 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" = 'test2' 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", Fri, 12 Jul 2013 15:26:48 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 15:26:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:26:48 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:48 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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" ("authentication_token")  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) 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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.7ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-12 10:26:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:26:48 -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 (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (2.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" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 2.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  (13.9ms) ROLLBACK  (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  (24.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (45.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  (0.1ms) 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", Fri, 12 Jul 2013 15:26:49 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$/I64INu2jnXWJZd.5TwZse/TG/3QEdwNoqHe4wygMv8LqVB/JbsaW"], ["updated_at", Fri, 12 Jul 2013 15:26:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) 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 (1.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", Fri, 12 Jul 2013 15:26:49 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 15:26:49 UTC +00:00]]  (14.9ms) RELEASE SAVEPOINT active_record_1  (1.0ms) 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", Fri, 12 Jul 2013 15:26:49 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:49 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (7.8ms) CREATE SCHEMA "test3"  (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)  (7.7ms) 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")  (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)   (15.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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)   (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.4ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:26:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:26:49 -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.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') 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" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (2.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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" = 1 Completed 201 Created in 166ms (Views: 36.2ms | ActiveRecord: 8.2ms) Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:26:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (5.6ms) ROLLBACK  (2.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  (17.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.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (11.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:26:49 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$O3NFlrbwkfCpZnGxinW4n.x9gq.rbezktf39SL7yE9HhlnUYD0kue"], ["updated_at", Fri, 12 Jul 2013 15:26:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (6.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", Fri, 12 Jul 2013 15:26:49 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 15:26:49 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.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", Fri, 12 Jul 2013 15:26:49 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:49 UTC +00:00], ["user_id", 1]]  (6.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (6.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" ("authentication_token")  (11.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.9ms) 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")  (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)  (5.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.6ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.1ms) 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-12 10:26:49 -0500 Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' LIMIT 1  (4.2ms) ROLLBACK  (25.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  (30.1ms) 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.1ms) BEGIN  (2.6ms) SAVEPOINT active_record_1 SQL (4.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:26:50 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$onEwsPNxuIwvZW5dMoK9MOPhr7wWAKHA6W.Alv.UmE74m8Q4N0wmG"], ["updated_at", Fri, 12 Jul 2013 15:26:50 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (5.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.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", Fri, 12 Jul 2013 15:26:50 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 15:26:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Fri, 12 Jul 2013 15:26:50 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:50 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (17.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)   (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (3.7ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:26:50 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$uA.oSYCakFsuh.zxG26ECeyBtbCGICs6NQ2UEsGOsCXMMXz4ir.Mi"], ["updated_at", Fri, 12 Jul 2013 15:26:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.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", Fri, 12 Jul 2013 15:26:50 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 15:26:50 UTC +00:00]]  (0.1ms) 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", 2], ["created_at", Fri, 12 Jul 2013 15:26:50 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:50 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:26:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:26:50 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@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" IN ('test5') LIMIT 1 Cadenero::User Load (2.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | 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  (7.9ms) ROLLBACK  (0.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  (18.2ms) 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.1ms) BEGIN  (0.9ms) 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", Fri, 12 Jul 2013 15:26:50 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$ikjHE5X5JdL9TnN191oaZ.akzptmYsTLr5wq079ffvbA6RvVHf3j."], ["updated_at", Fri, 12 Jul 2013 15:26:50 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (46.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (9.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' 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", Fri, 12 Jul 2013 15:26:50 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 15:26:50 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 15:26:50 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:50 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (10.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.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)   (3.9ms) 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.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)   (14.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.5ms) SELECT version FROM "schema_migrations"  (0.5ms) 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-12 10:26:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:26:50 -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 (9.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 16ms (Views: 0.4ms | ActiveRecord: 10.3ms) Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.6ms) ROLLBACK  (0.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  (40.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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  (1.7ms) BEGIN  (1.3ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:26:51 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$ZXQDcOtEtdBizLLl7K.etuItVGeNWCVXguN.OjKbIO7LZbo87BXQa"], ["updated_at", Fri, 12 Jul 2013 15:26:51 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" = 'test8' 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", Fri, 12 Jul 2013 15:26:51 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 15:26:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (15.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", Fri, 12 Jul 2013 15:26:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:51 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (13.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.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (8.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.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)   (4.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (8.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:26:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1 Completed 201 Created in 141ms (Views: 7.2ms | ActiveRecord: 5.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:26:51 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:26:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (8.1ms) ROLLBACK  (0.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  (31.2ms) 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.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 (2.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:26:51 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$T5DvYLEBPCiQDRm2LwiS9.mFmyC3fJMQYlZe2maEppCfypmIK1ehq"], ["updated_at", Fri, 12 Jul 2013 15:26:51 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", Fri, 12 Jul 2013 15:26:51 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:26:51 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 10:26:51 -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.3ms) 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.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 140ms (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" = 'Testy' LIMIT 1  (0.4ms) ROLLBACK  (0.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  (24.3ms) 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  (0.7ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 10:26:51 -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 (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:26:52 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$7hv5huGsdIg/7N8LnS0FweFHPkF2zpcSeVKGwh1Yn49E0VHPNLhl6"], ["updated_at", Fri, 12 Jul 2013 15:26:52 UTC +00:00]] 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", Fri, 12 Jul 2013 15:26:52 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:26:52 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 15:26:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:52 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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  (0.1ms) CREATE SCHEMA "test"  (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.0ms) 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")  (5.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)   (4.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.0ms) 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" = 'jrixwrebAQ13dKzcDsms' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (1.0ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'jrixwrebAQ13dKzcDsms', "updated_at" = '2013-07-12 15:26:52.163747' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 194ms (Views: 2.0ms | ActiveRecord: 58.3ms) Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.5ms) ROLLBACK  (0.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  (23.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  (0.1ms) BEGIN  (0.1ms) 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", Fri, 12 Jul 2013 15:26:52 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$3oEByhzaxOi3pZG.Ncn7Mus99BZ9IyP7DfX6b8cjcZB18eES2oUpu"], ["updated_at", Fri, 12 Jul 2013 15:26:52 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 15:26:52 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 15:26:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:26:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:52 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (12.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")  (5.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("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)   (2.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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")  (4.3ms) SELECT version FROM "schema_migrations"  (0.6ms) 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/users" for 127.0.0.1 at 2013-07-12 10:26:52 -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" = 'test9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:26:52 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$uWZewFSOtJcPZFyakbEcT.ViHovwY9gDO4YSs6s4k.0sCd/DLonrC"], ["updated_at", Fri, 12 Jul 2013 15:26:52 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", Fri, 12 Jul 2013 15:26:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:26:52 UTC +00:00], ["user_id", 2]]  (2.9ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 128ms (Views: 5.3ms | ActiveRecord: 5.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.4ms) ROLLBACK  (0.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  (26.3ms) 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 Connecting to database specified by database.yml  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (47.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (0.7ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 15ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (1.0ms) ROLLBACK  (0.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  (30.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.1ms) 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  (1.4ms) 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.8ms) ROLLBACK  (0.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  (22.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  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 10:28: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_1 Cadenero::V1::Account Exists (8.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (4.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:28:06 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$SJDerSQbqAB24wFYp/FZs.slmN4xXzIAouYKohggFV59uKiCulc5y"], ["updated_at", Fri, 12 Jul 2013 15:28:06 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", Fri, 12 Jul 2013 15:28:06 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:28:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 15:28:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:28:06 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 1) LIMIT 1  (0.3ms) CREATE SCHEMA "test"  (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)  (3.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.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.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.3ms) 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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'g3cMUsADHHZtpiV1yGNv' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'g3cMUsADHHZtpiV1yGNv', "updated_at" = '2013-07-12 15:28:06.954305' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 558ms (Views: 1.8ms | ActiveRecord: 104.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.9ms) ROLLBACK  (0.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  (40.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.1ms) BEGIN  (2.5ms) 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 (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:28:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$IEhqFzHz93XqXFbhqkZIVOvFABNsBdZp8LfaFmYIsDLbC6sEORmkW"], ["updated_at", Fri, 12 Jul 2013 15:28:07 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", Fri, 12 Jul 2013 15:28:07 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:28:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 10:28:07 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) 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 118ms (Views: 0.3ms | ActiveRecord: 0.7ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.2ms) ROLLBACK  (0.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  (14.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  (0.1ms) BEGIN  (2.9ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (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", Fri, 12 Jul 2013 15:28:11 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$DUiohuWrK1SrzaZrRXUEL.3AmphBIcKfSVqgRN6bP.lAxiqxxIdn2"], ["updated_at", Fri, 12 Jul 2013 15:28:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.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", Fri, 12 Jul 2013 15:28:11 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 15:28:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:28:11 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:28:11 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", Fri, 12 Jul 2013 15:28:11 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$AcQKsJcET3yp/XP.GPx/ye/A4L9vT34Biu1sjb9yk.3DFxHCE1VAG"], ["updated_at", Fri, 12 Jul 2013 15:28:11 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", Fri, 12 Jul 2013 15:28:11 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$NiCcQoQgA2r4WAUPQcI.nel/YHC2vGDdsdlDy3t9mazGyKbRjQTy2"], ["updated_at", Fri, 12 Jul 2013 15:28:11 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", Fri, 12 Jul 2013 15:28:11 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 15:28:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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.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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'o6cMe95gE7XuZ8ZUvDqf' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (1.5ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'o6cMe95gE7XuZ8ZUvDqf', "updated_at" = '2013-07-12 15:28:11.407410' 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"   (5.2ms) ROLLBACK  (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  (14.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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.3ms) 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.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.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.9ms) 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 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (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  (16.1ms) 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.1ms) BEGIN Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.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  (30.0ms) 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  (0.1ms) BEGIN  (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 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:28:11 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$F7x5o0AqXPP9G7zok4xt4ewRh/brqGZioBYkM1LAdBOYVZxQr2YM6"], ["updated_at", Fri, 12 Jul 2013 15:28:11 UTC +00:00]] 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", Fri, 12 Jul 2013 15:28:11 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:28:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:28:11 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:28:11 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (0.3ms) ROLLBACK  (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.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  (3.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", Fri, 12 Jul 2013 15:28:12 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$5EyFfwN8NSaRhZV5YKBfPuLF2ELRIb9amievKfixSuWLXsTmEKr12"], ["updated_at", Fri, 12 Jul 2013 15:28:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (3.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", Fri, 12 Jul 2013 15:28:12 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 15:28:12 UTC +00:00]]  (1.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", Fri, 12 Jul 2013 15:28:12 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:28:12 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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)  (3.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")  (4.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)   (6.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")  (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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:28:12 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:28:12 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 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" = 1 LIMIT 1 Cadenero::V1::Account Load (0.4ms) 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 131ms (Views: 28.0ms | ActiveRecord: 2.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:28:12 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.4ms) ROLLBACK  (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  (19.3ms) 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.1ms) BEGIN  (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", Fri, 12 Jul 2013 15:28:12 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$BOCr6n1hYTt4mtRSiIowmubOam.XRkiQA2gBc.TX.2gPIpd3RsGiy"], ["updated_at", Fri, 12 Jul 2013 15:28:12 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 (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", Fri, 12 Jul 2013 15:28:12 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 15:28:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (4.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", Fri, 12 Jul 2013 15:28:12 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:28:12 UTC +00:00], ["user_id", 1]]  (0.1ms) 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)  (12.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.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)   (7.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.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 ('20130612073709')  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (8.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:28:12 -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 ('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"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 143ms (Views: 10.2ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:28:13 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (3.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 3.1ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:28:13 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (6.9ms) ROLLBACK  (0.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  (18.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (1.2ms) BEGIN  (8.2ms) SAVEPOINT active_record_1 SQL (4.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:28:13 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$iEcO7Vj1SVAByNf5sQVk7us51tNo1diaBDCi/GFKG1jS6s8J4yj.i"], ["updated_at", Fri, 12 Jul 2013 15:28:13 UTC +00:00]]  (4.9ms) RELEASE SAVEPOINT active_record_1  (5.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Fri, 12 Jul 2013 15:28:13 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 15:28:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Fri, 12 Jul 2013 15:28:13 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:28:13 UTC +00:00], ["user_id", 1]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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)  (1.5ms) 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")  (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)   (1.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")  (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)  (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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-12 10:28:13 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:28:13 -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 (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (9.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 15ms (Views: 0.4ms | ActiveRecord: 11.2ms) Cadenero::V1::Account Load (3.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (12.1ms) ROLLBACK  (1.1ms) 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  (18.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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.2ms) BEGIN  (2.2ms) SAVEPOINT active_record_1 SQL (9.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:28:13 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$uccYMLXoaZElXHqVaB9A1eChSBXerj32oNSkOBooiOwQejPsTwCM."], ["updated_at", Fri, 12 Jul 2013 15:28:13 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 (5.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", Fri, 12 Jul 2013 15:28:13 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 15:28:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:28:13 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:28:13 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (8.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.0ms) 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")  (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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.1ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (8.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:28:13 -0500 Cadenero::V1::Account Load (10.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1  (5.0ms) ROLLBACK  (0.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  (20.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  (0.1ms) BEGIN  (10.1ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:28:14 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$rYuEx/60ve7LMvvNUP.rCe5wbmAsdJx4YhWmKXy.igAoAtPULh9Ae"], ["updated_at", Fri, 12 Jul 2013 15:28:14 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (9.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' 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", Fri, 12 Jul 2013 15:28:14 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 15:28:14 UTC +00:00]]  (0.2ms) 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", 1], ["created_at", Fri, 12 Jul 2013 15:28:14 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:28:14 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (7.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (20.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (13.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (26.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)   (7.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)  (3.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.7ms) 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", Fri, 12 Jul 2013 15:28:14 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$O3yTSnKSyNyAabrKXrszY.vfw0iYpFUE9U4LHokseyVL.KtGuFT7S"], ["updated_at", Fri, 12 Jul 2013 15:28:14 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 (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", Fri, 12 Jul 2013 15:28:14 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 2], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 15:28:14 UTC +00:00]]  (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", 2], ["created_at", Fri, 12 Jul 2013 15:28:14 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:28:14 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:28:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:28:14 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@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" IN ('test6') LIMIT 1 Cadenero::User Load (1.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.3ms) ROLLBACK  (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.7ms) 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  (0.1ms) BEGIN  (3.9ms) 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", Fri, 12 Jul 2013 15:28:14 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$EwsJIZnlU/kJM04sECmxPexQxn5XQTv1u31BhlaYwLSv6lvVz3pIW"], ["updated_at", Fri, 12 Jul 2013 15:28:14 UTC +00:00]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (2.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Fri, 12 Jul 2013 15:28:14 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 15:28:14 UTC +00:00]]  (1.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:28:14 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:28:14 UTC +00:00], ["user_id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test8"  (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")  (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)   (2.6ms) 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.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)  (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:28:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:28:14 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.4ms) ROLLBACK  (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  (17.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  (27.0ms) 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", Fri, 12 Jul 2013 15:28:14 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$hOs.UhzUlxWff3GNf1gOLutFSnwF.OpHy97GotpNlQHa83HPuWU0y"], ["updated_at", Fri, 12 Jul 2013 15:28:14 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (7.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 15:28:14 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 15:28:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Fri, 12 Jul 2013 15:28:14 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:28:14 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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")  (0.8ms) 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)   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.4ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.0ms) 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-12 10:28:14 -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" = 'test9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:28:15 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$1CmiU5I4gm9o9Pe/sl6dYebyrhJ6BgQk81bMTxfo7HpKMMo.Qjm.K"], ["updated_at", Fri, 12 Jul 2013 15:28:15 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", 1], ["created_at", Fri, 12 Jul 2013 15:28:15 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:28:15 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 185ms (Views: 5.0ms | ActiveRecord: 4.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.9ms) ROLLBACK  (1.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  (17.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 Connecting to database specified by database.yml  (10.1ms) 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'  (12.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  (4.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (3.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:31:22 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$KLed9LvBitb70xKTDmqvfuLSGFjovuI36lhqDydlgL3SiLRI0V/aa"], ["updated_at", Fri, 12 Jul 2013 15:31:22 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", Fri, 12 Jul 2013 15:31:22 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:31:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.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  (12.1ms) 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.1ms) BEGIN  (0.1ms) ROLLBACK  (0.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  (20.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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  (1.4ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 2ms (Views: 0.5ms | ActiveRecord: 0.0ms)  (1.7ms) ROLLBACK  (0.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.1ms) 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 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)  (1.7ms) ROLLBACK  (0.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  (13.8ms) 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  (0.9ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (10.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:31:22 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$4rLvLoahrqocdoirO8MO0uNGV2QfErMJfIvaIpUtPPfXj4hA1eox2"], ["updated_at", Fri, 12 Jul 2013 15:31:22 UTC +00:00]]  (1.6ms) RELEASE SAVEPOINT active_record_1  (2.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (4.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", Fri, 12 Jul 2013 15:31:22 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 15:31:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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", Fri, 12 Jul 2013 15:31:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:31:22 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) CREATE SCHEMA "test1"  (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.8ms) 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")  (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)   (5.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.3ms) 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)  (1.4ms) 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"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 10:31: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' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:31:23 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$yCcd.9/kb.4W/H7PQFBOu.Zn0c/IkY35piyuejY3yMaS6FM0.Te4S"], ["updated_at", Fri, 12 Jul 2013 15:31: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", 1], ["created_at", Fri, 12 Jul 2013 15:31:23 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:31:23 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 196ms (Views: 38.4ms | 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  (4.4ms) ROLLBACK  (0.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  (12.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.7ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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", Fri, 12 Jul 2013 15:31:26 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$Yf51OqrgP.jryYFJ2ZUnUOne7EN2ZEXOyYi7axhFqAkS5HoavssS2"], ["updated_at", Fri, 12 Jul 2013 15:31:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (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", Fri, 12 Jul 2013 15:31:26 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 15:31:26 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", Fri, 12 Jul 2013 15:31:26 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:31:26 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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", Fri, 12 Jul 2013 15:31:27 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$lasyqoaA7erB0ms40qABeuTYjEVT5zkrws0LkRzoChf3LjFbjyyYy"], ["updated_at", Fri, 12 Jul 2013 15:31:27 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", Fri, 12 Jul 2013 15:31:27 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$NphoRh4USO8gEBf.vXsKzOgbaTkUYCiofLQIgUifTY3Px53/Tve52"], ["updated_at", Fri, 12 Jul 2013 15:31:27 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.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", Fri, 12 Jul 2013 15:31:27 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 15:31:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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)  (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.6ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qFaig1y1j2yw6E8B7nzW' LIMIT 1  (0.6ms) SAVEPOINT active_record_1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'qFaig1y1j2yw6E8B7nzW', "updated_at" = '2013-07-12 15:31:27.201000' WHERE "public"."cadenero_accounts"."id" = 2  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (5.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  (12.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.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", Fri, 12 Jul 2013 15:31:27 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$i6D0mPE7et/63Q1eh02Bc.Ox/zLueXxJPTu3rSDpwalNXEm1hCFEK"], ["updated_at", Fri, 12 Jul 2013 15:31:27 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 (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", Fri, 12 Jul 2013 15:31:27 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 15:31:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:31:27 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:31:27 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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.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.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)  (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")  (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.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:31:27 -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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 107ms (Views: 4.8ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:31:27 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:31:27 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (3.7ms) ROLLBACK  (0.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  (20.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  (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", Fri, 12 Jul 2013 15:31:27 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$3X7AicIIkHmj1kbVhUCkzuqocuIrYyvYh.hWrmjUo./opiMuvPSWO"], ["updated_at", Fri, 12 Jul 2013 15:31:27 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.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", Fri, 12 Jul 2013 15:31:27 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 15:31:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:31:27 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:31:27 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.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 ('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-12 10:31:27 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:31:27 -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.0ms) 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" = 'user5@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 109ms (Views: 4.6ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:31:27 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.9ms) ROLLBACK  (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.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.1ms) 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", Fri, 12 Jul 2013 15:31:28 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$s2Yfp5DZz/ZUZzoEMckFwevwqZTNCb1slMcwbZ/rzpG/g6OloXO46"], ["updated_at", Fri, 12 Jul 2013 15:31:28 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.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", Fri, 12 Jul 2013 15:31:28 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 15:31:28 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 15:31:28 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:31:28 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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)   (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.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)  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.1ms) 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.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 ('20130612073709')  (0.5ms) 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-12 10:31:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:31:28 -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 (0.7ms) 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 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.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  (3.1ms) ROLLBACK  (1.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  (14.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  (0.5ms) 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", Fri, 12 Jul 2013 15:31:28 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$6ES6CSTGB1yo0VHWG.muiOYhEQ7Qrbp.BPyCilY/8YYyhF2LfBqXG"], ["updated_at", Fri, 12 Jul 2013 15:31:28 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.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", Fri, 12 Jul 2013 15:31:28 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 15:31:28 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 15:31:28 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:31:28 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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)   (1.3ms) 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")  (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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Fri, 12 Jul 2013 15:31:28 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$U89SC.8uIl5pIEpGRkXDiuL5M90RlLsizIIhv71pXX1AtD7x0S1z."], ["updated_at", Fri, 12 Jul 2013 15:31:28 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 (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", Fri, 12 Jul 2013 15:31:28 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 2], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 15:31:28 UTC +00:00]]  (0.1ms) 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", 2], ["created_at", Fri, 12 Jul 2013 15:31:28 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:31:28 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:31:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:31:28 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@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" IN ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 28ms (Views: 23.2ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.5ms) ROLLBACK  (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.8ms) 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  (0.1ms) BEGIN  (8.7ms) SAVEPOINT active_record_1 SQL (9.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:31:28 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$vF3dxq5j2qJq17m2wHecQuNanunULna71qquVOe8FtR315P.3Mw6q"], ["updated_at", Fri, 12 Jul 2013 15:31:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (11.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 15:31:28 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 15:31:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Fri, 12 Jul 2013 15:31:28 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:31:28 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (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)   (0.8ms) 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")  (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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (5.5ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (3.9ms) 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-12 10:31:28 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:31:28 -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 (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.5ms | ActiveRecord: 2.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  (3.7ms) ROLLBACK  (0.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  (13.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (0.1ms) BEGIN  (2.8ms) 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", Fri, 12 Jul 2013 15:31:29 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$JeWiai6/LQDI/cSZX7rYYugfD22EqS3rxJHkD1vwbnL9ZRop2bq/."], ["updated_at", Fri, 12 Jul 2013 15:31:29 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 (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", Fri, 12 Jul 2013 15:31:29 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 15:31:29 UTC +00:00]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (8.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", Fri, 12 Jul 2013 15:31:29 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:31:29 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (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.9ms) 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")  (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)  (10.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (11.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.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)   (6.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.4ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:31:29 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user10@example.com' LIMIT 1  (5.9ms) ROLLBACK  (5.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  (16.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.1ms) 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) BEGIN Cadenero::V1::Account Exists (6.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (6.5ms) ROLLBACK  (17.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  (36.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (7.9ms) BEGIN Cadenero::V1::Account Exists (10.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.8ms) ROLLBACK  (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  (28.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  (0.1ms) BEGIN Cadenero::V1::Account Exists (2.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (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  (15.7ms) 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.1ms) BEGIN  (3.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (10.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (3.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:31:30 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$9cRz55bhB4wlhk5geYebK.9VDlwqN9pOpd42goXtinmpNDQwxbXrO"], ["updated_at", Fri, 12 Jul 2013 15:31:30 UTC +00:00]] 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", Fri, 12 Jul 2013 15:31:30 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:31:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 15:31:30 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:31:30 UTC +00:00], ["user_id", 1]]  (1.0ms) RELEASE SAVEPOINT active_record_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" = 1 LIMIT 1  (2.6ms) ROLLBACK  (0.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  (32.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (24.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 Connecting to database specified by database.yml  (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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (32.2ms) 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.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (21.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:32:01 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$jCA7Ov2FqGXHs1G0iWFMy.dFLpsYRx3KgyO7feATDG/oCagDeimM."], ["updated_at", Fri, 12 Jul 2013 15:32:01 UTC +00:00]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Fri, 12 Jul 2013 15:32:01 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 15:32:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 15:32:01 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:32:01 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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)   (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (10.2ms) 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 ('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-12 10:32:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 10ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:32:01 -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.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (7.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 39ms (Views: 0.4ms | ActiveRecord: 9.4ms) Cadenero::V1::Account Load (7.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (11.2ms) ROLLBACK  (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.8ms) 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.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (3.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:32:02 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$zBFTvwo2waZIwx9EmZsPMePPWt3W2TnEusiCBaaDuIoKwLctCtdOC"], ["updated_at", Fri, 12 Jul 2013 15:32:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (7.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 15:32:02 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 15:32:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (5.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", Fri, 12 Jul 2013 15:32:02 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:32:02 UTC +00:00], ["user_id", 1]]  (3.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test2"  (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)   (4.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.7ms) 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)  (3.5ms) 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.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.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.4ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:32:02 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 Cadenero::V1::Account Load (4.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 Completed 201 Created in 193ms (Views: 49.1ms | ActiveRecord: 6.4ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:32:02 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 1.0ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:32:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (10.0ms) ROLLBACK  (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.8ms) 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.5ms) BEGIN  (1.9ms) 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", Fri, 12 Jul 2013 15:32:02 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$Zpkrb2DK0/87zLwCVTUEUuc6V2dFxVRWu8h0TGf7s/kj285BwZRL2"], ["updated_at", Fri, 12 Jul 2013 15:32:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Fri, 12 Jul 2013 15:32:02 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 15:32:02 UTC +00:00]]  (2.2ms) 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", Fri, 12 Jul 2013 15:32:02 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:32:02 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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.7ms) 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.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)  (3.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (11.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) 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.0ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:32:02 -0500 Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1  (6.8ms) ROLLBACK  (0.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  (17.7ms) 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  (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", Fri, 12 Jul 2013 15:32:02 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$VrGVr.gtuw/7NoRHVEO5A.F4jAArn4lQOfvF0n/U/jakgAMCYxb.K"], ["updated_at", Fri, 12 Jul 2013 15:32:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Fri, 12 Jul 2013 15:32:02 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 15:32:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Fri, 12 Jul 2013 15:32:02 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:32:02 UTC +00:00], ["user_id", 1]]  (2.1ms) RELEASE SAVEPOINT active_record_1  (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.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.4ms) 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)  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)   (5.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SAVEPOINT active_record_1 SQL (4.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:32:03 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$BOWACwgO5Os4YcmDseX1Aemyo8Wymnkc5.dHyGAMPA5HLmmtw6ly2"], ["updated_at", Fri, 12 Jul 2013 15:32:03 UTC +00:00]]  (12.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.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", Fri, 12 Jul 2013 15:32:03 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 2], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 15:32:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.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", Fri, 12 Jul 2013 15:32:03 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:32:03 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:32:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:32:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@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" IN ('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"."email" = 'user5@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 9ms (Views: 0.4ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (16.3ms) ROLLBACK  (0.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  (46.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  (0.1ms) BEGIN  (1.9ms) SAVEPOINT active_record_1 SQL (6.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:32:03 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$IwmKLEhZUmZ0RUmeRs.k2ugtOvuluuUrg9Zk/2pi0anY7cIIlcWxO"], ["updated_at", Fri, 12 Jul 2013 15:32:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 15:32:03 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 15:32:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (4.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", Fri, 12 Jul 2013 15:32:03 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:32:03 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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" ("authentication_token")  (1.8ms) 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)  (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) 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)   (3.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"  (1.9ms) 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-12 10:32:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:32:03 -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 (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.9ms) ROLLBACK  (0.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  (26.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (6.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.5ms) BEGIN  (0.4ms) 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", Fri, 12 Jul 2013 15:32:04 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$crBUW.f3SI05e7yh4aOuSuh40i2DJYADUhT.FElQT3NdFZZES7w42"], ["updated_at", Fri, 12 Jul 2013 15:32:04 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 (2.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", Fri, 12 Jul 2013 15:32:04 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 15:32:04 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", Fri, 12 Jul 2013 15:32:04 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:32:04 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) CREATE SCHEMA "test7"  (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)   (2.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")  (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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (10.0ms) 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)   (4.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (7.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.8ms) 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-12 10:32:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:32:04 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 Cadenero::V1::Account Load (2.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 156ms (Views: 6.4ms | ActiveRecord: 4.3ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-12 10:32:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (7.8ms) ROLLBACK  (0.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  (16.1ms) 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.5ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 10:32:04 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:32:04 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$9k31terJ/5l470vYdwf2V.0YOsDp5fYOs90yXg8jIDIZpythCCnz."], ["updated_at", Fri, 12 Jul 2013 15:32:04 UTC +00:00]] SQL (1.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", Fri, 12 Jul 2013 15:32:04 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:32:04 UTC +00:00]]  (8.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 15:32:04 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:32:04 UTC +00:00], ["user_id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (0.6ms) CREATE SCHEMA "test"  (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.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) 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")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("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)  (31.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) 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" = 'XmPcryHAxHvrx1pvxxH6' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'XmPcryHAxHvrx1pvxxH6', "updated_at" = '2013-07-12 15:32:04.745963' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 319ms (Views: 3.1ms | ActiveRecord: 104.9ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (17.1ms) ROLLBACK  (0.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  (26.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  (0.2ms) BEGIN  (1.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.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:32:04 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$hCWPlSqPwgtfnZTV3zhjoeGTvEu6lnR3odTPXm9E45HPD9bGMZWRy"], ["updated_at", Fri, 12 Jul 2013 15:32:04 UTC +00:00]] SQL (15.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", Fri, 12 Jul 2013 15:32:04 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:32:04 UTC +00:00]]  (9.8ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 10:32:04 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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  (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 179ms (Views: 4.3ms | ActiveRecord: 0.7ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.4ms) ROLLBACK  (0.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  (17.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  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:32:09 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$aT27fuDL2nICLFzBAMP6C.Q2dDBz07j2FaV3XRGmhwRysVfKFMJN."], ["updated_at", Fri, 12 Jul 2013 15:32:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 15:32:09 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 15:32:09 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", Fri, 12 Jul 2013 15:32:09 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:32:09 UTC +00:00], ["user_id", 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", Fri, 12 Jul 2013 15:32:09 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$MpF2u2xmZjESSZ2IloWKu.0CFeVczs9.pZh0dly3EaOpiC2ZdqSey"], ["updated_at", Fri, 12 Jul 2013 15:32:09 UTC +00:00]]  (0.2ms) 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", Fri, 12 Jul 2013 15:32:09 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$qLvh2r3ZMF/r.ssUeHd3XehAK2UCvxX7DWTv9yAsUUSGhVgyPoldS"], ["updated_at", Fri, 12 Jul 2013 15:32: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" = '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", Fri, 12 Jul 2013 15:32:10 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 15:32:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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" ("authentication_token")  (1.9ms) 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)  (1.0ms) 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")  (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.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) 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" = 'rCtrzrvnkz8ar56NpKt4' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'rCtrzrvnkz8ar56NpKt4', "updated_at" = '2013-07-12 15:32:10.052662' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (6.5ms) ROLLBACK  (0.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  (18.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (77.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  (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.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  (17.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.5ms) 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.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  (14.9ms) 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  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.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  (17.1ms) 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.3ms) BEGIN  (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 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:32:10 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$0iklQdQnDlNg.eSwb2Uv/OELHpVbWo1/ZnsE.qXeH48QNka9LOv7u"], ["updated_at", Fri, 12 Jul 2013 15:32:10 UTC +00:00]] 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", Fri, 12 Jul 2013 15:32:10 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:32:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:32:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:32:10 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (0.4ms) ROLLBACK  (0.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  (82.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  (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", Fri, 12 Jul 2013 15:32:10 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$9k/KWc34AnZiC/mxwhnOuOZRrTBGC/gk3DYOA.LLXeIV82e6t4m.."], ["updated_at", Fri, 12 Jul 2013 15:32: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" = 'test9' 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", Fri, 12 Jul 2013 15:32:10 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 15:32:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:32:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:32:10 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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.7ms) 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")  (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)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-12 10:32:10 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:32:11 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$G.BLN56YFcV7fm76cMD.P.9tN1L6OrEKGVqRGOc7EVTLuz4iHBspy"], ["updated_at", Fri, 12 Jul 2013 15:32:11 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", Fri, 12 Jul 2013 15:32:11 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:32:11 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 111ms (Views: 5.2ms | ActiveRecord: 3.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  (6.4ms) ROLLBACK  (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  (24.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  (0.4ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.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  (25.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  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 10ms (Views: 9.2ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.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  (32.3ms) 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 Connecting to database specified by database.yml  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (31.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  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (25.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:38:17 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$m2lzCy18rVTw1FEhhJGNhu7YWUk3eGqTiNXBGIZMBK4S44.nIYpn2"], ["updated_at", Fri, 12 Jul 2013 15:38:17 UTC +00:00]]  (3.0ms) RELEASE SAVEPOINT active_record_1  (10.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.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", Fri, 12 Jul 2013 15:38:18 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 15:38:18 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", Fri, 12 Jul 2013 15:38:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:38:18 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.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")  (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)  (1.3ms) 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")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 10:38:18 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:38:18 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$1daNnhB8rGlPjT2PaCvjBezDi675/xFG16sHVeHzTR/pNNLb4xrvS"], ["updated_at", Fri, 12 Jul 2013 15:38:18 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", Fri, 12 Jul 2013 15:38:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:38:18 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 152ms (Views: 34.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  (10.8ms) ROLLBACK  (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  (12.2ms) 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.4ms) 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", Fri, 12 Jul 2013 15:38:18 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$XKZfWLnCcWyJEYzigTkGuebAl5BxZ4U2IX378eXAdg7bGHLQddsfO"], ["updated_at", Fri, 12 Jul 2013 15:38:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (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", Fri, 12 Jul 2013 15:38:18 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 15:38:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:38:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:38:18 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (3.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)   (4.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (24.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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("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)   (2.3ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Fri, 12 Jul 2013 15:38:18 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$oYpk1.Xu2ahY.rlwVLV1ouPELgLQd9ohsDG5lZlXWWfbNgov9TP6K"], ["updated_at", Fri, 12 Jul 2013 15:38:18 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.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", Fri, 12 Jul 2013 15:38:18 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 15:38:18 UTC +00:00]]  (0.3ms) 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", Fri, 12 Jul 2013 15:38:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:38:18 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:38:18 -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-12 10:38:18 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@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" 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" = 1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (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' LIMIT 1  (2.5ms) ROLLBACK  (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  (17.2ms) 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.1ms) BEGIN  (0.1ms) 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", Fri, 12 Jul 2013 15:38:19 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$pZstFEanT8iPIGuwPoGka.ZdJRc68QOkhz48jcX4c.3Nox1oNOawW"], ["updated_at", Fri, 12 Jul 2013 15:38:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) 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 (1.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", Fri, 12 Jul 2013 15:38:19 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 15:38:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:38:19 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:38:19 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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")  (0.7ms) 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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("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.7ms) 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"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:38: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 116ms (Views: 5.4ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:38:19 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:38:19 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (8.5ms) ROLLBACK  (3.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  (20.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  (0.9ms) BEGIN  (0.7ms) 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", Fri, 12 Jul 2013 15:38:19 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$wmY91WN5PnmOtBGacA65OeJQHjcvTgYPMjwHKsdbsABhc5d.DKDXS"], ["updated_at", Fri, 12 Jul 2013 15:38:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.1ms) 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", Fri, 12 Jul 2013 15:38:19 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 15:38:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 1], ["created_at", Fri, 12 Jul 2013 15:38:19 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:38:19 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (10.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.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.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)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.5ms) 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)   (3.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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-12 10:38:19 -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-12 10:38:19 -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 (0.8ms) 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" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (8.3ms) ROLLBACK  (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  (17.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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.1ms) BEGIN  (0.4ms) SAVEPOINT active_record_1 SQL (5.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:38:19 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$OBfIj9T0BxOrC2FGoeUII.RTgNAPOpSLpjMBZ7ow1ZpSHpD7VvI1q"], ["updated_at", Fri, 12 Jul 2013 15:38:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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" = 'test6' 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", Fri, 12 Jul 2013 15:38:19 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 15:38:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 15:38:19 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:38:19 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (8.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")  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) 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-12 10:38:19 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 1.1ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 10:38:19 -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.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" = 'user6@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 106ms (Views: 4.6ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:38:20 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.6ms) ROLLBACK  (0.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  (18.1ms) 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.1ms) 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", Fri, 12 Jul 2013 15:38:20 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$WuVUxQBn2zlmM29oV529JeoY9lInea4L6ygyUUMUmkDfagRfAurrO"], ["updated_at", Fri, 12 Jul 2013 15:38:20 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 (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", Fri, 12 Jul 2013 15:38:20 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 15:38:20 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", Fri, 12 Jul 2013 15:38:20 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:38:20 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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)   (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")  (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)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.5ms) 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.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 ('20130612073709')  (0.1ms) 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-12 10:38:20 -0500 Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' LIMIT 1  (5.2ms) ROLLBACK  (0.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  (13.3ms) 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.5ms) BEGIN  (0.1ms) 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", Fri, 12 Jul 2013 15:38:20 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$XCmtn7XW/3tTgsdmT/vGGeyfKBAYrbsoh7k6E3IXDqaIISUnygXnK"], ["updated_at", Fri, 12 Jul 2013 15:38:20 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" = 'test8' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 15:38:20 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 15:38:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 15:38:20 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:38:20 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (8.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.9ms) 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")  (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)  (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.9ms) 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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.9ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 10:38:20 -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-12 10:38:20 -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 (0.6ms) 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" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.4ms) ROLLBACK  (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  (17.2ms) 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  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 10:38:20 -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 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:38:20 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$tISs3YMpGr1Q065S6uM.sehfm2tr63uvxBIWXrVz3xwgx0tH5wEpO"], ["updated_at", Fri, 12 Jul 2013 15:38:20 UTC +00:00]] 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", Fri, 12 Jul 2013 15:38:20 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:38:20 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", Fri, 12 Jul 2013 15:38:20 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:38:20 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (1.2ms) 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")  (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)   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YzxYCviPNCrsyHnnktUy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'YzxYCviPNCrsyHnnktUy', "updated_at" = '2013-07-12 15:38:20.811992' WHERE "public"."cadenero_accounts"."id" = 1  (1.0ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 200ms (Views: 3.0ms | ActiveRecord: 44.1ms) Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (6.7ms) ROLLBACK  (0.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.1ms) 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.3ms) 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.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:38:20 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$fS.e18PxqRlX2dNn1fsHO.MDEL5dINOE00qODZlQs9w0G0tjykByG"], ["updated_at", Fri, 12 Jul 2013 15:38:20 UTC +00:00]] 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", Fri, 12 Jul 2013 15:38:20 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:38:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 10:38:20 -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.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 111ms (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" = 'Testy' LIMIT 1  (0.3ms) ROLLBACK  (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.0ms) 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  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.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.0ms) 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.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.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.8ms) 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 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.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  (16.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  (0.6ms) BEGIN Cadenero::V1::Account Exists (3.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (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.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.9ms) 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  (1.0ms) BEGIN Cadenero::V1::Account Exists (2.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (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.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  (0.1ms) BEGIN  (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 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:38:21 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$yT/K41onUCeUjeBF7w3Wa.wcuOvbH/GiRXhj48D03JhVplDshOiZS"], ["updated_at", Fri, 12 Jul 2013 15:38:21 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", Fri, 12 Jul 2013 15:38:21 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 15:38:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 15:38:21 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:38:21 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (0.5ms) ROLLBACK  (0.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  (13.2ms) 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.1ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) 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", Fri, 12 Jul 2013 15:38:25 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$dMFUqo0hvOf.XmUjwzUtW.Y0vLFcgl2rDdzPTJpYgGUIvnYXBIceG"], ["updated_at", Fri, 12 Jul 2013 15:38:25 UTC +00:00]]  (3.9ms) 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 (2.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", Fri, 12 Jul 2013 15:38:25 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 15:38:25 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", Fri, 12 Jul 2013 15:38:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 15:38:25 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:38:25 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$G9lO0R18rHyq3lnGyVr4p.sOaCYQt81.lTnmOxvO7FJGQ9GOgirNS"], ["updated_at", Fri, 12 Jul 2013 15:38:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (9.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 15:38:25 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$yqTnqy8YieOcdLTNvTNfyOBA3dMH4eZRXvKpI/n9nlb0GpceBVDma"], ["updated_at", Fri, 12 Jul 2013 15:38:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) 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", Fri, 12 Jul 2013 15:38:25 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 15:38:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www"  (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.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.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)  (1.0ms) 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")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) 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" = 'vurnuLCszYWrfU7eLb9r' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'vurnuLCszYWrfU7eLb9r', "updated_at" = '2013-07-12 15:38:25.839025' 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.4ms) ROLLBACK  (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.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.1ms) 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  (5.4ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (18.1ms) 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 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (8.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 [["account_id", 1001]] Completed 201 Created in 126ms (Views: 99.7ms | ActiveRecord: 11.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  (9.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.5ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 7ms (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  (8.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.9ms) ROLLBACK  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 13:47:29 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (1.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (4.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 18:47:29 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$XS/VggA7i9lvSPoMN7G9VeQ.D1ataGdIkvte5pKhqry7RhNMMZkRO"], ["updated_at", Fri, 12 Jul 2013 18:47:29 UTC +00:00]] SQL (3.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 12 Jul 2013 18:47:29 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 18:47:29 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 18:47:29 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:47:29 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 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  (0.8ms) CREATE SCHEMA "test"  (10.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.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")  (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)  (0.9ms) 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")  (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.9ms) 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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yLx1jzUu9GB5ZrQypVko' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 1 [["authentication_token", "yLx1jzUu9GB5ZrQypVko"], ["updated_at", Fri, 12 Jul 2013 18:47:29 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_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 257ms (Views: 9.6ms | ActiveRecord: 60.9ms) 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.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  (7.6ms) ROLLBACK  (0.4ms) BEGIN  (0.9ms) 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", Fri, 12 Jul 2013 18:47:29 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$8yvpZBpyb9PZHbQH1iKooem7DoI7UY/s17wwI6BQgQ1E.fVjfUSQK"], ["updated_at", Fri, 12 Jul 2013 18:47:29 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", Fri, 12 Jul 2013 18:47:29 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 18:47:29 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 13:47:29 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (11.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 36ms (Views: 0.3ms | ActiveRecord: 12.7ms) Cadenero::V1::Account Load (1.9ms) 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.0ms) 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.7ms) ROLLBACK  (1.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$g5Q4yl9kF8CnZBuZ671FJuo2aHl75gcTMH9hkRiLqEKxDAZ4wjo7G"], ["updated_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00]]  (0.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" = '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", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 3], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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", 3], ["created_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["user_id", 3]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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")  (2.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.7ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) 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-12 13:47:30 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 13:47:30 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (0.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" = 'user1@example.com' LIMIT 1 [["account_id", 3]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (0.7ms) 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 201 Created in 42ms (Views: 29.4ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 13:47:30 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 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  (11.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  (4.8ms) ROLLBACK  (0.1ms) 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", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$c4FUyKMgM7qVvn/QfXZEQOmnkomuJuv4hO0mQczmF2jTHefrpiEIy"], ["updated_at", Fri, 12 Jul 2013 18:47:30 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", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 4], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00]]  (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", 4], ["created_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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")  (12.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)   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.1ms) 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)  (2.4ms) 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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 13:47:30 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (1.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 [["account_id", 4]] Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 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 (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", 4]] Completed 201 Created in 19ms (Views: 6.4ms | ActiveRecord: 4.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 13:47:30 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"4", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 13:47:30 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.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  (12.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  (8.9ms) ROLLBACK  (0.4ms) BEGIN  (0.6ms) 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", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$vlKyBQuhPItfxfSPP0aoduYnf6uOrow8cb4ft.qSygHtHOfuD2fe6"], ["updated_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 5], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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", 5], ["created_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["user_id", 5]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.7ms) CREATE SCHEMA "test3"  (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)  (13.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")  (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)   (2.4ms) 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")  (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.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 GET "/v1" for 127.0.0.1 at 2013-07-12 13:47:30 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 13:47:30 -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 ('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" = 'user@example.com' LIMIT 1 [["account_id", 5]] 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  (1.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  (17.6ms) 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  (15.5ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (9.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$t3ZxvrI0jfxD.OzvZSF/2Oh7TeUIFpADbaMu8InlOlId9udMmYDde"], ["updated_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00]]  (4.0ms) RELEASE SAVEPOINT active_record_1  (3.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 6], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00]]  (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", 6], ["created_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (7.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" ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.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", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$cpA12RlVM.qW6gHHEUC2u.lPAP0uCLgmEainx0a1Gifin5jvx5MNK"], ["updated_at", Fri, 12 Jul 2013 18:47:30 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", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 7], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00]]  (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", 7], ["created_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["user_id", 7]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 13:47:30 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 13:47:30 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) 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", 6]] 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.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) 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.2ms) ROLLBACK  (0.1ms) BEGIN  (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", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$a6Py4QiF5FydK0plP8jSruNlwZHuqHMkosgI8WQV/3a61fLXKpB42"], ["updated_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' 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", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 8], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.7ms) 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", 8], ["created_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["user_id", 8]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test6"  (7.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)  (17.6ms) 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.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)   (5.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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)  (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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) 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-12 13:47:30 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 50ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 13:47:30 -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.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.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  (11.0ms) 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.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", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$ua/r4E26iDRqm1cFyYWW2uO1trFwgJn7S6im3zicL8.KrUlckoP1q"], ["updated_at", Fri, 12 Jul 2013 18:47:30 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 (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", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 9], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00]]  (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", 9], ["created_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:47:30 UTC +00:00], ["user_id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (42.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)  (2.7ms) 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")  (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)   (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")  (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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 13:47:31 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@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.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.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", Fri, 12 Jul 2013 18:47:31 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$EvI1xoPZJWyweb8CpsRw4umuEtPln9k/5An/hHcCMza3VqvyfqODK"], ["updated_at", Fri, 12 Jul 2013 18:47:31 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", Fri, 12 Jul 2013 18:47:31 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 10], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 18:47:31 UTC +00:00]]  (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", 10], ["created_at", Fri, 12 Jul 2013 18:47:31 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:47:31 UTC +00:00], ["user_id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.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.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 ('20130612073709')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 13:47:31 -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" = 'test8' 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", Fri, 12 Jul 2013 18:47:31 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$UJvY/oRjHPy1ix64Jyc/7.CRR0iaFlaMtBGnB8jEqrhRfG/XZpYHu"], ["updated_at", Fri, 12 Jul 2013 18:47:31 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", 10], ["created_at", Fri, 12 Jul 2013 18:47:31 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:47:31 UTC +00:00], ["user_id", 11]]  (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" = 11 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 11]] 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", 11]] Completed 201 Created in 19ms (Views: 5.0ms | ActiveRecord: 3.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  (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.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  (5.6ms) ROLLBACK  (0.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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", Fri, 12 Jul 2013 18:47:33 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$Dza2gycAIA3xXycbXPyrvev0CrF5ez451dT4.J7Nhqc3q4Lm07/k2"], ["updated_at", Fri, 12 Jul 2013 18:47:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 12 Jul 2013 18:47:33 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 12], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 18:47:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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", Fri, 12 Jul 2013 18:47:33 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:47:33 UTC +00:00], ["user_id", 12]]  (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", Fri, 12 Jul 2013 18:47:33 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$fpmh71t1AM0FZO0GCbzmze6CQuD9y5baK2zsG/vI37j08XyT9x3Uy"], ["updated_at", Fri, 12 Jul 2013 18:47:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 18:47:33 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$IckQ18y/mgtlWTBBPQCz4OHDtcVVWXqbgvvSVoImA2IaVM98HuXOC"], ["updated_at", Fri, 12 Jul 2013 18:47:33 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.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 12 Jul 2013 18:47:33 UTC +00:00], ["name", "Root"], ["owner_id", 14], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 18:47:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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" ("authentication_token")  (2.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)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) 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') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DpNvaZ9bcvfpQpEfAutQ' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 12 [["authentication_token", "DpNvaZ9bcvfpQpEfAutQ"], ["updated_at", Fri, 12 Jul 2013 18:47:34 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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.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  (6.3ms) 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  (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  (4.4ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.7ms) 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  (7.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) 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.6ms) 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  (7.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.3ms) ROLLBACK  (0.2ms) 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.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 18:47:34 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$oozku8Q17VdjU8nJ1PKmHeyqB0c2qy9Iay1xCljzWTT2hcIhim8Ba"], ["updated_at", Fri, 12 Jul 2013 18:47:34 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", Fri, 12 Jul 2013 18:47:34 UTC +00:00], ["name", "Test Account"], ["owner_id", 15], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 18:47:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.0ms) 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", Fri, 12 Jul 2013 18:47:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:47:34 UTC +00:00], ["user_id", 15]]  (0.1ms) RELEASE SAVEPOINT active_record_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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 13]]  (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  (2.1ms) 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.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.3ms) 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.1ms) BEGIN  (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 (9.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 18:49:44 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$zUxbdlG/86QiufCbRO1xxejm9SbTFD7oCFxemn7MIwmTsPBA77Yh."], ["updated_at", Fri, 12 Jul 2013 18:49:44 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", Fri, 12 Jul 2013 18:49:44 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 18:49:44 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 13:49:44 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 23ms (Views: 0.4ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.9ms) 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.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  (2.5ms) ROLLBACK  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 13:49:45 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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 (1.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$rnsY57hOxgvndriOuLXRA.AZZq2KE8XlkPwoCLYL4xnDJEHXqxXhG"], ["updated_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00]] 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", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 18:49:45 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", 2], ["created_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["user_id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 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" != 2) LIMIT 1  (0.4ms) CREATE SCHEMA "test"  (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)   (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")  (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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) 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)   (2.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (1.0ms) 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') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xsevXpFvgcBcCmuBja6p' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 2 [["authentication_token", "xsevXpFvgcBcCmuBja6p"], ["updated_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 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 [["account_id", 2]] Completed 201 Created in 238ms (Views: 14.7ms | ActiveRecord: 47.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  (11.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "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  (6.4ms) 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", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$W11OLt4doIbR78BLGtCCGOLwzvYzHCokCSwcBaMuqwnHYEsz0havC"], ["updated_at", Fri, 12 Jul 2013 18:49:45 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" = '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", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 3], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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", 3], ["created_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["user_id", 3]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test1"  (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.9ms) 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.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)  (4.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (7.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (44.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)   (9.0ms) 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 ('20130612073709')  (0.1ms) 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-12 13:49:45 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$H41nzPDUY6yZ2B.5efIB9epAUJqMIfyI5EmNg0rf9MW1iMs/Oab8K"], ["updated_at", Fri, 12 Jul 2013 18:49:45 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", 3], ["created_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["user_id", 4]]  (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::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 45ms (Views: 31.0ms | 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  (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  (8.2ms) 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)  (5.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  (13.4ms) 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.3ms) ROLLBACK  (0.7ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} 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 [["account_id", 1001]] Completed 201 Created in 8ms (Views: 3.1ms | ActiveRecord: 1.3ms)  (1.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.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  (17.6ms) ROLLBACK  (0.3ms) BEGIN  (0.7ms) 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", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$NxCanSJxsYeK5KN1Xf5zB.3FvC9H/gbdOGnAj/JdC0Fr09FNPG8Vq"], ["updated_at", Fri, 12 Jul 2013 18:49:45 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", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 5], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00]]  (0.3ms) 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", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["user_id", 5]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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)  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.6ms) 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)   (4.8ms) 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")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.7ms) 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-12 13:49:45 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (1.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" = 'user2@example.com' LIMIT 1 [["account_id", 4]] Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 5]] 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", 5]] Completed 201 Created in 19ms (Views: 5.8ms | ActiveRecord: 5.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 13:49:45 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"5", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 13:49:45 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 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  (11.7ms) 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  (10.0ms) 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", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$Ft7mQLVHYKgUpnWDJANRpOBUHiTVt/696Cy34X2RWP9tk55O0/1/q"], ["updated_at", Fri, 12 Jul 2013 18:49:45 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.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 6], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00]]  (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", 5], ["created_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["user_id", 6]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (6.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)   (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$QY6ydf0dPLlD9i55wuQKnOCYZdrHdKZPqOxW5yRH2Y.0EZKcuBo3i"], ["updated_at", Fri, 12 Jul 2013 18:49:45 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" = '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", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 7], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00]]  (0.1ms) 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", 6], ["created_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 13:49:45 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 13:49:45 -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.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]] 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  (9.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  (7.8ms) ROLLBACK  (0.2ms) 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", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$2tDmJahSY.b7DMq0ToQz/u44Psbe/V/rU6W6AVRy5.mTECJ71.1GO"], ["updated_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (2.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 8], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00]]  (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", 7], ["created_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:49:45 UTC +00:00], ["user_id", 8]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (7.9ms) 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)   (1.4ms) 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.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)   (2.9ms) 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 ('20130612073709')  (0.2ms) 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-12 13:49:46 -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-12 13:49:46 -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 (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 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 7]] Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 1.8ms) 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  (1.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  (10.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  (5.6ms) ROLLBACK  (0.7ms) BEGIN  (0.3ms) 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", Fri, 12 Jul 2013 18:49:46 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$0j96p5zlDmDaXHwonDcYGOXPynGdE1W4eirwnpcvSbYV/xCLCtPEu"], ["updated_at", Fri, 12 Jul 2013 18:49:46 UTC +00:00]]  (0.8ms) 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", Fri, 12 Jul 2013 18:49:46 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 9], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 18:49:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.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", Fri, 12 Jul 2013 18:49:46 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:49:46 UTC +00:00], ["user_id", 9]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (13.5ms) 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)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) 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.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 ('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-12 13:49:46 -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-12 13:49:46 -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.0ms) 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", 8]] Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 1.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  (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.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.8ms) ROLLBACK  (0.1ms) 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", Fri, 12 Jul 2013 18:49:46 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$OUrk7L0REyTzA5TA7ZCA7.sJu2xEHzc5QxBTqpHh4xCUndvyysn02"], ["updated_at", Fri, 12 Jul 2013 18:49:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' 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", Fri, 12 Jul 2013 18:49:46 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 10], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 18:49:46 UTC +00:00]]  (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", 9], ["created_at", Fri, 12 Jul 2013 18:49:46 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:49:46 UTC +00:00], ["user_id", 10]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.7ms) 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)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 13:49:46 -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-12 13:49:46 -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.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" = 'user7@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" = 10 LIMIT 1 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.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", 10]] Completed 201 Created in 14ms (Views: 5.2ms | ActiveRecord: 2.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 13:49:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true 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)  (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.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  (10.0ms) 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", Fri, 12 Jul 2013 18:49:46 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$4Om8ZBYRfkOAOlf86tA0jO8UYQYbXFIn7xUDvZW06Ps0WTll6DdhW"], ["updated_at", Fri, 12 Jul 2013 18:49:46 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", Fri, 12 Jul 2013 18:49:46 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 11], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 18:49:46 UTC +00:00]]  (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", 10], ["created_at", Fri, 12 Jul 2013 18:49:46 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:49:46 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (22.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)   (2.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 13:49:46 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@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  (8.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  (7.0ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (1.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  (8.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  (2.6ms) ROLLBACK  (0.3ms) BEGIN Cadenero::V1::Account Exists (1.2ms) 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  (11.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  (2.7ms) ROLLBACK  (1.2ms) 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", Fri, 12 Jul 2013 18:49:46 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$rhSVtDiSEyCp4zpN3vC54eTc3/ci2czoECnwI.C8rdaZUrU/iOJTi"], ["updated_at", Fri, 12 Jul 2013 18:49:46 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", Fri, 12 Jul 2013 18:49:46 UTC +00:00], ["name", "Test Account"], ["owner_id", 12], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 18:49:46 UTC +00:00]]  (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", 11], ["created_at", Fri, 12 Jul 2013 18:49:46 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:49:46 UTC +00:00], ["user_id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 11]]  (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.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  (5.1ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.8ms) 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.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.2ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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", Fri, 12 Jul 2013 18:49:49 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$GmT/ikkmCV2hdnmTDDA6NedVFBJVpJmhA3cw2muFUlaQFmrNoAwdu"], ["updated_at", Fri, 12 Jul 2013 18:49:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Fri, 12 Jul 2013 18:49:49 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 13], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 18:49:49 UTC +00:00]]  (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", 12], ["created_at", Fri, 12 Jul 2013 18:49:49 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:49:49 UTC +00:00], ["user_id", 13]]  (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", Fri, 12 Jul 2013 18:49:49 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$MZPewg7Hv4gWkcfWQ323Vug72OtHdZw6zfz1U8WogHb8jNQRJl/we"], ["updated_at", Fri, 12 Jul 2013 18:49:49 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", Fri, 12 Jul 2013 18:49:49 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$7rsXK8UV/t/ylLNPWPU/SeBVv0foIbiM10J9NYmuGZtUwuFDjkI8i"], ["updated_at", Fri, 12 Jul 2013 18:49:49 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.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 12 Jul 2013 18:49:49 UTC +00:00], ["name", "Root"], ["owner_id", 15], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 18:49:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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.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.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)   (1.0ms) 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")  (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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) 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" = 'sQSpUAfg8322Vkw3Dyss' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 13 [["authentication_token", "sQSpUAfg8322Vkw3Dyss"], ["updated_at", Fri, 12 Jul 2013 18:49:49 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.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  (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  (7.5ms) ROLLBACK  (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  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.7ms) 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  (0.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (8.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 18:52:02 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$sw2OHSt1BGhLGSsHsGn08eTaOvsCqcNLQbb6quzZPuIsA.O1M4Pxy"], ["updated_at", Fri, 12 Jul 2013 18:52:02 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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" = 'test1' LIMIT 1 SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 12 Jul 2013 18:52:02 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 18:52:02 UTC +00:00]]  (0.2ms) 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", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (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" ("authentication_token")  (0.9ms) 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)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.2ms) 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-12 13:52:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 40ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 13:52:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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" = 'user@example.com' LIMIT 1 [["account_id", 1]] Completed 422 Unprocessable Entity in 57ms (Views: 0.4ms | ActiveRecord: 2.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  (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.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.0ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (4.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$9feuMUYiNW9nsOTxHoWsgODR98F31PKEszXgNG2Jq1H32BOxIKar."], ["updated_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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", 2], ["created_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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)   (12.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")  (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)  (2.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.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-12 13:52:03 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 [["account_id", 2]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 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 (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", 2]] Completed 201 Created in 46ms (Views: 33.0ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 13:52:03 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"2", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 7ms (Views: 0.3ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 13:52:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (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  (16.3ms) 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  (9.1ms) 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", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$uxnFM1lPgTeaL/1Zy8U0IO4stOpXLDSoQXejhdnKyd/tYurIyiKU."], ["updated_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00]]  (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", 3], ["created_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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)   (2.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (7.2ms) 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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.7ms) SELECT version FROM "schema_migrations"  (1.1ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-12 13:52:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 13:52:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (1.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 3]] Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 2.5ms) 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  (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.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  (10.2ms) 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", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$Nxqk4RgMY1CZmxyOmrgkG.L2wofVb6JCzLeBDyifFcogEiM1VQ8qO"], ["updated_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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", 4], ["created_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["user_id", 4]]  (2.6ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test4"  (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.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)   (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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 13:52:03 -0500 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@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;  (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.0ms) ROLLBACK  (0.9ms) BEGIN  (1.6ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$ecmKMh5DR29JZ6kBJ9mYbe1w7gOumI1NiRwdqjounhjKLx8tbmx7a"], ["updated_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' 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", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00]]  (1.0ms) 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", 5], ["created_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) 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.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")  (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)  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) 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)   (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.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')  (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", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$M3AtBlZrvGFlFlPiKLkZ4ugQ9yuDiFuhdS719z29Ipm.Rr7XIdpoe"], ["updated_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.9ms) 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", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 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", 6], ["created_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["user_id", 6]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 13:52:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 13:52:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.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", 5]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | 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  (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  (8.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  (8.5ms) ROLLBACK  (0.3ms) 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", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$Fy8xCNoC1GbHYRse4.dcv.x.433rfpql.gqK9.UKhngpAYv1b0jKC"], ["updated_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 7], ["created_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["user_id", 7]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test7"  (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.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (13.6ms) 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)  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.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 ('20130612073709')  (0.2ms) 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-12 13:52:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 13:52:03 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') 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" = $1 AND "public"."cadenero_users"."email" = 'user7@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" = 7 LIMIT 1 Cadenero::V1::Account Load (1.1ms) 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.2ms | ActiveRecord: 3.7ms) Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 13:52:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) 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.3ms)  (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.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  (7.6ms) ROLLBACK  (0.4ms) 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", Fri, 12 Jul 2013 18:52:03 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$N.bctjgYbXifmfRLxsixR.YMVfCC4ppnqmMeh8d1JcVPbUy8cuzMG"], ["updated_at", Fri, 12 Jul 2013 18:52: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", Fri, 12 Jul 2013 18:52:04 UTC +00:00], ["name", "Testy"], ["owner_id", 8], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 18:52:04 UTC +00:00]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 13:52:04 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 26ms (Views: 0.4ms | ActiveRecord: 1.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  (12.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (3.6ms) ROLLBACK  (0.5ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 13:52:04 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.5ms) 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.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 18:52:04 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$zN66fJqMHQ2xx7Z9z7rCHe0AfWfN0r/LRBoPCI6qSqK3Vxuy9uAHC"], ["updated_at", Fri, 12 Jul 2013 18:52:04 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", Fri, 12 Jul 2013 18:52:04 UTC +00:00], ["name", "Testy"], ["owner_id", 9], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 18:52:04 UTC +00:00]]  (0.2ms) 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", 9], ["created_at", Fri, 12 Jul 2013 18:52:04 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:52:04 UTC +00:00], ["user_id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 9) LIMIT 1  (0.2ms) CREATE SCHEMA "test"  (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.3ms) 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.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)  (0.9ms) 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")  (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)   (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WX6bjB3xuPPULhQ2jTse' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 9 [["authentication_token", "WX6bjB3xuPPULhQ2jTse"], ["updated_at", Fri, 12 Jul 2013 18:52:04 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 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", 9]] Completed 201 Created in 84ms (Views: 7.8ms | ActiveRecord: 47.0ms) 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.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  (11.5ms) 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  (8.0ms) ROLLBACK  (0.3ms) BEGIN  (0.9ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.6ms) 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", Fri, 12 Jul 2013 18:52:07 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$JR6CMfEGJ5gF/GG2wUjPa.upYZbr7oHzNrtx7ccoj0hvADohUeG7K"], ["updated_at", Fri, 12 Jul 2013 18:52:07 UTC +00:00]]  (1.6ms) 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" = '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", Fri, 12 Jul 2013 18:52:07 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 10], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 18:52:07 UTC +00:00]]  (0.2ms) 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", 10], ["created_at", Fri, 12 Jul 2013 18:52:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:52:07 UTC +00:00], ["user_id", 10]]  (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", Fri, 12 Jul 2013 18:52:07 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$UCt7nB.qAj4B0dKudlR78ejgHRelfotjU67VKhfySmwOAMjdEClPS"], ["updated_at", Fri, 12 Jul 2013 18:52:07 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", Fri, 12 Jul 2013 18:52:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$asJTa6VQrSNSiXUJqjSZ5OKhj1E6f2DceqqY1nZsAMSslITKd1WMy"], ["updated_at", Fri, 12 Jul 2013 18:52:07 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", Fri, 12 Jul 2013 18:52:07 UTC +00:00], ["name", "Root"], ["owner_id", 12], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 18:52:07 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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.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.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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.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') Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Vq7Tuzr7pmBGCcjmpzZ1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = $1, "updated_at" = $2 WHERE "public"."cadenero_accounts"."id" = 11 [["authentication_token", "Vq7Tuzr7pmBGCcjmpzZ1"], ["updated_at", Fri, 12 Jul 2013 18:52:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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  (23.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  (7.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.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.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.4ms) ROLLBACK  (0.3ms) BEGIN Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' 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  (9.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.2ms) ROLLBACK  (0.1ms) BEGIN Cadenero::V1::Account Exists (1.1ms) 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  (9.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.4ms) ROLLBACK  (2.1ms) BEGIN  (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" = '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", Fri, 12 Jul 2013 18:52:07 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$AkiPpxx1uetW5hD6e34ez.7KVj0q4ctpiP6tc2uQurWVatPOhL8oG"], ["updated_at", Fri, 12 Jul 2013 18:52:07 UTC +00:00]] SQL (11.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Fri, 12 Jul 2013 18:52:07 UTC +00:00], ["name", "Test Account"], ["owner_id", 13], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 18:52:07 UTC +00:00]]  (0.2ms) 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", 12], ["created_at", Fri, 12 Jul 2013 18:52:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:52:07 UTC +00:00], ["user_id", 13]]  (3.5ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (2.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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 12]]  (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  (33.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.9ms) 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.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  (39.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  (6.0ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (2.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", 1001]] Completed 201 Created in 7ms (Views: 3.2ms | ActiveRecord: 2.9ms)  (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.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  (6.2ms) ROLLBACK  (0.5ms) 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", Fri, 12 Jul 2013 18:52:07 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$AJmBNu5BOJZmspgJcR4c.OqhazSMk2U6kGahy1Iyeyk1HxZALHRhu"], ["updated_at", Fri, 12 Jul 2013 18:52:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' 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", Fri, 12 Jul 2013 18:52:07 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 14], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 18:52:07 UTC +00:00]]  (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", Fri, 12 Jul 2013 18:52:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:52:07 UTC +00:00], ["user_id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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")  (4.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) 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-12 13:52: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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' ORDER BY "public"."cadenero_accounts"."id" ASC 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", Fri, 12 Jul 2013 18:52:07 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$YJTPvJWazZTCGMuwkvjxAeo4S.eRvJhMR555ABJdOYfPlRmwKgVtm"], ["updated_at", Fri, 12 Jul 2013 18:52:07 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", 13], ["created_at", Fri, 12 Jul 2013 18:52:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 18:52:07 UTC +00:00], ["user_id", 15]]  (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" = 15 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 15]] 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", 15]] Completed 201 Created in 22ms (Views: 6.5ms | ActiveRecord: 3.9ms) 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  (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.5ms) 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  (14.3ms) ROLLBACK Connecting to database specified by database.yml  (1.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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.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  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (12.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:03:04 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$o0n.dsWrc38/I5HkrXzvLu6UzGPH.N1azFfm02RSiF9wd/JSAOe82"], ["updated_at", Fri, 12 Jul 2013 19:03:04 UTC +00:00]]  (2.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.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", Fri, 12 Jul 2013 19:03:04 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 19:03:04 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 19:03:04 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:03:04 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.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)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:03:04 -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 (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" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 145ms (Views: 28.5ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:03:04 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 14:03:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (6.5ms) ROLLBACK  (0.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  (11.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "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  (1.6ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:03:04 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$.kB4MZvU4yHMw4BA2.N2de3sf/4dldxlvMfbz95IUsi3xvTpXLuv6"], ["updated_at", Fri, 12 Jul 2013 19:03:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 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", Fri, 12 Jul 2013 19:03:04 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 19:03:04 UTC +00:00]]  (0.5ms) 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", Fri, 12 Jul 2013 19:03:04 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:03:04 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test2"  (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)   (7.9ms) 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")  (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.5ms) 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")  (5.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.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"  (0.6ms) 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') Started GET "/v1" for 127.0.0.1 at 2013-07-12 14:03:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:03:05 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') 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" = 'user2@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 114ms (Views: 4.6ms | ActiveRecord: 2.7ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 14:03:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (5.6ms) 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  (43.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.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", Fri, 12 Jul 2013 19:03:05 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$Rur5QrkwpWiqKXhbKPXMyez/xiGNluDlmomU6fIHv27PRSPSzaWBm"], ["updated_at", Fri, 12 Jul 2013 19:03:05 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.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", Fri, 12 Jul 2013 19:03:05 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 19:03:05 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 19:03:05 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:03:05 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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)   (0.8ms) 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")  (14.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)  (4.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) 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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (5.5ms) 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-12 14:03:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:03:05 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) 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" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.7ms) ROLLBACK  (0.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  (12.1ms) 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.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", Fri, 12 Jul 2013 19:03:05 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$NF5TyrjWU88xpEZJAR/Us.Lj4ZltABJXJmqw8YAJ/xqkp01nm7/I."], ["updated_at", Fri, 12 Jul 2013 19:03:05 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.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", Fri, 12 Jul 2013 19:03:05 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 19:03:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) 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", Fri, 12 Jul 2013 19:03:05 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:03:05 UTC +00:00], ["user_id", 1]]  (9.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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)   (2.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) 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)  (1.3ms) 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)   (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.7ms) 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')  (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", Fri, 12 Jul 2013 19:03:05 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$Yqtdq0zUFpOfQBpg1SFWkOWvoF6snBBmQj.SkW3piLvsFRH6PwmOW"], ["updated_at", Fri, 12 Jul 2013 19:03:05 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 19:03:05 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 2], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 19:03:05 UTC +00:00]]  (0.1ms) 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", 2], ["created_at", Fri, 12 Jul 2013 19:03:05 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:03:05 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 14:03:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:03:05 -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 ('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" = 1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.7ms) 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  (16.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (0.8ms) 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", Fri, 12 Jul 2013 19:03:06 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$2Iknk3SLZTe1GgyVlkheYu5Qwl5F2xojL9c/s0lhHmHD2EJAOvluC"], ["updated_at", Fri, 12 Jul 2013 19:03:06 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.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", Fri, 12 Jul 2013 19:03:06 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 19:03:06 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 19:03:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:03:06 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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)   (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.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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (26.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 ('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-12 14:03:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:03:06 -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 ('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 Completed 422 Unprocessable Entity in 13ms (Views: 0.4ms | 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  (20.7ms) ROLLBACK  (0.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  (38.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.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:03:06 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$6N1U7BhzOfPEZG27ijIzX.SHVW.tvJhojSUBZQ3vWMnw2lQ8rZgU6"], ["updated_at", Fri, 12 Jul 2013 19:03:06 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", Fri, 12 Jul 2013 19:03:06 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 19:03:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.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", Fri, 12 Jul 2013 19:03:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:03:06 UTC +00:00], ["user_id", 1]]  (2.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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.7ms) 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")  (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)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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")  (1.0ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:03:06 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' LIMIT 1  (4.8ms) ROLLBACK  (0.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  (16.8ms) 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  (0.9ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.1ms) 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  (17.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  (0.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.2ms) ROLLBACK  (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;  (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.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:03:09 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$iZP./RRpYxmU2dKZOVcdj.AG7RK3gCTAGi5A0Q4MaHzRi3tGschpO"], ["updated_at", Fri, 12 Jul 2013 19:03:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Fri, 12 Jul 2013 19:03:09 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 19:03:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 19:03:09 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:03:09 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", Fri, 12 Jul 2013 19:03:10 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$VVgnF4lBLZVWTD72njqhHOsIvhCw2qIIp5bPbqA31aC.1XLSRO0Um"], ["updated_at", Fri, 12 Jul 2013 19:03:10 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", Fri, 12 Jul 2013 19:03:10 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$QpAbsteJhv.qlp6epvyb6uLGGuDtUks6CGghAWALZG/TULj.8GnKW"], ["updated_at", Fri, 12 Jul 2013 19:03: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" = '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", Fri, 12 Jul 2013 19:03:10 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 19:03:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "www"  (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")  (2.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)  (2.0ms) 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")  (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)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) 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" = '1NZpKu4rJjLtzxzmsC9f' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (1.2ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = '1NZpKu4rJjLtzxzmsC9f', "updated_at" = '2013-07-12 19:03:10.244649' 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"   (2.3ms) ROLLBACK  (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  (12.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  (0.8ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.4ms) ROLLBACK  (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  (13.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  (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.6ms) ROLLBACK  (0.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  (55.2ms) 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  (8.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 (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:03:10 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$A1NCDJ/Qs6lmRcyhK8.5X.UE8wXMcDUCUrG3DnFbBqVAPV.0kM15i"], ["updated_at", Fri, 12 Jul 2013 19:03:10 UTC +00:00]] SQL (3.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", Fri, 12 Jul 2013 19:03:10 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 19:03:10 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", Fri, 12 Jul 2013 19:03:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:03:10 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (0.3ms) ROLLBACK  (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.3ms) 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  (1.1ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.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.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  (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", Fri, 12 Jul 2013 19:03:11 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$JLBqDwfRewWrZmFI4jsw6.WnCPPr.mabpNG9Xsklgezf.dM7/20K."], ["updated_at", Fri, 12 Jul 2013 19:03:11 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.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", Fri, 12 Jul 2013 19:03:11 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 19:03:11 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 19:03:11 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:03:11 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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)  (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")  (4.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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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)   (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 ('20130612073709')  (0.2ms) 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-12 14:03:11 -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" = 'test9' LIMIT 1  (0.3ms) 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", Fri, 12 Jul 2013 19:03:11 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$A4s.4hJyYYj3zokd3dQPlOBayVByAyjlF5/rWM3hiQUCrRVl2QXZG"], ["updated_at", Fri, 12 Jul 2013 19:03:11 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", 1], ["created_at", Fri, 12 Jul 2013 19:03:11 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:03:11 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 124ms (Views: 5.4ms | 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  (8.3ms) ROLLBACK  (0.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.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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.4ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 14:03:11 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (2.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (3.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:03:11 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$6LIvlup8BQ1VPh5ERRaXi.8uO2/mqUXUhEv0iSYUFTtA5IYlKDmzu"], ["updated_at", Fri, 12 Jul 2013 19:03:11 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", Fri, 12 Jul 2013 19:03:11 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 19:03:11 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 19:03:11 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:03:11 UTC +00:00], ["user_id", 1]]  (1.0ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (1.4ms) CREATE SCHEMA "test"  (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)   (0.8ms) 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")  (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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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)   (4.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (10.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 ('20130612073709')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'R1j4q9GyRiMZGuGvmetx' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'R1j4q9GyRiMZGuGvmetx', "updated_at" = '2013-07-12 19:03:12.028128' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 556ms (Views: 1.9ms | ActiveRecord: 81.3ms) Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.9ms) 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  (20.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  (0.9ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (9.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (2.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:03:12 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$HupfhwoMI5kfvZBIegMEEeXnfF3Qu8sJ9LWR22T2/vrAenh9rYlW."], ["updated_at", Fri, 12 Jul 2013 19:03:12 UTC +00:00]] 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", Fri, 12 Jul 2013 19:03:12 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 19:03:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 14:03: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.3ms) 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  (0.9ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 214ms (Views: 0.3ms | ActiveRecord: 1.6ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.2ms) ROLLBACK  (1.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  (21.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (9.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 Connecting to database specified by database.yml Connecting to database specified by database.yml  (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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.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  (0.1ms) BEGIN  (16.2ms) SAVEPOINT active_record_1 SQL (10.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:04:26 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$ojwB9YpxJKb.5H24TdQt0OgwdPtQGdMwTjZQGGEej5/BxxPe3gYa."], ["updated_at", Fri, 12 Jul 2013 19:04:26 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 19:04:26 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 19:04:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (7.6ms) SAVEPOINT active_record_1 SQL (3.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", Fri, 12 Jul 2013 19:04:26 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:04:26 UTC +00:00], ["user_id", 1]]  (5.7ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (4.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (20.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.1ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:04:26 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:04:26 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$zNwhbxyDf/ECeBGZ6VDbde80U0JRDJTDalie3uN1CjiZYfgrdUfnC"], ["updated_at", Fri, 12 Jul 2013 19:04:26 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", Fri, 12 Jul 2013 19:04:26 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:04:26 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 147ms (Views: 33.6ms | 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  (8.9ms) ROLLBACK  (0.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  (44.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (1.9ms) 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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.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  (1.6ms) BEGIN  (2.7ms) SAVEPOINT active_record_1 SQL (18.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:11:31 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$d6RompYLwSt48CAgcrLLbe/P66.v1Y8hLviMZVOE5DnwQp7buIkA2"], ["updated_at", Fri, 12 Jul 2013 19:11:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 19:11:31 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 19:11:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.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", Fri, 12 Jul 2013 19:11:31 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:11:31 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (31.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)   (10.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) 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")  (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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (5.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:11:31 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:11:32 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$HsSYUfmow70eS5KhgziCauWoBmscjdgrBPAS6glKJCHYdgR8Z5ezG"], ["updated_at", Fri, 12 Jul 2013 19:11:32 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", 1], ["created_at", Fri, 12 Jul 2013 19:11:32 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:11:32 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 152ms (Views: 35.2ms | 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/users/2" for 127.0.0.1 at 2013-07-12 14:11:32 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Completed 500 Internal Server Error in 2ms  (7.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  (34.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (2.9ms) 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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (21.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.1ms) BEGIN  (1.1ms) SAVEPOINT active_record_1 SQL (9.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:12:47 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$Ed9ifbpF2skDG0fk1OJAFefuWn754X7X.7VYthLTWIYnF5bKTl0.."], ["updated_at", Fri, 12 Jul 2013 19:12:47 UTC +00:00]]  (7.4ms) RELEASE SAVEPOINT active_record_1  (1.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 19:12:47 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 19:12:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.4ms) SAVEPOINT active_record_1 SQL (3.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 19:12:47 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:12:47 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (8.4ms) CREATE SCHEMA "test1"  (8.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)   (8.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (11.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.1ms) 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")  (11.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.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 ('20130612073709')  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:12:47 -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 (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:12:48 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$2seDWWwmMIQrmEc3KKPUL.k80yUOf64yrod03L6iZ7aP9xRluNFIO"], ["updated_at", Fri, 12 Jul 2013 19:12:48 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", Fri, 12 Jul 2013 19:12:48 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:12:48 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 227ms (Views: 34.4ms | ActiveRecord: 3.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 14:12:48 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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" = 1 Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 1.4ms)  (6.6ms) 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  (42.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (9.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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.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.6ms) 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.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  (33.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  (7.4ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 19ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (0.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  (33.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.8ms) 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  (2.0ms) BEGIN  (7.0ms) SAVEPOINT active_record_1 SQL (54.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:13:10 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$0ToCDPdgXa2jPoYdAnAzTOhVae8mNBQuwvvXTcyVnL9qKC74w12Am"], ["updated_at", Fri, 12 Jul 2013 19:13:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 19:13:10 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 19:13:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 1], ["created_at", Fri, 12 Jul 2013 19:13:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:13:10 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (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.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) 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)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (4.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Fri, 12 Jul 2013 19:13:10 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$7tTAkxVWGCZB.Tx2gSWADeCbi57kp0nbSdP2V8NHSTN4vHmyJit72"], ["updated_at", Fri, 12 Jul 2013 19:13: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" = '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", Fri, 12 Jul 2013 19:13:10 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 19:13:10 UTC +00:00]]  (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", 2], ["created_at", Fri, 12 Jul 2013 19:13:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:13: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-12 14:13:10 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:13:10 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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" = 'user2@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 16ms (Views: 0.4ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.8ms) ROLLBACK  (8.9ms) 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  (18.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (4.2ms) 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.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", Fri, 12 Jul 2013 19:13:10 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$WGY4XhzE8NCaHbvNtASkreoNnGfSJMm435HPoTjPkv23YvzcuMknK"], ["updated_at", Fri, 12 Jul 2013 19:13: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" = 'test3' 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", Fri, 12 Jul 2013 19:13:10 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 19:13:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 19:13:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:13:10 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test3"  (9.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.7ms) 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)  (2.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) 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)   (1.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:13:10 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1  (3.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  (11.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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 (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:13:10 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$2tlS61rqCoYqjxdOfcJVlOX3bm9UcQ2AMEkGEAuJndlVzSHndUG1O"], ["updated_at", Fri, 12 Jul 2013 19:13: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" = 'test4' 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", Fri, 12 Jul 2013 19:13:10 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 19:13:10 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", Fri, 12 Jul 2013 19:13:11 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:13:11 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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)   (0.9ms) 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")  (13.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)  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (7.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 ('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-12 14:13:11 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:13:11 -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.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" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 136ms (Views: 30.7ms | ActiveRecord: 2.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 14:13:11 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.9ms) ROLLBACK  (0.7ms) 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  (19.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:13:11 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$mUGVMMhDo4jDqePcRJbHSekP2F99b/14hOrPZqfmpt8g6uj5nQtM2"], ["updated_at", Fri, 12 Jul 2013 19:13:11 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", Fri, 12 Jul 2013 19:13:11 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 19:13:11 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", Fri, 12 Jul 2013 19:13:11 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:13:11 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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)   (4.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) 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)  (2.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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)   (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (5.9ms) SELECT version FROM "schema_migrations"  (1.5ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-12 14:13:11 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:13:11 -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 ('test5') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.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  (15.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:13:11 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$2jHTv6hg2Ada1UMWWPwOyeQlzLOKYZZ9MPWhtHgyzUdjw1eJvaNyC"], ["updated_at", Fri, 12 Jul 2013 19:13:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' 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", Fri, 12 Jul 2013 19:13:11 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 19:13:11 UTC +00:00]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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", 1], ["created_at", Fri, 12 Jul 2013 19:13:11 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:13:11 UTC +00:00], ["user_id", 1]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (1.0ms) 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.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.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)  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) 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)   (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.8ms) SELECT version FROM "schema_migrations"  (0.8ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:13:11 -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 (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 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" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 133ms (Views: 4.5ms | ActiveRecord: 4.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:13:11 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (8.5ms) 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  (11.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:13:12 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$JyJy1LgP8zIuZxPgtGV0TexxJdir7EoMxPb2Y2rnGbDdE6.S.diye"], ["updated_at", Fri, 12 Jul 2013 19:13:12 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", Fri, 12 Jul 2013 19:13:12 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 19:13:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", Fri, 12 Jul 2013 19:13:12 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:13:12 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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)   (2.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")  (5.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)  (3.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.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)  (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 ('20130612073709')  (0.2ms) 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-12 14:13:12 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:13:12 -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.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" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.9ms) ROLLBACK  (1.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  (16.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 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", Fri, 12 Jul 2013 19:13:12 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$NC/Rwdc4ALKF9IkN440fheZU.s8tNsAmFwT4JIquSmulzTGL5brUK"], ["updated_at", Fri, 12 Jul 2013 19:13:12 UTC +00:00]] 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", Fri, 12 Jul 2013 19:13:12 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 19:13:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 14:13: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.8ms) 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 136ms (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" = 'Testy' LIMIT 1  (0.6ms) 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.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 14:13: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.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 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:13:12 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$ehwtGtC0w/thCC3olYV90u1EheR7tXVr8y2nDAaUmcKBvgvEuu7Gi"], ["updated_at", Fri, 12 Jul 2013 19:13:12 UTC +00:00]] 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", Fri, 12 Jul 2013 19:13:12 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 19:13:12 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 19:13:12 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:13:12 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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  (0.2ms) CREATE SCHEMA "test"  (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)   (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.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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.5ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rzpsVCpas98u3tpdtqTs' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'rzpsVCpas98u3tpdtqTs', "updated_at" = '2013-07-12 19:13:12.671855' WHERE "public"."cadenero_accounts"."id" = 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 166ms (Views: 1.8ms | ActiveRecord: 34.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.9ms) 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.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.7ms) BEGIN Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.7ms) 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.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.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  (16.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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.0ms) BEGIN  (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 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:13:12 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$DVZSS80yOgclqzVuKPEgye2kF06DUrH6ug5XBVSKREF1WoXOLvW6G"], ["updated_at", Fri, 12 Jul 2013 19:13:12 UTC +00:00]] 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", Fri, 12 Jul 2013 19:13:12 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 19:13:12 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 19:13:12 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:13:12 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (0.3ms) 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  (15.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.8ms) 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.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  (12.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  (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", Fri, 12 Jul 2013 19:13:13 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$C3yV3w/f9JVTt/Z22.x17OCyaOxfRxo85.NRu3hPoBHsAtfOD6lDS"], ["updated_at", Fri, 12 Jul 2013 19:13:13 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" = 'test8' 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", Fri, 12 Jul 2013 19:13:13 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 19:13:13 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 19:13:13 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:13:13 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (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")  (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)  (1.0ms) 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")  (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.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 ('20130612073709')  (0.2ms) 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-12 14:13:13 -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" = 'test8' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:13:13 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$szKufr4zpVmBkAK4ddx.7eecAN5d./fGrkRrKeWDyFVkoeQTQ4iJG"], ["updated_at", Fri, 12 Jul 2013 19:13:13 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", Fri, 12 Jul 2013 19:13:13 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:13:13 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 116ms (Views: 4.9ms | ActiveRecord: 3.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/2" for 127.0.0.1 at 2013-07-12 14:13:13 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 1 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 1.6ms)  (3.1ms) 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  (11.3ms) 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.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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", Fri, 12 Jul 2013 19:13:16 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$KwZJWvnODHS.3QrVg0IoWO25DiNaB3gnk8qIuz9KocitBvKI0Cuxy"], ["updated_at", Fri, 12 Jul 2013 19:13:16 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.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", Fri, 12 Jul 2013 19:13:16 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 19:13:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 19:13:16 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:13:16 UTC +00:00], ["user_id", 1]]  (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", Fri, 12 Jul 2013 19:13:17 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$B0tlOrjviMgsM2.xBIqW9e8r1C62851a86iaAcUoOCSnPsNxFxO.O"], ["updated_at", Fri, 12 Jul 2013 19:13:17 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", Fri, 12 Jul 2013 19:13:17 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$27ZShftyJ8m3pD5KO6qmOO4SfWwFs9tH9YSKIPuHa9EXpEkNhG8OC"], ["updated_at", Fri, 12 Jul 2013 19:13:17 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", Fri, 12 Jul 2013 19:13:17 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 19:13:17 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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" ("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)   (0.9ms) 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")  (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.3ms) 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') Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'x5z99zLexasoyNfEarz9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'x5z99zLexasoyNfEarz9', "updated_at" = '2013-07-12 19:13:17.226672' 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"  (3.1ms) ROLLBACK  (1.0ms) 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  (10.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.4ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (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  (5.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 16ms (Views: 4.3ms | 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  (15.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (2.1ms) ROLLBACK  (1.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  (15.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.3ms) BEGIN Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.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  (11.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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 (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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  (20.9ms) 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 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (3.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:14:49 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$GB0Lb/5si8vLgai6TFubNe3V54uVFO3De25Vs8uwGS2WBpy802ife"], ["updated_at", Fri, 12 Jul 2013 19:14:49 UTC +00:00]] SQL (1.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", Fri, 12 Jul 2013 19:14:49 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 19:14:49 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 19:14:49 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:14:49 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (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  (11.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.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  (17.1ms) 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  (6.8ms) BEGIN  (0.9ms) 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", Fri, 12 Jul 2013 19:14:50 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$AWTCMJwHwUEpsVpVcRoeeefdp6SShd.0QhyCXgQZzZ4PYzw/yZQGy"], ["updated_at", Fri, 12 Jul 2013 19:14:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (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", Fri, 12 Jul 2013 19:14:50 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 19:14:50 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", Fri, 12 Jul 2013 19:14:50 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:14:50 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (0.9ms) 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.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("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)   (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"  (5.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.8ms) 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-12 14:14:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 5ms (Views: 0.6ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:14:50 -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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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"."email" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 180ms (Views: 71.0ms | ActiveRecord: 2.7ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 14:14:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (7.0ms) ROLLBACK  (0.9ms) 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.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 (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:14:50 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$wNHD4vY40zCPukYq4WcoQezkgaSpdBmCx36UYh.P/bUcyV6qILgWe"], ["updated_at", Fri, 12 Jul 2013 19:14:50 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" = 'test2' 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", Fri, 12 Jul 2013 19:14:50 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 19:14:50 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 19:14:50 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:14:50 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (3.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.1ms) 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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (9.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (5.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Fri, 12 Jul 2013 19:14:50 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$syD5OCkCJXqFem8LkrCMMehum5DqEMtFDG7ZkeyRkdJupslbnLBCu"], ["updated_at", Fri, 12 Jul 2013 19:14:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 19:14:50 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 19:14:50 UTC +00:00]]  (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", Fri, 12 Jul 2013 19:14:50 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:14:50 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 14:14:50 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:14:50 -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.3ms) 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" = 1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.9ms) 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  (14.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:14:51 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$AeLOBcbG0z6jt5.Ap4/0qOLGkUjG/CrxDPBPKFlv.1dxZOKA05/Yq"], ["updated_at", Fri, 12 Jul 2013 19:14:51 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.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", Fri, 12 Jul 2013 19:14:51 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 19:14:51 UTC +00:00]]  (0.2ms) 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", 1], ["created_at", Fri, 12 Jul 2013 19:14:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:14:51 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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)   (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.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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.3ms) SELECT version FROM "schema_migrations"  (1.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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:14:51 -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  (4.6ms) 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  (13.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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", Fri, 12 Jul 2013 19:14:51 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$5Ww6TmOm1lujFEXMXiHVNuupGA5CU9bOI9zSKhmcIFHbCijtIW.gm"], ["updated_at", Fri, 12 Jul 2013 19:14:51 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 (2.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", Fri, 12 Jul 2013 19:14:51 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 19:14:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 19:14:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:14:51 UTC +00:00], ["user_id", 1]]  (5.9ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test5"  (17.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)   (8.7ms) 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")  (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)  (6.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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)  (2.8ms) 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 ('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-12 14:14:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:14:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (17.6ms) 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 Completed 422 Unprocessable Entity in 23ms (Views: 0.4ms | ActiveRecord: 18.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  (5.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  (12.9ms) 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 (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:14:51 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$plAX6iYhA2FLl2aFu3PyT.QrrbujcGzB0.JQZJqsWc/a0AEUQsK6q"], ["updated_at", Fri, 12 Jul 2013 19:14:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' 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", Fri, 12 Jul 2013 19:14:51 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 19:14:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 19:14:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:14:51 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.1ms) 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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:14: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.6ms) 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" = 'user6@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 (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 106ms (Views: 4.5ms | ActiveRecord: 2.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:14:51 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 14:14:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (5.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  (14.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.4ms) 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", Fri, 12 Jul 2013 19:14:51 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$xoYkMEw0Hd9yY9gKA7owaueI5Np.DUyp4aj5uikh3pW0g1oI33tgq"], ["updated_at", Fri, 12 Jul 2013 19:14:51 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 (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", Fri, 12 Jul 2013 19:14:51 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 19:14:51 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 19:14:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:14:51 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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.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")  (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)  (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")  (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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.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 GET "/v1" for 127.0.0.1 at 2013-07-12 14:14:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:14:51 -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 ('test7') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | 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.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  (17.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (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", Fri, 12 Jul 2013 19:14:55 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$rRg2vkWO68r2WHtm.Jnsde8AL2dBHzQ3fQW.nv7STt0eSPBa5UZne"], ["updated_at", Fri, 12 Jul 2013 19:14:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Fri, 12 Jul 2013 19:14:55 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 19:14:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 19:14:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:14:55 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", Fri, 12 Jul 2013 19:14:55 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$nWkUDdLv5kVotOf66AJmJOAJtBSBhsnBZTSpsfl5nn.q9zbkZqnXG"], ["updated_at", Fri, 12 Jul 2013 19:14:55 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", Fri, 12 Jul 2013 19:14:55 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$5tpPzN771CIn/khmG0JF.uSuZDYbkLcHW4opsBceNsisW6OIrDzZe"], ["updated_at", Fri, 12 Jul 2013 19:14:55 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", Fri, 12 Jul 2013 19:14:55 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 19:14:55 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)   (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.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)  (1.0ms) 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")  (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.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') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yP12VvAZ9HA1pZa9ipFy' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'yP12VvAZ9HA1pZa9ipFy', "updated_at" = '2013-07-12 19:14:55.587300' 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.5ms) 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  (11.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 14:14: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.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 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:14:55 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$T2WiXb38rdYl1IwNZKF6i.N4SqQ5/5ielDF8PRyjHcf2XkkW8UsvO"], ["updated_at", Fri, 12 Jul 2013 19:14:55 UTC +00:00]] 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", Fri, 12 Jul 2013 19:14:55 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 19:14:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 19:14:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:14:55 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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  (0.2ms) CREATE SCHEMA "test"  (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.4ms) 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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.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') Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DyLyi3Xkqb6ezfFVpyzq' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'DyLyi3Xkqb6ezfFVpyzq', "updated_at" = '2013-07-12 19:14:55.833183' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 217ms (Views: 2.1ms | ActiveRecord: 32.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.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  (13.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.1ms) BEGIN  (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 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:14:55 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$HBCa3LfeuAOim/yEXEBvXuxJFmTtoABl7RjDl4vVZ/YvN2aHZYyGW"], ["updated_at", Fri, 12 Jul 2013 19:14:55 UTC +00:00]] 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", Fri, 12 Jul 2013 19:14:55 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 19:14:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 14:14: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.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.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 103ms (Views: 0.3ms | ActiveRecord: 0.7ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.2ms) ROLLBACK  (0.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  (14.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", Fri, 12 Jul 2013 19:14:56 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$q7fE1Sa/b2EXr.uJzjcBCuaISIwXhJio0g2IUHu1BJ9GpznDvIh2S"], ["updated_at", Fri, 12 Jul 2013 19:14: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" = 'test9' 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", Fri, 12 Jul 2013 19:14:56 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 19:14:56 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 19:14:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:14:56 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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" ("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)   (1.0ms) 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")  (5.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.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 ('20130612073709')  (0.2ms) 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-12 14:14: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" = 'test9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:14:56 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$WDpOvd4pV9G8.gyyUlNdAOEd/Zu4mP2dtcWq9xWOYIZzy8p.0bZry"], ["updated_at", Fri, 12 Jul 2013 19:14: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", 1], ["created_at", Fri, 12 Jul 2013 19:14:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:14:56 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 109ms (Views: 5.0ms | ActiveRecord: 3.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/2" for 127.0.0.1 at 2013-07-12 14:14:56 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 1.7ms)  (4.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  (31.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 Connecting to database specified by database.yml  (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  (3.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (43.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 14ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (4.6ms) 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  (11.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (6.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  (17.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)  (0.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  (22.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (6.1ms) 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 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 14:15:58 -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.4ms) 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 (4.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:15:59 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$SWtybWA1OegfUCfzlqJRb.wTx31d3JxHGgff/PQzzjvfZeHcLQu9y"], ["updated_at", Fri, 12 Jul 2013 19:15:59 UTC +00:00]] SQL (1.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", Fri, 12 Jul 2013 19:15:59 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 19:15:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 19:15:59 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:15:59 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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  (0.3ms) CREATE SCHEMA "test"  (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.9ms) 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")  (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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.8ms) 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')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eLqnFqXLD6Ahru1yE3ps' LIMIT 1  (0.2ms) SAVEPOINT active_record_1  (6.9ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'eLqnFqXLD6Ahru1yE3ps', "updated_at" = '2013-07-12 19:15:59.329653' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Completed 201 Created in 509ms (Views: 1.8ms | ActiveRecord: 68.0ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (7.1ms) 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  (21.7ms) 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.3ms) 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", Fri, 12 Jul 2013 19:15:59 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$7H.DZuRcT5Gbb7q4eNKHSOdwzbsp1bVjv1v5L4cwjAZwGvCWErvfS"], ["updated_at", Fri, 12 Jul 2013 19:15:59 UTC +00:00]] 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", Fri, 12 Jul 2013 19:15:59 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 19:15:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 14:15:59 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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  (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 113ms (Views: 0.4ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.1ms) ROLLBACK  (0.4ms) 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.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) 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", Fri, 12 Jul 2013 19:16:03 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$QsNkQla.A1YGeoHjRFSuKOaCi1enMI9hQ.DmWeuH4ui4lvizETOHm"], ["updated_at", Fri, 12 Jul 2013 19:16: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" = 'test1' 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", Fri, 12 Jul 2013 19:16:03 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 19:16:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 19:16:03 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:16:03 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:16:03 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$qtYlsWI4Io3eL46O2skvlO9vpTgAtVCelKkC97JG4F4TtbCpTRUZ6"], ["updated_at", Fri, 12 Jul 2013 19:16:03 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", Fri, 12 Jul 2013 19:16:03 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$VukCj1Vr3bMCJcLrOj5fH.bbjUKiJ8SXEzwi9NqHoV.iQCqH2U.8W"], ["updated_at", Fri, 12 Jul 2013 19:16:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Fri, 12 Jul 2013 19:16:03 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 19:16:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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.5ms) 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)  (1.0ms) 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")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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" = 'MSW32p3ot6M89xRd9r9G' LIMIT 1  (0.1ms) SAVEPOINT active_record_1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "authentication_token" = 'MSW32p3ot6M89xRd9r9G', "updated_at" = '2013-07-12 19:16:03.364367' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (3.9ms) ROLLBACK  (0.4ms) 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  (22.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.7ms) 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", Fri, 12 Jul 2013 19:16:03 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$YDcx2matUCIMqYvfS/Plve.PEorqjmW20cerYoEP8AUyn/E26FfEu"], ["updated_at", Fri, 12 Jul 2013 19:16:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Fri, 12 Jul 2013 19:16:03 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 19:16:03 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 19:16:03 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:16:03 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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)  (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.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)   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.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 ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:16: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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:16:03 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$a8bwFv.VVoYw7.vt1Jx9XOLRBPnU0OF3MKe6ykau6GjvZVjjx9AFa"], ["updated_at", Fri, 12 Jul 2013 19:16: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", 1], ["created_at", Fri, 12 Jul 2013 19:16:03 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:16:03 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 193ms (Views: 87.5ms | ActiveRecord: 3.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 14:16:03 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 2 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" = 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 14ms (Views: 9.0ms | ActiveRecord: 2.1ms)  (3.7ms) 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  (21.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.6ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.3ms) ROLLBACK  (0.9ms) 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.3ms) 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 (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.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  (14.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.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.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.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 Cadenero::V1::Account Exists (0.4ms) 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", Fri, 12 Jul 2013 19:16:04 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$KpEEDnIZUAw0ugYmqAFmKuEC0uvgQziAtNc1gtvoSuZfjN9YVHjhu"], ["updated_at", Fri, 12 Jul 2013 19:16:04 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", Fri, 12 Jul 2013 19:16:04 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 19:16:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 19:16:04 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:16:04 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (0.2ms) 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  (13.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.6ms) BEGIN  (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", Fri, 12 Jul 2013 19:16:04 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$Xm/PDqnQcQdL0IgTj9EyxOU9xUDetnXpEhM63Mk2kYrb0B/S5Mo52"], ["updated_at", Fri, 12 Jul 2013 19:16:04 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 (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", Fri, 12 Jul 2013 19:16:04 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 19:16:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 19:16:04 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:16:04 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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.7ms) 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")  (23.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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (7.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (15.2ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-12 14:16:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:16:04 -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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') 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" = 'user4@example.com' LIMIT 1 Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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" = 1 Completed 201 Created in 238ms (Views: 5.3ms | ActiveRecord: 4.3ms) Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 14:16:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (3.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 3.4ms)  (5.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  (26.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (10.0ms) 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", Fri, 12 Jul 2013 19:16:05 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$b2brtwo6mPZcnYC71Fz9/epJwDrEvsdS386NPavjIMDYDf5.z61Cu"], ["updated_at", Fri, 12 Jul 2013 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Fri, 12 Jul 2013 19:16:05 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 19:16:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 19:16:05 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:16:05 UTC +00:00], ["user_id", 1]]  (2.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (16.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")  (3.2ms) 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)  (2.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (10.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) 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-12 14:16:05 -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.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') 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" = 1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 115ms (Views: 4.7ms | ActiveRecord: 4.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:16:05 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (3.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 3.9ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 14:16:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (19.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  (20.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  (18.6ms) BEGIN  (17.6ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:16:05 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$BLJTPtxDlAku2eyibCq33OjLMakjvdrFC4dDugrdkXeImdb5O4z/e"], ["updated_at", Fri, 12 Jul 2013 19:16:05 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.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", Fri, 12 Jul 2013 19:16:05 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 19:16:05 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 19:16:05 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:16:05 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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.2ms) 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.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)  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.2ms) 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)   (3.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.9ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 14:16:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:16:05 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (3.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" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 10ms (Views: 0.4ms | ActiveRecord: 5.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  (12.3ms) 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.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.9ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:16:05 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$NrheS7UaBQUvcaVwINEpfeuasjxBI5eoA//ExwPnfVL0YS5p6nnju"], ["updated_at", Fri, 12 Jul 2013 19:16:05 UTC +00:00]]  (1.9ms) RELEASE SAVEPOINT active_record_1  (4.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' 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", Fri, 12 Jul 2013 19:16:06 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 19:16:06 UTC +00:00]]  (9.7ms) 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", Fri, 12 Jul 2013 19:16:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:16:06 UTC +00:00], ["user_id", 1]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test6"  (7.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.6ms) 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.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)  (4.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("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)   (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.3ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 14:16:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:16:06 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | 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  (6.4ms) 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.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (1.5ms) SAVEPOINT active_record_1 SQL (9.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:16:06 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$r0WxepyDdmcwYDydaxddLOy0aO2PrpOjB.DfxagTjUL9J65pLVO4q"], ["updated_at", Fri, 12 Jul 2013 19:16:06 UTC +00:00]]  (6.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" = 'test7' LIMIT 1 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", Fri, 12 Jul 2013 19:16:06 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 19:16:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Fri, 12 Jul 2013 19:16:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:16:06 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (7.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.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) 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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Fri, 12 Jul 2013 19:16:06 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$Beo7AIlNyB1Sj7UHvEdq4.uXsg9mHqZAPb6XXIy7IQq1ceCfLkYBC"], ["updated_at", Fri, 12 Jul 2013 19:16:06 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" = '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", Fri, 12 Jul 2013 19:16:06 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 2], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 19:16:06 UTC +00:00]]  (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", Fri, 12 Jul 2013 19:16:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:16:06 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 14:16:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 14:16:06 -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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 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 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 2.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  (5.0ms) ROLLBACK  (2.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.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (7.6ms) 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", Fri, 12 Jul 2013 19:16:06 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$B.nETliXDShvhfqLRs2IcO7FCZeBIP8lZ1jjOfST11eHhNCBZiBae"], ["updated_at", Fri, 12 Jul 2013 19:16:06 UTC +00:00]]  (4.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (9.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", Fri, 12 Jul 2013 19:16:06 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 19:16:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 19:16:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:16:06 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (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)   (0.9ms) 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")  (12.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)  (15.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (6.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 ('20130612073709')  (0.1ms) 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-12 14:16:06 -0500 Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user10@example.com' LIMIT 1  (2.5ms) ROLLBACK  (1.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) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (38.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (5.0ms) SAVEPOINT active_record_1 SQL (28.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:19:14 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$9Pu3/w1aWhzSy9ALYW1wXOikTSiW.2Dg0h6qvr0YyAYLMO57kOqh."], ["updated_at", Fri, 12 Jul 2013 19:19:14 UTC +00:00]]  (9.5ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (10.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (11.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", Fri, 12 Jul 2013 19:19:14 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 19:19:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (7.1ms) SAVEPOINT active_record_1 SQL (16.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 19:19:14 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:19:14 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (16.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.5ms) 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.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)  (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) 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.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:19:14 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.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", Fri, 12 Jul 2013 19:19:14 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$sAZNCnhNUvyCcrFiTDwwZu/iRiqHt8HP0O4W/CLx.b4zhbeAyPraa"], ["updated_at", Fri, 12 Jul 2013 19:19:14 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", 1], ["created_at", Fri, 12 Jul 2013 19:19:14 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:19:14 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 150ms (Views: 34.8ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 14:19:14 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 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" = 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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" = 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 14ms (Views: 9.1ms | ActiveRecord: 1.9ms)  (6.5ms) 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  (36.0ms) 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 Connecting to database specified by database.yml  (4.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  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.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  (3.6ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 SQL (61.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:19:53 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$/jsS0mrWzeVtXZsShytfCuuETE9.DVoLBpUUv0XI7LO4zEMFNg6te"], ["updated_at", Fri, 12 Jul 2013 19:19:53 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (4.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (5.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", Fri, 12 Jul 2013 19:19:53 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 19:19:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.5ms) 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", 1], ["created_at", Fri, 12 Jul 2013 19:19:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:19:53 UTC +00:00], ["user_id", 1]]  (10.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test1"  (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)   (2.6ms) 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.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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.3ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:19:53 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:19:53 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$KLe6E.idUplOtQCQZnW48ekhhawXY/miwruDWOqRiTO4v/P.y/1dW"], ["updated_at", Fri, 12 Jul 2013 19:19:53 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", 1], ["created_at", Fri, 12 Jul 2013 19:19:53 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:19:53 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 266ms (Views: 37.0ms | 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 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 14:19:53 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (9.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 (2) PG::Error: ERROR: argument of AND must be type boolean, not type integer LINE 1: ..." WHERE "public"."cadenero_members"."account_id" = 1 AND (2) ^ : SELECT "public"."cadenero_users".* FROM "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 (2) Completed 500 Internal Server Error in 16ms  (0.3ms) ROLLBACK  (0.4ms) 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.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  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (39.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (1.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (12.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:20:26 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$0hxAr7QvKrMgnvddLVlNzOvnP.9NVj338C9X1mmwb3lBqhEB8BkG."], ["updated_at", Fri, 12 Jul 2013 19:20:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 19:20:26 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 19:20:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (10.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 19:20:26 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:20:26 UTC +00:00], ["user_id", 1]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (11.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.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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.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 POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:20:27 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:20:27 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$yLzWDmVoAUcMQnuWWV.GJe7IJiBP7vpQEDaC5/J9N5X.5IJQCgBjq"], ["updated_at", Fri, 12 Jul 2013 19:20:27 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", Fri, 12 Jul 2013 19:20:27 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:20:27 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 149ms (Views: 34.8ms | 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/2" for 127.0.0.1 at 2013-07-12 14:20:27 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 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" = 1 AND "public"."cadenero_users"."id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.7ms | ActiveRecord: 1.3ms)  (5.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  (14.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 Connecting to database specified by database.yml  (2.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  (9.4ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (12.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (4.8ms) 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 (10.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:21:01 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$YXfvCIhume5goiX0Iba8me2yk6mZscDvMZcRP3oxEBLeOE1KXzj0W"], ["updated_at", Fri, 12 Jul 2013 19:21:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (11.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", Fri, 12 Jul 2013 19:21:01 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 19:21:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) SAVEPOINT active_record_1 SQL (7.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", Fri, 12 Jul 2013 19:21:01 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:21:01 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (7.6ms) 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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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"  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (16.1ms) 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-12 14:21:01 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:21:01 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$6Izh7l3nXGglzZTcfyE3..4mYlMgB9dyyxBUPoFiBl6lpV851yHdW"], ["updated_at", Fri, 12 Jul 2013 19:21:01 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", Fri, 12 Jul 2013 19:21:01 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:21:01 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 158ms (Views: 34.9ms | ActiveRecord: 4.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/2" for 127.0.0.1 at 2013-07-12 14:21:01 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.2ms | ActiveRecord: 1.4ms)  (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  (16.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (3.3ms) 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  (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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (44.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.1ms) BEGIN  (1.9ms) SAVEPOINT active_record_1 SQL (23.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:24:55 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$80MXfthp0xHpkT2AwptySeuehoo.HCnl8onk7k17Z9K5xJeQXpI3u"], ["updated_at", Fri, 12 Jul 2013 19:24:55 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (10.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (11.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", Fri, 12 Jul 2013 19:24:55 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 19:24:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) SAVEPOINT active_record_1 SQL (10.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", Fri, 12 Jul 2013 19:24:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:24:55 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (17.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)   (11.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (11.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (11.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)  (5.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.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 POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:24:56 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.3ms) 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", Fri, 12 Jul 2013 19:24:56 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$XjIVPoc21C2rRohgSvOUYe9h7NfrPuClNj/btu5pJCq1QxL5Jv8M."], ["updated_at", Fri, 12 Jul 2013 19:24: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", 1], ["created_at", Fri, 12 Jul 2013 19:24:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:24:56 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 157ms (Views: 34.8ms | ActiveRecord: 5.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 14:24:56 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 1.4ms)  (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  (23.9ms) 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  (10.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  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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 (27.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:29:50 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$qiFO86hqVORrC7m/OzzimuQgIdsL9DyswtDShyRysC4x1A9Yf8T66"], ["updated_at", Fri, 12 Jul 2013 19:29:50 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (10.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 19:29:50 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 19:29:50 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (10.3ms) SAVEPOINT active_record_1 SQL (2.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", Fri, 12 Jul 2013 19:29:50 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:29:50 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (10.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)   (4.9ms) 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")  (6.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)  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.7ms) 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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (2.5ms) 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-12 14:29:50 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:29:50 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$7t3jhpiktQew1JcKvvGLO.9.dd2oYxbazquUPo/YDuiz0RcCY.BF."], ["updated_at", Fri, 12 Jul 2013 19:29:50 UTC +00:00]] 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", Fri, 12 Jul 2013 19:29:50 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:29:50 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 218ms (Views: 37.4ms | ActiveRecord: 6.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/2" for 127.0.0.1 at 2013-07-12 14:29:50 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 13ms (Views: 5.1ms | ActiveRecord: 1.5ms)  (24.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  (42.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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  (0.2ms) 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", Fri, 12 Jul 2013 19:29:50 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$mv3SBhRgP2nHnIud.CMuA.f3KCXxMcmb8IyCVAYxuzMNp7hncO5Ki"], ["updated_at", Fri, 12 Jul 2013 19:29:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Fri, 12 Jul 2013 19:29:50 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 19:29:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 19:29:50 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:29:50 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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.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")  (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)   (1.3ms) 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")  (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)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (8.4ms) 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') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:29:51 -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 (13.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:29:51 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$apgonzv9htD/QAhGC4UzceXDSSVXuHRConbQ1ZVo2FRIhTWcPS7ai"], ["updated_at", Fri, 12 Jul 2013 19:29:51 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", 1], ["created_at", Fri, 12 Jul 2013 19:29:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:29:51 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 123ms (Views: 5.2ms | ActiveRecord: 15.6ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 14:29:51 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 1.4ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:29:51 -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.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 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", Fri, 12 Jul 2013 19:29:51 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Mf/Rl4YC43ESXb6uCm//5ehSkU74v28xZggM22VZhaSy0V34Jpkrq"], ["updated_at", Fri, 12 Jul 2013 19:29:51 UTC +00:00]] SQL (0.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 19:29:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:29:51 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 112ms (Views: 5.1ms | 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  (5.6ms) ROLLBACK  (0.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  (22.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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 Connecting to database specified by database.yml  (4.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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (3.3ms) 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 (10.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:30:18 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$E3rSUQwRJsmvFVzMF9YHZ.056/IJ1TNA8vAJitNRHdkiB5YUgHwsq"], ["updated_at", Fri, 12 Jul 2013 19:30:18 UTC +00:00]]  (8.6ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.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", Fri, 12 Jul 2013 19:30:18 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 19:30:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 19:30:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:30:18 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (17.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)   (5.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.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)  (5.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (8.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:30:18 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:30:18 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ofsQWSUmvqrXfdJeQ0GE4ejgEEtjwCi5x375Y2FyCs18cZzIg5J8m"], ["updated_at", Fri, 12 Jul 2013 19:30:18 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", 1], ["created_at", Fri, 12 Jul 2013 19:30:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:30:18 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 151ms (Views: 34.7ms | 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/2" for 127.0.0.1 at 2013-07-12 14:30:18 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 1.4ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:30:18 -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.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 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", Fri, 12 Jul 2013 19:30:18 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$.DnA87qHtuCganzvhuHRTuxOAIY8pi9YoZno.j2bmUwxSnDUWXr3."], ["updated_at", Fri, 12 Jul 2013 19:30:18 UTC +00:00]] SQL (0.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 19:30:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:30:18 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 108ms (Views: 4.8ms | 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  (5.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  (13.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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.9ms) 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", Fri, 12 Jul 2013 19:30:18 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$JnSCJzRm00DNr/UIa14MFe1ZMkhsMZiVkW5F5M6Pu1rFw0brUeKny"], ["updated_at", Fri, 12 Jul 2013 19:30:18 UTC +00:00]]  (8.8ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Fri, 12 Jul 2013 19:30:18 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 19:30:18 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", Fri, 12 Jul 2013 19:30:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:30:18 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:30:19 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:30:19 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$8AbMkdo8dW1G4loso6ULKuzWcP.5znUXGiYqAPNMFqWUXDNGBZidC"], ["updated_at", Fri, 12 Jul 2013 19:30:19 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", 1], ["created_at", Fri, 12 Jul 2013 19:30:19 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:30:19 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 111ms (Views: 5.0ms | ActiveRecord: 2.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/2" for 127.0.0.1 at 2013-07-12 14:30:19 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 9ms (Views: 4.8ms | ActiveRecord: 1.3ms)  (4.8ms) 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  (23.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.8ms) 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  (3.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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.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.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (14.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:31:54 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$Mu.UI7eNJ5r/yx3N0W38ouH7KeLY9JsOu06gh/lPPFRFx4gdarqUS"], ["updated_at", Fri, 12 Jul 2013 19:31:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 19:31:54 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 19:31:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 19:31:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:31:54 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (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.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")  (2.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)  (2.5ms) 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")  (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)  (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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:31:54 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:31:54 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$XT2VJ/BrjkuaZzevBRtGi.qj7N9z/HXxj4q5.QjkaOIf1eqFCqM7q"], ["updated_at", Fri, 12 Jul 2013 19:31:54 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", 1], ["created_at", Fri, 12 Jul 2013 19:31:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:31:54 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."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" = 2 Completed 201 Created in 188ms (Views: 35.4ms | ActiveRecord: 4.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/2" for 127.0.0.1 at 2013-07-12 14:31:54 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.0ms | ActiveRecord: 1.5ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:31:54 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) 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", Fri, 12 Jul 2013 19:31:54 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$jSr0huaw/LIRv3DxSfOJeed8eSM9Vid4SjPadnIm5lNiB3QM9oYtu"], ["updated_at", Fri, 12 Jul 2013 19:31:54 UTC +00:00]] 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", 1], ["created_at", Fri, 12 Jul 2013 19:31:54 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:31:54 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 126ms (Views: 5.1ms | ActiveRecord: 3.7ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.8ms) 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  (11.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) 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 (9.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:31:55 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$4iVR0O2kwMzMX87JmoA8peX2ksnFCNd471CECncayzpE/ItUsfBdS"], ["updated_at", Fri, 12 Jul 2013 19:31:55 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (7.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Fri, 12 Jul 2013 19:31:55 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 19:31:55 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", Fri, 12 Jul 2013 19:31:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:31:55 UTC +00:00], ["user_id", 1]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (1.4ms) CREATE SCHEMA "test2"  (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")  (4.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)  (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.8ms) SELECT version FROM "schema_migrations"  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (9.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:31:55 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:31:55 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$28ckJldVYVV8NmPiPFQ7EOLd4b6YmaSP4SAAYYC3lIYSzLyoTLRWW"], ["updated_at", Fri, 12 Jul 2013 19:31:55 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", 1], ["created_at", Fri, 12 Jul 2013 19:31:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:31:55 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 115ms (Views: 4.8ms | ActiveRecord: 4.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/2" for 127.0.0.1 at 2013-07-12 14:31:55 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 9ms (Views: 4.8ms | ActiveRecord: 1.3ms)  (4.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  (18.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (7.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 Connecting to database specified by database.yml  (1.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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (12.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (6.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  (1.2ms) BEGIN  (18.3ms) SAVEPOINT active_record_1 SQL (31.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:37:22 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$aRVMURliTaKIpX5AJ5xTyuhG0o3gbnRvkhx/hwzMKUE42PvRFawPK"], ["updated_at", Fri, 12 Jul 2013 19:37:22 UTC +00:00]]  (3.8ms) RELEASE SAVEPOINT active_record_1  (3.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Fri, 12 Jul 2013 19:37:22 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 19:37:22 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (13.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 19:37:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:37:22 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.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.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:37: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 (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (6.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", Fri, 12 Jul 2013 19:37:23 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Ba187IsbXyuh6tZ0b9MPPeZbVoNVzLfm2yMa8i6NNe2xAVryiAp3y"], ["updated_at", Fri, 12 Jul 2013 19:37: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", 1], ["created_at", Fri, 12 Jul 2013 19:37:23 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:37:23 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 181ms (Views: 34.5ms | ActiveRecord: 11.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/2" for 127.0.0.1 at 2013-07-12 14:37:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 1.4ms)  (8.4ms) ROLLBACK  (1.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  (19.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.8ms) 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.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:37:23 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$yKiOtJtnbVhzbxa6ChVzguEKKh55YPUCYVlkOoCSKpKj3mDXHA5Ay"], ["updated_at", Fri, 12 Jul 2013 19:37:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Fri, 12 Jul 2013 19:37:23 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 19:37:23 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", Fri, 12 Jul 2013 19:37:23 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:37:23 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) CREATE SCHEMA "test2"  (9.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.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.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.2ms) 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 ('20130612073709')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:37: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" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:37:23 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$2056HAHd8KTnvpFCN6hx.uVe7P5bYEq3gUwVMfbD2MfYWZN7oy952"], ["updated_at", Fri, 12 Jul 2013 19:37: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", 1], ["created_at", Fri, 12 Jul 2013 19:37:23 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:37:23 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 111ms (Views: 5.3ms | ActiveRecord: 3.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/2" for 127.0.0.1 at 2013-07-12 14:37:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 1.3ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (6.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  (32.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (19.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) 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 (9.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:37:46 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$yEtEdT.5Rba3ivW8z6cGsuCPQQT45rk1hVSd3Wy136932PUr80mxG"], ["updated_at", Fri, 12 Jul 2013 19:37:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (10.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (11.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", Fri, 12 Jul 2013 19:37:46 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 19:37:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.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", Fri, 12 Jul 2013 19:37:46 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:37:46 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (14.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)   (4.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.4ms) 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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.1ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:37:46 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (12.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:37:47 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$zRIWjfdBijEbNyo5KOG4terneTaSFOMoXLSriuo.3dFXmYCalDw8K"], ["updated_at", Fri, 12 Jul 2013 19:37:47 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", Fri, 12 Jul 2013 19:37:47 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:37:47 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 296ms (Views: 38.7ms | ActiveRecord: 15.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 14:37:47 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 1.4ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 19:37:47 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 19:37:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Fri, 12 Jul 2013 19:37:47 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:37:47 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (0.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)  (2.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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)   (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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:37:47 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:37:47 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$DFK568VfoMR6dHzLUwwj4O85Wojl8OThTD2kFTBwKlGfdiLdPAE2y"], ["updated_at", Fri, 12 Jul 2013 19:37:47 UTC +00:00]] 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", 1], ["created_at", Fri, 12 Jul 2013 19:37:47 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:37:47 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (7.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 121ms (Views: 5.2ms | ActiveRecord: 9.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  (13.4ms) ROLLBACK  (0.7ms) 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  (18.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.3ms) 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", Fri, 12 Jul 2013 19:37:47 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$cv50uqNg4k1QATJ8ne1g0.X/fO1ZeJVSdzFtiCltoeX96.IMukY66"], ["updated_at", Fri, 12 Jul 2013 19:37:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Fri, 12 Jul 2013 19:37:47 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 19:37:47 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 19:37:47 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:37:47 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (9.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")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.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)   (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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:37:47 -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' LIMIT 1  (0.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", Fri, 12 Jul 2013 19:37:47 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$mTP5SBWah7Y.ECS9Fd7/TeqKrbgeSI4khzrKoDIMIPAiEioCl1z8a"], ["updated_at", Fri, 12 Jul 2013 19:37:47 UTC +00:00]] 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", Fri, 12 Jul 2013 19:37:47 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:37:47 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 139ms (Views: 5.3ms | 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 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 14:37:47 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 1.7ms)  (5.6ms) 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  (24.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (0.7ms) 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  (2.4ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (35.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.1ms) BEGIN  (2.3ms) SAVEPOINT active_record_1 SQL (10.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:40:24 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$To7vX8uEd7Fbk9kTxi.HYe2ZNCHu4go9AinwgskMyIWeNa1FXpO9u"], ["updated_at", Fri, 12 Jul 2013 19:40:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Fri, 12 Jul 2013 19:40:24 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 19:40:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 19:40:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:40:24 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (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")  (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)  (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (13.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")  (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 POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:40:24 -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' LIMIT 1  (1.0ms) 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", Fri, 12 Jul 2013 19:40:24 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$k8ipAdbZPffiZoJ.92EUS.OK8SQW64MpBmxZ.V6NUp523Axr1zX3u"], ["updated_at", Fri, 12 Jul 2013 19:40:24 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", 1], ["created_at", Fri, 12 Jul 2013 19:40:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:40:24 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 186ms (Views: 34.3ms | ActiveRecord: 5.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/2" for 127.0.0.1 at 2013-07-12 14:40:24 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 1.4ms)  (8.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  (17.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:40:24 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$w7CMzj.REP/3M2ML/KhJYePKNQPOGwatoX75wSNT5adjWNFg.DzQ2"], ["updated_at", Fri, 12 Jul 2013 19:40:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (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", Fri, 12 Jul 2013 19:40:24 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 19:40:24 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 19:40:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:40:24 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.7ms) 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)   (7.3ms) 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")  (3.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)   (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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:40:24 -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_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", Fri, 12 Jul 2013 19:40:24 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$L4FcXNCfBzytnoX6u5lA8Oumcw.0qkwIFse/d/fD5XtgrxhdYnhCi"], ["updated_at", Fri, 12 Jul 2013 19:40:24 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", 1], ["created_at", Fri, 12 Jul 2013 19:40:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:40:24 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 111ms (Views: 4.9ms | ActiveRecord: 3.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/2" for 127.0.0.1 at 2013-07-12 14:40:25 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.4ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 19:40:25 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 19:40:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Fri, 12 Jul 2013 19:40:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:40:25 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (3.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")  (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)   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.6ms) 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 ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (10.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 14:40:25 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 19:40:25 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$tpvt4rfh1AW4/dIVtQT6cO43i6DK6Sdy9CmVTv5KDsFBocPXX8MQS"], ["updated_at", Fri, 12 Jul 2013 19:40:25 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", 2], ["created_at", Fri, 12 Jul 2013 19:40:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 19:40:25 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 108ms (Views: 4.7ms | ActiveRecord: 2.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  (14.2ms) ROLLBACK  (15.9ms) 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.4ms) 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 Connecting to database specified by database.yml  (9.7ms) 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  (3.4ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (11.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (6.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.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (11.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:20:31 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$bV5nuT.VLq9JsWNDGoAVwe4e630gONk.d7BtE7qylWyetSrzGJurK"], ["updated_at", Fri, 12 Jul 2013 20:20:31 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" = 'test1' LIMIT 1 SQL (8.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", Fri, 12 Jul 2013 20:20:32 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 20:20:32 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 20:20:32 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:20:32 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (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")  (11.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)  (5.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:20:32 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:20:32 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$RZ2newhlWmV7kKidVNghaODmOGEDYetalrSSG1I4RHF1TTLjiyiOq"], ["updated_at", Fri, 12 Jul 2013 20:20:32 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", 1], ["created_at", Fri, 12 Jul 2013 20:20:32 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:20:32 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 185ms (Views: 34.2ms | ActiveRecord: 5.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 15:20:32 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 12ms (Views: 6.5ms | ActiveRecord: 1.6ms)  (6.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  (12.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (1.9ms) 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", Fri, 12 Jul 2013 20:20:32 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$dnPKRG45ALDTEx7blXM.8.7A6Htx529vQ1KmheN/ii.wGnyb/EPzu"], ["updated_at", Fri, 12 Jul 2013 20:20:32 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 (2.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", Fri, 12 Jul 2013 20:20:32 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 20:20:32 UTC +00:00]]  (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", 1], ["created_at", Fri, 12 Jul 2013 20:20:32 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:20:32 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (3.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)  (0.8ms) 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.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)   (6.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (1.0ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:20:32 -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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (10.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:20:32 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$1ucaef1hVd5UKcjKIeNJHuOPSEUJ02y3LwG0tu6ApuSRoPyXFLuUy"], ["updated_at", Fri, 12 Jul 2013 20:20:32 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", 1], ["created_at", Fri, 12 Jul 2013 20:20:32 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:20:32 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 128ms (Views: 5.1ms | ActiveRecord: 14.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/users/2" for 127.0.0.1 at 2013-07-12 15:20:32 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 1.3ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 20:20:32 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 20:20:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Fri, 12 Jul 2013 20:20:32 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:20:32 UTC +00:00], ["user_id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (9.5ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:20:33 -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" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:20:33 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$WNJi9.8M3DymtYtpPbmUcO8CavctoKQeMu3IsipK0Hhi.Q/iZrK3m"], ["updated_at", Fri, 12 Jul 2013 20:20:33 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", 2], ["created_at", Fri, 12 Jul 2013 20:20:33 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:20:33 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 131ms (Views: 5.2ms | 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 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 15:20:33 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.3ms | ActiveRecord: 1.5ms)  (9.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  (12.8ms) 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 Connecting to database specified by database.yml  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (29.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (9.8ms) 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.3ms) SAVEPOINT active_record_1 SQL (11.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:21:59 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$fFtGd9mb.Nvhhm0cX9x9MuktgPDLHJ8rcIgnSy3S1.YO4FJIZ14WS"], ["updated_at", Fri, 12 Jul 2013 20:21:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (10.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 20:21:59 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 20:21:59 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (1.7ms) 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", Fri, 12 Jul 2013 20:21:59 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:21:59 UTC +00:00], ["user_id", 1]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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)   (11.7ms) 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")  (12.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)  (2.7ms) 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")  (8.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.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.3ms) 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 ('20130612073709')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:21:59 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (4.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:21:59 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$2/qsUmy.qYHTGyVtBousA.DHIGqK3gPPpZ6rOlxoEhDUl.tEqfqIO"], ["updated_at", Fri, 12 Jul 2013 20:21: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", 1], ["created_at", Fri, 12 Jul 2013 20:21:59 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:21:59 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 204ms (Views: 51.9ms | ActiveRecord: 7.9ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 15:21:59 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 4.7ms | ActiveRecord: 1.5ms)  (6.5ms) 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  (14.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", Fri, 12 Jul 2013 20:21:59 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$/2Rh3WHPAZo3pG2FjmluUu/5rDtwG0CNx8MxqZE/C6hXgAd0nr412"], ["updated_at", Fri, 12 Jul 2013 20:21:59 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" = 'test2' 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", Fri, 12 Jul 2013 20:21:59 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 20:21:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 20:21:59 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:21:59 UTC +00:00], ["user_id", 1]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (3.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)  (0.9ms) 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")  (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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.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') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:21:59 -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" = 'test2' 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", Fri, 12 Jul 2013 20:22:00 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$oon.p4Yd0XDL//sBLm9RCekcfsymAO6q2HCkdEaXeSbvpChvd8OPi"], ["updated_at", Fri, 12 Jul 2013 20:22:00 UTC +00:00]] 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", Fri, 12 Jul 2013 20:22:00 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:22:00 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 117ms (Views: 5.1ms | ActiveRecord: 5.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/2" for 127.0.0.1 at 2013-07-12 15:22:00 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 1.4ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 20:22:00 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 20:22:00 UTC +00:00]]  (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", Fri, 12 Jul 2013 20:22:00 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:22:00 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (3.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")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.9ms) 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.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:22:00 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:22:00 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$uwhR3l5nlS3iXQpqdvXRVesKAtC1KAm3ktr7GQ/k/4LAvM3LzpUMa"], ["updated_at", Fri, 12 Jul 2013 20:22:00 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", 2], ["created_at", Fri, 12 Jul 2013 20:22:00 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:22:00 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 111ms (Views: 5.0ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 15:22:00 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 1.4ms)  (9.2ms) ROLLBACK  (0.7ms) 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  (34.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (18.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (14.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  (1.5ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (20.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:22:18 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$52W6prmvJ1iR9vcLefITCuI5VzPkMNcFN62W70a6bDp.bad7Js8YW"], ["updated_at", Fri, 12 Jul 2013 20:22:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (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", Fri, 12 Jul 2013 20:22:18 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 20:22:18 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (1.6ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 20:22:18 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:22:18 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (20.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.7ms) 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")  (6.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)  (6.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:22:18 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (13.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:22:19 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$1yEQhm9xhZwFg.OVT.4.Fe2WyXNQ3UC.Hvny97VkJsETbjoE80sVi"], ["updated_at", Fri, 12 Jul 2013 20:22:19 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", Fri, 12 Jul 2013 20:22:19 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:22:19 UTC +00:00], ["user_id", 2]]  (1.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 263ms (Views: 35.9ms | ActiveRecord: 17.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/2" for 127.0.0.1 at 2013-07-12 15:22:19 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 4.9ms | ActiveRecord: 1.4ms)  (5.6ms) ROLLBACK  (2.0ms) 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  (18.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  (1.2ms) 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", Fri, 12 Jul 2013 20:22:19 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$mJxiUNl/8B4G.a0wIB/i8.WK/.tqsO6rCKldlqSfFXPwUmX1HDlFu"], ["updated_at", Fri, 12 Jul 2013 20:22:19 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" = 'test2' 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", Fri, 12 Jul 2013 20:22:19 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 20:22:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 20:22:19 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:22:19 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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)  (3.5ms) 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.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)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) 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)  (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.2ms) SELECT version FROM "schema_migrations"  (0.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/users" for 127.0.0.1 at 2013-07-12 15:22:19 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (5.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.9ms) 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", Fri, 12 Jul 2013 20:22:19 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$XeT0iwZ2HDVKBly0G77AveaVlMROAq6XrAoCpK6jF94IFrpLl.tby"], ["updated_at", Fri, 12 Jul 2013 20:22:19 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", 1], ["created_at", Fri, 12 Jul 2013 20:22:19 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:22:19 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 118ms (Views: 4.9ms | ActiveRecord: 8.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/2" for 127.0.0.1 at 2013-07-12 15:22:19 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 20:22:19 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 20:22:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Fri, 12 Jul 2013 20:22:19 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:22:19 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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)  (0.9ms) 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)   (1.6ms) 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")  (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)   (3.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 ('20130612073709')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:22:19 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:22:19 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$v2eh0hrhGXcTJqBI3X3NAO3mL2TOzKKGTGlFBYTRcCOJomKhCG1di"], ["updated_at", Fri, 12 Jul 2013 20:22:19 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", 2], ["created_at", Fri, 12 Jul 2013 20:22:19 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:22:19 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 111ms (Views: 4.9ms | ActiveRecord: 2.6ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 15:22:19 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.5ms | ActiveRecord: 1.4ms)  (8.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  (35.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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 Connecting to database specified by database.yml  (5.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  (10.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (30.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (9.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:31:43 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$QwahrzJycYpzvYjMJC.VI.f6Snc6.Ni9DglAaqx.zejVyCeQOxELq"], ["updated_at", Fri, 12 Jul 2013 20:31:43 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (2.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 20:31:44 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 20:31:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 1], ["created_at", Fri, 12 Jul 2013 20:31:44 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:31:44 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test1"  (7.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)   (4.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.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)  (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) 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.8ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:31:44 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:31:44 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$9eVWKsyJRUes..rLiOdH3.VetnfkQGpuAK81NyhAl.SgjCxBd1duC"], ["updated_at", Fri, 12 Jul 2013 20:31:44 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", Fri, 12 Jul 2013 20:31:44 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:31:44 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 152ms (Views: 35.5ms | ActiveRecord: 3.7ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 15:31:44 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 1.4ms)  (9.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  (18.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (13.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  (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", Fri, 12 Jul 2013 20:31:44 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$.LyAiKKO/0JOy0OYz/gS8O6btB1imhy/PIl19LpqR2Gh4WFNRTBR."], ["updated_at", Fri, 12 Jul 2013 20:31:44 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" = 'test2' 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", Fri, 12 Jul 2013 20:31:44 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 20:31:44 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", Fri, 12 Jul 2013 20:31:44 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:31:44 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (7.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)  (3.1ms) 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.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)   (1.8ms) 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")  (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.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:31:44 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:31:44 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Y7d.GYvraASPgC7EOgShluHaX83ENl3XtjeXAUhykxfdyKKQxFyp2"], ["updated_at", Fri, 12 Jul 2013 20:31:44 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", 1], ["created_at", Fri, 12 Jul 2013 20:31:44 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:31:44 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 113ms (Views: 5.0ms | ActiveRecord: 3.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/2" for 127.0.0.1 at 2013-07-12 15:31:44 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 1.3ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 20:31:44 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 20:31:44 UTC +00:00]]  (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", Fri, 12 Jul 2013 20:31:44 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:31:44 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (3.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)  (0.8ms) 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")  (13.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)   (6.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (22.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.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)  (10.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:31:45 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:31:45 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$jaGXIE0piuSbVEa2K4a7MeQVdvtILT7pifw40ByHFUlZa7GRDCQ6i"], ["updated_at", Fri, 12 Jul 2013 20:31:45 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", 2], ["created_at", Fri, 12 Jul 2013 20:31:45 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:31:45 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 115ms (Views: 5.1ms | ActiveRecord: 2.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/2" for 127.0.0.1 at 2013-07-12 15:31:45 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 1.4ms)  (7.8ms) 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  (15.2ms) 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 Connecting to database specified by database.yml  (6.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  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (35.1ms) 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  (13.4ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (12.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:32:55 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$/VwzYbiKv9s/3pCOS5AmZuPBSNAjA0M8NKmD9NIpDXUPCgirqQQy2"], ["updated_at", Fri, 12 Jul 2013 20:32:55 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (10.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.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", Fri, 12 Jul 2013 20:32:55 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 20:32:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) 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", Fri, 12 Jul 2013 20:32:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:32:55 UTC +00:00], ["user_id", 1]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (7.0ms) CREATE SCHEMA "test1"  (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)   (5.3ms) 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")  (27.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)  (1.9ms) 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")  (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.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"  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:32:55 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:32:55 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$umKPNdtyv8D8HOVrFgP8d.x0nz8mBxMI0Bqfzeay4PGpXkXLJ6lRu"], ["updated_at", Fri, 12 Jul 2013 20:32:55 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", 1], ["created_at", Fri, 12 Jul 2013 20:32:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:32:55 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 151ms (Views: 34.9ms | 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/2" for 127.0.0.1 at 2013-07-12 15:32:55 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 1.4ms)  (11.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  (12.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.0ms) 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", Fri, 12 Jul 2013 20:32:55 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$y64FmnFPuKasGJNvKrrXEuLlxj/0AjDiaXijT.A5YCrBRzDBiGdjG"], ["updated_at", Fri, 12 Jul 2013 20:32:55 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" = 'test2' 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", Fri, 12 Jul 2013 20:32:55 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 20:32:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 20:32:55 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:32:55 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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.4ms) 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")  (5.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)   (10.5ms) 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")  (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)   (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:32:55 -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" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:32:56 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$JxMcmkZalkvO6q3B7JVsJ.ZVWjBoT7qtWcmlCTsVG2DSqHa6vC0XW"], ["updated_at", Fri, 12 Jul 2013 20:32: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", 1], ["created_at", Fri, 12 Jul 2013 20:32:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:32:56 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 118ms (Views: 5.1ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 15:32:56 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 1.3ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 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.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", Fri, 12 Jul 2013 20:32:56 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 20:32:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 2], ["created_at", Fri, 12 Jul 2013 20:32:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:32:56 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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")  (0.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)   (2.0ms) 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")  (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)  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (1.5ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:32:56 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:32:56 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$wpEYsA/K8SQHwea4QkC8UepFGVPbJ0lfDWik0wgxJGWxwiKfHYdFq"], ["updated_at", Fri, 12 Jul 2013 20:32:56 UTC +00:00]] SQL (3.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", Fri, 12 Jul 2013 20:32:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:32:56 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 114ms (Views: 4.8ms | ActiveRecord: 7.6ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 15:32:56 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 1.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (12.9ms) ROLLBACK  (0.4ms) 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  (27.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.2ms) 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  (1.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  (2.6ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (36.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.4ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 SQL (64.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:33:15 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$RRf.H6OL94cNQtiYHtyIqeQ5/UN3iY5Udnml6Ynj7HZi8STphaGay"], ["updated_at", Fri, 12 Jul 2013 20:33:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (7.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Fri, 12 Jul 2013 20:33:15 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 20:33:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (7.8ms) SAVEPOINT active_record_1 SQL (4.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 20:33:15 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:33:15 UTC +00:00], ["user_id", 1]]  (2.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) CREATE SCHEMA "test1"  (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)   (3.6ms) 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")  (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)  (5.5ms) 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")  (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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:33:15 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.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", Fri, 12 Jul 2013 20:33:16 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$GCx8VXlJx5hDLnaKOLUQWOeuGC1ZEb5ZDkCYRZ7pja37hjpZaI9Uu"], ["updated_at", Fri, 12 Jul 2013 20:33:16 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", 1], ["created_at", Fri, 12 Jul 2013 20:33:16 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:33:16 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 218ms (Views: 35.8ms | ActiveRecord: 3.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 15:33:16 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 1.4ms)  (6.8ms) 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  (28.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:33:16 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$QEOHXsIP5lIBxSAC7NqqeeEbNNuQs1JMJgEOaPyBTkt.6iED9W2NO"], ["updated_at", Fri, 12 Jul 2013 20:33:16 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" = 'test2' 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", Fri, 12 Jul 2013 20:33:16 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 20:33:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 20:33:16 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:33:16 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.7ms) 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)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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)  (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"  (5.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (9.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:33:16 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:33:16 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$pW9Eis2jyB4w9xMeJ5ilI.PJLh4lzggFMcgbexmveBCcbGfIqywHO"], ["updated_at", Fri, 12 Jul 2013 20:33:16 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", 1], ["created_at", Fri, 12 Jul 2013 20:33:16 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:33:16 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 123ms (Views: 5.1ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 15:33:16 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) 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" 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 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 9ms (Views: 4.7ms | ActiveRecord: 1.3ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 20:33:16 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 20:33:16 UTC +00:00]]  (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", Fri, 12 Jul 2013 20:33:16 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:33:16 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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)  (0.8ms) 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")  (5.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)   (2.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (6.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.7ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:33:16 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:33:16 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$N0QDn.rkAp/UQNSh8/bn8ulXXAmyTqzNFmWyRhB8xawxZhDyAvR5K"], ["updated_at", Fri, 12 Jul 2013 20:33:16 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", 2], ["created_at", Fri, 12 Jul 2013 20:33:16 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:33:16 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 110ms (Views: 4.9ms | ActiveRecord: 2.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 15:33:16 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) 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" 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 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.3ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (9.8ms) 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.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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 Connecting to database specified by database.yml  (0.7ms) 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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (38.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (6.6ms) SAVEPOINT active_record_1 SQL (12.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:35:24 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$PVq66eAPLq.v9hRbzoblW.CgV9.yRxVdoCpjzuQMrln75kVofXosC"], ["updated_at", Fri, 12 Jul 2013 20:35:24 UTC +00:00]]  (9.7ms) RELEASE SAVEPOINT active_record_1  (8.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (9.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 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", Fri, 12 Jul 2013 20:35:24 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 20:35:24 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ypLs9f4Es6BuXV6xGGHP' LIMIT 1  (4.4ms) RELEASE SAVEPOINT active_record_1  (1.2ms) 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", 1], ["created_at", Fri, 12 Jul 2013 20:35:24 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:35:24 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (10.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)  (3.6ms) 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.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)   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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)  (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:35:24 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.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", Fri, 12 Jul 2013 20:35:25 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$IA6J3AzG5qdzjCpnDjULq.whzvxGEZPMB1cPnGzNdYDV/869qbk2y"], ["updated_at", Fri, 12 Jul 2013 20:35:25 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", 1], ["created_at", Fri, 12 Jul 2013 20:35:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:35:25 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 168ms (Views: 34.7ms | ActiveRecord: 3.7ms) Cadenero::V1::Account Load (8.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 15:35:25 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 1.6ms)  (8.2ms) ROLLBACK  (1.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  (15.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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  (4.2ms) 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", Fri, 12 Jul 2013 20:35:25 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$OZR4dqqLDtEOGX7v/M52ze9GvktT1Dtvzk1hyDWOxR/DaZmv9fVae"], ["updated_at", Fri, 12 Jul 2013 20:35:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (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", Fri, 12 Jul 2013 20:35:25 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 20:35:25 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'W9icqi2Rfo6q1e7zFEL7' LIMIT 1  (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", 1], ["created_at", Fri, 12 Jul 2013 20:35:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:35:25 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.9ms) CREATE SCHEMA "test2"  (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)  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) 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)   (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:35:25 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:35:25 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$t0F0BX4fdb5gSUyidoRFnOiRk8DgYQ1gXlwGeDHpgds.T8/w15lx2"], ["updated_at", Fri, 12 Jul 2013 20:35:25 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", 1], ["created_at", Fri, 12 Jul 2013 20:35:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:35:25 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 110ms (Views: 5.0ms | ActiveRecord: 3.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/2" for 127.0.0.1 at 2013-07-12 15:35:25 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 12ms (Views: 7.5ms | ActiveRecord: 1.3ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 20:35:25 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 20:35:25 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xpqynMym7VxqsujWSk4B' LIMIT 1  (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", 2], ["created_at", Fri, 12 Jul 2013 20:35:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:35:25 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (3.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.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) 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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:35:25 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (1.4ms) 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", Fri, 12 Jul 2013 20:35:25 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$JKfpWrIr8BevI3wWwf5.GOZrQpNJc4uQYBjRH7JQI4vUchhKt.Bxe"], ["updated_at", Fri, 12 Jul 2013 20:35:25 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", 2], ["created_at", Fri, 12 Jul 2013 20:35:25 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:35:25 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 115ms (Views: 4.7ms | ActiveRecord: 4.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/2" for 127.0.0.1 at 2013-07-12 15:35:25 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (10.2ms) 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  (16.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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 Connecting to database specified by database.yml  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (51.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (12.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.4ms) BEGIN  (5.5ms) SAVEPOINT active_record_1 SQL (24.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:35:43 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$0qyrREUYaKuuXPrU2Pfni.OuODbs8BfDakurQZUp3IUYReuxH/Fp6"], ["updated_at", Fri, 12 Jul 2013 20:35:43 UTC +00:00]]  (4.0ms) RELEASE SAVEPOINT active_record_1  (5.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 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", Fri, 12 Jul 2013 20:35:43 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 20:35:43 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hGU9Xh5MpxAu58v62YfR' LIMIT 1  (2.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-12 20:35:43.304780', "updated_at" = '2013-07-12 20:35:43.304780', "authentication_token" = 'hGU9Xh5MpxAu58v62YfR' WHERE "public"."cadenero_accounts"."id" = 1  (0.5ms) RELEASE SAVEPOINT active_record_1  (1.0ms) 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", Fri, 12 Jul 2013 20:35:43 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:35:43 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (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)   (1.7ms) 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.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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (7.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:35: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 (9.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (11.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:35:43 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$zyyZRx1oZrloALEXiCHCNuTVIyoLy5f8PtOdjXwuyX7mbxzMVJiwa"], ["updated_at", Fri, 12 Jul 2013 20:35: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", 1], ["created_at", Fri, 12 Jul 2013 20:35:43 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:35:43 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 200ms (Views: 34.8ms | ActiveRecord: 23.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 15:35:43 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 1.5ms)  (20.8ms) ROLLBACK  (0.7ms) 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;  (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  (20.8ms) 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", Fri, 12 Jul 2013 20:35:43 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$nJcp0cwuy.aYz/FkSn13C.ih9q/SKDHoGmw43KVWUeqM/m5Eh0z9q"], ["updated_at", Fri, 12 Jul 2013 20:35:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (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", Fri, 12 Jul 2013 20:35:43 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 20:35:43 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'B7PLLcnxxqww6Rms5tbp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-12 20:35:43.989611', "updated_at" = '2013-07-12 20:35:43.989611', "authentication_token" = 'B7PLLcnxxqww6Rms5tbp' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", Fri, 12 Jul 2013 20:35:43 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:35:43 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (47.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)  (8.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")  (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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:35:44 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.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", Fri, 12 Jul 2013 20:35:44 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$tD/WuPKwkaFd5RkxBF6gNuDhsJHOOvMyrerJEs7ByuDm9iDxi4a9u"], ["updated_at", Fri, 12 Jul 2013 20:35:44 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", Fri, 12 Jul 2013 20:35:44 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:35:44 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 112ms (Views: 5.2ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 15:35:44 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 1.9ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 20:35:44 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 20:35:44 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DhphmMukQaA6xx9S1MJo' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 2, "created_at" = '2013-07-12 20:35:44.292369', "updated_at" = '2013-07-12 20:35:44.292369', "authentication_token" = 'DhphmMukQaA6xx9S1MJo' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Fri, 12 Jul 2013 20:35:44 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:35:44 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.3ms) SELECT version FROM "schema_migrations"  (0.6ms) 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/users" for 127.0.0.1 at 2013-07-12 15:35:44 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:35:44 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$1KusJG1QxSlE/OsfU2WkY.EEl6vBE/3iddMfP3fS9LGIp.gb3YQgi"], ["updated_at", Fri, 12 Jul 2013 20:35:44 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", 2], ["created_at", Fri, 12 Jul 2013 20:35:44 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:35:44 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 113ms (Views: 4.8ms | ActiveRecord: 2.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 15:35:44 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (8.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  (16.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (1.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  (4.4ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (12.8ms) 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.4ms) BEGIN  (1.2ms) SAVEPOINT active_record_1 SQL (12.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:39:21 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$MKHWi8YBdSsqfY.Nq9iSROXLu/bO6WvvuBvVB5yeBEG2pJJ33Xcpy"], ["updated_at", Fri, 12 Jul 2013 20:39:21 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (2.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", Fri, 12 Jul 2013 20:39:22 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 20:39:22 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'NEJNzG5yNJyQ2FeDzHrJ' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-12 20:39:22.155517', "updated_at" = '2013-07-12 20:39:22.155517', "authentication_token" = 'NEJNzG5yNJyQ2FeDzHrJ' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 20:39:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:22 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (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.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")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:39: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" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:39:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$2yRVvZ3C/JLlLUfCceyDk.FMk8bkpRM6rojkaLgQSkxyEbYB0CXnu"], ["updated_at", Fri, 12 Jul 2013 20:39: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", 1], ["created_at", Fri, 12 Jul 2013 20:39:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:22 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 160ms (Views: 36.0ms | 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/2" for 127.0.0.1 at 2013-07-12 15:39:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.3ms | ActiveRecord: 1.5ms)  (8.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  (48.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.7ms) 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", Fri, 12 Jul 2013 20:39:22 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$1tbqPVdHj5Kbfp9tvW1Tieza2CZCfm4mzd.UMClIIX55YjB24pY.G"], ["updated_at", Fri, 12 Jul 2013 20:39:22 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" = 'test2' 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", Fri, 12 Jul 2013 20:39:22 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 20:39:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'i51s4RszAC4mxXDRhTsh' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-12 20:39:22.731025', "updated_at" = '2013-07-12 20:39:22.731025', "authentication_token" = 'i51s4RszAC4mxXDRhTsh' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Fri, 12 Jul 2013 20:39:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:22 UTC +00:00], ["user_id", 1]]  (7.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (8.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.7ms) 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)   (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (10.9ms) 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.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 ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:39: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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:39:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$bdUJok0H83mcemLekZ./8ulQUjCNfcnTiuvLTN.5gIBzQhuIVbGLi"], ["updated_at", Fri, 12 Jul 2013 20:39:22 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", 1], ["created_at", Fri, 12 Jul 2013 20:39:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:22 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 112ms (Views: 4.9ms | ActiveRecord: 3.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/2" for 127.0.0.1 at 2013-07-12 15:39:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 20:39:22 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 20:39:22 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SMGWuZbtFLWpyaam6qYo' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 2, "created_at" = '2013-07-12 20:39:22.989096', "updated_at" = '2013-07-12 20:39:22.989096', "authentication_token" = 'SMGWuZbtFLWpyaam6qYo' WHERE "public"."cadenero_accounts"."id" = 2  (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", Fri, 12 Jul 2013 20:39:22 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:22 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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)  (3.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.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)   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) 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)  (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.4ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:39: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Fri, 12 Jul 2013 20:39:23 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$vtKRAicDwlT.n/luXHStj.X00qanzuIG7BnXN3kxEMXxMBqsg0.0O"], ["updated_at", Fri, 12 Jul 2013 20:39: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", 2], ["created_at", Fri, 12 Jul 2013 20:39:23 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:23 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 115ms (Views: 5.0ms | ActiveRecord: 3.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/2" for 127.0.0.1 at 2013-07-12 15:39:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 15ms (Views: 10.3ms | ActiveRecord: 1.5ms)  (8.9ms) ROLLBACK  (0.4ms) 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  (32.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (3.8ms) 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  (10.0ms) 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  (4.7ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (12.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (4.0ms) BEGIN  (4.1ms) SAVEPOINT active_record_1 SQL (27.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:39:35 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$JevP.0UxYoVAyPjVyRA/6.gbanxY.dWT2zbvjnnRRVcb1V9zIzcpm"], ["updated_at", Fri, 12 Jul 2013 20:39:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (11.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 20:39:35 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 20:39:35 UTC +00:00]] Cadenero::V1::Account Load (9.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pySNq9PpbipUVXAkxkQf' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-12 20:39:35.243420', "updated_at" = '2013-07-12 20:39:35.243420', "authentication_token" = 'pySNq9PpbipUVXAkxkQf' WHERE "public"."cadenero_accounts"."id" = 1  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.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", Fri, 12 Jul 2013 20:39:35 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:35 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) CREATE SCHEMA "test1"  (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)   (10.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) 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")  (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.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:39:35 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:39:35 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ymnDhDXJXh0J0l/ZMWMjfe0GJeuO2vASh0v1vOF9NJqJsy3xfPDr."], ["updated_at", Fri, 12 Jul 2013 20:39: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", 1], ["created_at", Fri, 12 Jul 2013 20:39:35 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:35 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 149ms (Views: 36.6ms | 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/2" for 127.0.0.1 at 2013-07-12 15:39:35 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 1.4ms)  (5.3ms) ROLLBACK  (0.9ms) 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.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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  (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", Fri, 12 Jul 2013 20:39:35 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$MGk8hFnS7KuoWRGV4GXEPObghal.w2xRxa3Sm4AE5XjvVTJri4l/i"], ["updated_at", Fri, 12 Jul 2013 20:39:35 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" = 'test2' 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", Fri, 12 Jul 2013 20:39:35 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 20:39:35 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4M3Q6814JayHBVERxZCB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-12 20:39:35.929713', "updated_at" = '2013-07-12 20:39:35.929713', "authentication_token" = '4M3Q6814JayHBVERxZCB' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 20:39:35 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:35 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) CREATE SCHEMA "test2"  (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)  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.0ms) 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)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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)  (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.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 POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:39:36 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:39:36 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ROlw7kjB9B9WWXjoor3x5OujgGAqA6M1Ug4WRBD0aeyTB2.pPFyp6"], ["updated_at", Fri, 12 Jul 2013 20:39:36 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", 1], ["created_at", Fri, 12 Jul 2013 20:39:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:36 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 115ms (Views: 5.0ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 15:39:36 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 9ms (Views: 4.8ms | ActiveRecord: 1.4ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 20:39:36 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 20:39:36 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eQNcqkTPrxtygv4sCXTK' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 2, "created_at" = '2013-07-12 20:39:36.168487', "updated_at" = '2013-07-12 20:39:36.168487', "authentication_token" = 'eQNcqkTPrxtygv4sCXTK' WHERE "public"."cadenero_accounts"."id" = 2  (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", Fri, 12 Jul 2013 20:39:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:36 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (0.8ms) 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")  (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)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:39:36 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:39:36 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$EbZCz5FlOXKFv982tGHAjOMuWoYiqeYeezf0BvxO5AevYAG3cWy2K"], ["updated_at", Fri, 12 Jul 2013 20:39:36 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", 2], ["created_at", Fri, 12 Jul 2013 20:39:36 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:36 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 156ms (Views: 5.6ms | ActiveRecord: 3.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/2" for 127.0.0.1 at 2013-07-12 15:39:36 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.5ms | ActiveRecord: 1.5ms)  (10.0ms) 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  (15.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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.4ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)  (0.3ms) 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  (36.7ms) 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.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.5ms) ROLLBACK  (8.9ms) 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  (27.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) 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.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (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", Fri, 12 Jul 2013 20:39:39 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$PVp/fnbn1ciEifMPeb7hyu9KSyaF0HF7qCig2d34NmInIZm2eIg/q"], ["updated_at", Fri, 12 Jul 2013 20:39:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 20:39:40 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 20:39:40 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7cXHXp4yroUpWzyQKH5y' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-12 20:39:40.006254', "updated_at" = '2013-07-12 20:39:40.006254', "authentication_token" = '7cXHXp4yroUpWzyQKH5y' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 20:39:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:40 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", Fri, 12 Jul 2013 20:39:40 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$1Akd60/yQDNbZkd0vVcAXehl7AX1v2yuUAbUxAts0GDKsHZBN9UGm"], ["updated_at", Fri, 12 Jul 2013 20:39:40 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", Fri, 12 Jul 2013 20:39:40 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$x767h.QJHqVrwxNcxbmQF.EAk085jb9seXaldEvt6UXJDEPPyTMkO"], ["updated_at", Fri, 12 Jul 2013 20:39:40 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", Fri, 12 Jul 2013 20:39:40 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 20:39:40 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rvgaaAsDXqhUYarc8qJA' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-12 20:39:40.217612', "updated_at" = '2013-07-12 20:39:40.217612', "authentication_token" = 'rvgaaAsDXqhUYarc8qJA' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (6.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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" ("authentication_token")  (3.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.4ms) SELECT version FROM "schema_migrations"  (0.5ms) 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')  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (31.8ms) ROLLBACK  (1.0ms) 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.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 Cadenero::V1::Account Exists (2.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:39:40 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$0NG3OhxCx/y40gfUyDwmwuAkLKwHfnfzG0r6dIUfqnc9uHVKmJTIO"], ["updated_at", Fri, 12 Jul 2013 20:39:40 UTC +00:00]] 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", Fri, 12 Jul 2013 20:39:40 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 20:39:40 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GaChzagctkg578qFwGzx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-12 20:39:40.459664', "updated_at" = '2013-07-12 20:39:40.459664', "authentication_token" = 'GaChzagctkg578qFwGzx' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 20:39:40 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:40 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 LIMIT 1  (0.2ms) 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  (15.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.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  (15.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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" IS NULL LIMIT 1  (0.2ms) 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  (12.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.7ms) BEGIN Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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  (12.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.3ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 15:39:40 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (1.3ms) 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.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:39:41 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$iv1x0y8WMKQxOkEtVPAGVeq7cu0GG2TJbPcnHWuBGJLEyB4lPIvu."], ["updated_at", Fri, 12 Jul 2013 20:39:41 UTC +00:00]] 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", Fri, 12 Jul 2013 20:39:41 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 20:39:41 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'psYMhfQTzC5CnKAbVkPU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-12 20:39:41.010483', "updated_at" = '2013-07-12 20:39:41.010483', "authentication_token" = 'psYMhfQTzC5CnKAbVkPU' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 20:39:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:41 UTC +00:00], ["user_id", 1]]  (2.0ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (0.2ms) CREATE SCHEMA "test"  (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")  (1.0ms) 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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.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 ('20130612073709')  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Completed 201 Created in 194ms (Views: 2.2ms | ActiveRecord: 51.2ms) Cadenero::V1::Account Load (3.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (5.6ms) 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.7ms) 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.3ms) BEGIN  (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 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:39:41 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$yNwUTsTRv1DsXov013Uz8.l2FRtw5x1Qfd8OHj4SCxbbzUbHt4KpC"], ["updated_at", Fri, 12 Jul 2013 20:39:41 UTC +00:00]] 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", Fri, 12 Jul 2013 20:39:41 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 20:39:41 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7RopHt5vhDNSszo99eqV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-12 20:39:41.234977', "updated_at" = '2013-07-12 20:39:41.234977', "authentication_token" = '7RopHt5vhDNSszo99eqV' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 15:39:41 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.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  (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 105ms (Views: 0.4ms | ActiveRecord: 0.7ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.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  (65.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (5.8ms) 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", Fri, 12 Jul 2013 20:39:41 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$0kmskRk6zDQvFPmZdM.W.unQPkqDQ.b/DFf0n7ol1G8dnTnDy2oT6"], ["updated_at", Fri, 12 Jul 2013 20:39:41 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.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", Fri, 12 Jul 2013 20:39:41 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 20:39:41 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zM57qwBYThp7MH2Vxw8q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-12 20:39:41.693520', "updated_at" = '2013-07-12 20:39:41.693520', "authentication_token" = 'zM57qwBYThp7MH2Vxw8q' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 20:39:41 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:41 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (17.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)  (10.1ms) 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")  (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)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) 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-12 15:39:41 -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 ('test5') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Cadenero::User Load (8.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 187ms (Views: 5.6ms | ActiveRecord: 11.2ms) Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' LIMIT 1  (43.3ms) ROLLBACK  (23.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  (38.3ms) 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  (1.8ms) BEGIN  (17.4ms) 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", Fri, 12 Jul 2013 20:39:42 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$JCVy220EJ2ugMIbO/ACdQ.Wn.YrgXrETS05Vlc5xwtwFlOMGSkM7K"], ["updated_at", Fri, 12 Jul 2013 20:39:42 UTC +00:00]]  (7.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' 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", Fri, 12 Jul 2013 20:39:42 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 20:39:42 UTC +00:00]] Cadenero::V1::Account Load (7.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'c5oZiLTxFpusVsL4TAwp' LIMIT 1  (14.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-12 20:39:42.291468', "updated_at" = '2013-07-12 20:39:42.291468', "authentication_token" = 'c5oZiLTxFpusVsL4TAwp' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 20:39:42 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:42 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (8.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)   (4.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")  (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)  (2.2ms) 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.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)   (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.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 ('20130612073709')  (0.6ms) 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-12 15:39:42 -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-12 15:39:42 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.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" = 'user6@example.com' LIMIT 1 Cadenero::User Load (11.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 188ms (Views: 5.0ms | ActiveRecord: 15.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1  (6.0ms) ROLLBACK  (4.4ms) 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  (33.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (13.7ms) BEGIN  (2.8ms) 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", Fri, 12 Jul 2013 20:39:42 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$BLuKjsI6USK2UYhs0vWCouE6WheHotYNA.T5QQhZ8YVA7vDYi9IMG"], ["updated_at", Fri, 12 Jul 2013 20:39:42 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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" = 'test7' 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", Fri, 12 Jul 2013 20:39:42 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 20:39:42 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XmaCsFm8JcmCYFxWrtMy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-12 20:39:42.906344', "updated_at" = '2013-07-12 20:39:42.906344', "authentication_token" = 'XmaCsFm8JcmCYFxWrtMy' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Fri, 12 Jul 2013 20:39:42 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:42 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (11.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.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (8.6ms) 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")  (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)  (3.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (5.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-12 15:39:42 -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-12 15:39:42 -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 ('test7') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (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  (5.3ms) 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.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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  (1.8ms) BEGIN  (14.9ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:39:43 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$soLBpvf3F9fuX3mdnsMH9uCdotxFJwk9Cxz6RN1Yhe/HjdX6aJ3vu"], ["updated_at", Fri, 12 Jul 2013 20:39:43 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" = 'test8' LIMIT 1 SQL (21.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", Fri, 12 Jul 2013 20:39:43 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 20:39:43 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oxsJxdmq3dcsbiBNxnpj' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-12 20:39:43.251199', "updated_at" = '2013-07-12 20:39:43.251199', "authentication_token" = 'oxsJxdmq3dcsbiBNxnpj' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 20:39:43 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:43 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test8"  (3.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)  (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")  (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)   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (17.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Fri, 12 Jul 2013 20:39:43 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$ZtJLNo0MAjtQXa8ABYIp2eSftytDdpsTIn9dRXgLGrfMLjBAmWxFC"], ["updated_at", Fri, 12 Jul 2013 20:39:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 20:39:43 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 2], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 20:39:43 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YgxrV1c8k3PTFyanEAji' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 2, "created_at" = '2013-07-12 20:39:43.466950', "updated_at" = '2013-07-12 20:39:43.466950', "authentication_token" = 'YgxrV1c8k3PTFyanEAji' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["created_at", Fri, 12 Jul 2013 20:39:43 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:43 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 15:39:43 -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-12 15:39:43 -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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.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  (23.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (5.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  (1.6ms) BEGIN  (2.9ms) SAVEPOINT active_record_1 SQL (16.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:39:43 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$gue50ulYl.XKRo488VVF4uP8K4YN15eAFzKRGyzMruWiFvRv97xKa"], ["updated_at", Fri, 12 Jul 2013 20:39:43 UTC +00:00]]  (11.5ms) RELEASE SAVEPOINT active_record_1  (7.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 20:39:43 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Fri, 12 Jul 2013 20:39:43 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'aYDPXDE9JcbCoLaTdtRy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-12 20:39:43.747057', "updated_at" = '2013-07-12 20:39:43.747057', "authentication_token" = 'aYDPXDE9JcbCoLaTdtRy' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Fri, 12 Jul 2013 20:39:43 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:43 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (14.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")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (7.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) 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-12 15:39:43 -0500 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user10@example.com' LIMIT 1  (3.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  (18.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.9ms) 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", Fri, 12 Jul 2013 20:39:44 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$nxyJg8owcR4Wnk/CgwB3Q.DIIURZ4Or91ya/4KkA3swLsF0r.qEAO"], ["updated_at", Fri, 12 Jul 2013 20:39:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 (4.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", Fri, 12 Jul 2013 20:39:44 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Fri, 12 Jul 2013 20:39:44 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'cnRpPJdZ4TfwPwjfqGz2' LIMIT 1  (5.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-12 20:39:44.030931', "updated_at" = '2013-07-12 20:39:44.030931', "authentication_token" = 'cnRpPJdZ4TfwPwjfqGz2' WHERE "public"."cadenero_accounts"."id" = 1  (10.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (9.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 20:39:44 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:39:44 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (8.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.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.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)   (1.0ms) 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")  (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.6ms) 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 ('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-12 15:39:44 -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-12 15:39:44 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.5ms) 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 Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.0ms) ROLLBACK  (0.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.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (8.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  (6.4ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) 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.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (16.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:40:30 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$8dvV2hEva82G.7TBGopf0O0T8ODG7ALvpeZ6CwybbXTUHlUxvw/bC"], ["updated_at", Fri, 12 Jul 2013 20:40:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 20:40:30 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 20:40:30 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XYywdnWBJfsgZBYQLBDF' LIMIT 1  (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-12 20:40:30.760205', "updated_at" = '2013-07-12 20:40:30.760205', "authentication_token" = 'XYywdnWBJfsgZBYQLBDF' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 20:40:30 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:40:30 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (0.9ms) 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.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)  (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) 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)   (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 ('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-12 15:40:30 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 15:40:31 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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 Completed 422 Unprocessable Entity in 12ms (Views: 0.4ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.7ms) ROLLBACK  (0.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  (13.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.3ms) BEGIN  (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", Fri, 12 Jul 2013 20:40:31 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$9.G880khscKVafau3aYxteYvwO8sGvnzkxtKoRebGdJhTTsHynFyu"], ["updated_at", Fri, 12 Jul 2013 20:40:31 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" = 'test2' 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", Fri, 12 Jul 2013 20:40:31 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 20:40:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RC6yHxfku1EDdV2u5Gss' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-12 20:40:31.206595', "updated_at" = '2013-07-12 20:40:31.206595', "authentication_token" = 'RC6yHxfku1EDdV2u5Gss' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Fri, 12 Jul 2013 20:40:31 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:40:31 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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)   (0.8ms) 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.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)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) 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)  (2.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.8ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 15:40:31 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.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" = 'user2@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 153ms (Views: 49.5ms | ActiveRecord: 2.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 15:40:31 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 15:40:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (10.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  (11.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:40:31 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$oQGod6I3Do/EAMVT3RS22e37aqSrtBCXnKn8kVxneHjjeCYVUsftC"], ["updated_at", Fri, 12 Jul 2013 20:40:31 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", Fri, 12 Jul 2013 20:40:31 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 20:40:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'R93DsDdk8fr5k3VuX2Zs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-12 20:40:31.565595', "updated_at" = '2013-07-12 20:40:31.565595', "authentication_token" = 'R93DsDdk8fr5k3VuX2Zs' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 20:40:31 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:40:31 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (3.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)   (0.8ms) 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.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)  (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) 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.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 ('20130612073709')  (0.1ms) 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-12 15:40:31 -0500 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1  (3.6ms) ROLLBACK  (0.9ms) 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  (11.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:40:31 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$ZRmovOL/lfqwrqILLM/jG.UPMfmWAnAQVwPWuxASD0FqrsyBaCQ6y"], ["updated_at", Fri, 12 Jul 2013 20:40:31 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 (2.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", Fri, 12 Jul 2013 20:40:31 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 20:40:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7sqpJsoyzpQEyr6rHPHN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-12 20:40:31.749120', "updated_at" = '2013-07-12 20:40:31.749120', "authentication_token" = '7sqpJsoyzpQEyr6rHPHN' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 20:40:31 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:40:31 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (3.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.8ms) 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.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)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('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-12 15:40:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 15:40:31 -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 ('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"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.3ms) 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  (13.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.3ms) 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", Fri, 12 Jul 2013 20:40:31 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$9c/s4tTvRU5z8tzbvFbRk.C/AQKve73Y2u/z2Qb3.TsTwauCMLoQ6"], ["updated_at", Fri, 12 Jul 2013 20:40:31 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.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", Fri, 12 Jul 2013 20:40:31 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 20:40:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9cSo6CZhaVQxkt3pNCD3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-12 20:40:31.951025', "updated_at" = '2013-07-12 20:40:31.951025', "authentication_token" = '9cSo6CZhaVQxkt3pNCD3' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 20:40:31 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:40:31 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (3.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)   (0.8ms) 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")  (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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) 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.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Fri, 12 Jul 2013 20:40:32 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$X4sLKzPAxaYh/V7rVoa3g.FXifeHjmCgxPKD1fcUja7jkaHHJ5CZm"], ["updated_at", Fri, 12 Jul 2013 20:40:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Fri, 12 Jul 2013 20:40:32 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 20:40:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FCNFxsCCUXVYqXPJn6uN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 2, "created_at" = '2013-07-12 20:40:32.122173', "updated_at" = '2013-07-12 20:40:32.122173', "authentication_token" = 'FCNFxsCCUXVYqXPJn6uN' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Fri, 12 Jul 2013 20:40:32 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:40:32 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 15:40:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 15:40:32 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.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  (12.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:40:32 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$WGCMmUYFhGca.DMK1NXQke8vQmtFw.8Mza2iH3qOb5TQJOBPvx0X."], ["updated_at", Fri, 12 Jul 2013 20:40:32 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 (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", Fri, 12 Jul 2013 20:40:32 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 20:40:32 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fNs2db3csWqMpLcPaKyy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-12 20:40:32.266619', "updated_at" = '2013-07-12 20:40:32.266619', "authentication_token" = 'fNs2db3csWqMpLcPaKyy' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 20:40:32 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:40:32 UTC +00:00], ["user_id", 1]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (12.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)   (101.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (22.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.4ms) SELECT version FROM "schema_migrations"  (0.5ms) 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-12 15:40:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 15:40:32 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') 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 (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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" = 1 Completed 201 Created in 132ms (Views: 5.2ms | ActiveRecord: 7.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 15:40:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (1.1ms) 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: 1.1ms)  (3.0ms) ROLLBACK  (2.9ms) 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  (15.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.2ms) 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  (18.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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  (12.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.3ms) BEGIN  (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" = 'test' LIMIT 1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:40:33 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$lLo1S8CmlX4tVG2FLmEgYOvs.LxGjPOTI5pQxZXYXUCB/cRWR7iIC"], ["updated_at", Fri, 12 Jul 2013 20:40:33 UTC +00:00]] SQL (1.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", Fri, 12 Jul 2013 20:40:33 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 20:40:33 UTC +00:00]] Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qR1F2PgwXiDLtc2krHQz' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-12 20:40:33.042383', "updated_at" = '2013-07-12 20:40:33.042383', "authentication_token" = 'qR1F2PgwXiDLtc2krHQz' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) 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", Fri, 12 Jul 2013 20:40:33 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:40:33 UTC +00:00], ["user_id", 1]]  (0.4ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (0.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  (12.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.3ms) BEGIN Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.5ms) ROLLBACK  (0.4ms) 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.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 15:40:33 -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.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:40:33 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$gqaiCrlEr/IRwRkvzKZ9felGfUXlptUz3rrinz1Lx07gMYrX.bezm"], ["updated_at", Fri, 12 Jul 2013 20:40:33 UTC +00:00]] SQL (1.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", Fri, 12 Jul 2013 20:40:33 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 20:40:33 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'muAKcsqmsxRabs6Gtx1x' LIMIT 1  (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-12 20:40:33.418833', "updated_at" = '2013-07-12 20:40:33.418833', "authentication_token" = 'muAKcsqmsxRabs6Gtx1x' WHERE "public"."cadenero_accounts"."id" = 1  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.7ms) 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", Fri, 12 Jul 2013 20:40:33 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:40:33 UTC +00:00], ["user_id", 1]]  (0.5ms) 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  (0.2ms) CREATE SCHEMA "test"  (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.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.4ms) 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)   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)  (4.0ms) 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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Completed 201 Created in 174ms (Views: 1.8ms | ActiveRecord: 48.3ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (4.5ms) 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  (36.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.5ms) BEGIN  (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 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:40:33 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$ZtNcE7VWSJjB.2Enp.Izy.5iu2jRA.9YaF0Rb0BTSC8j4/P6VnMtS"], ["updated_at", Fri, 12 Jul 2013 20:40:33 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", Fri, 12 Jul 2013 20:40:33 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 20:40:33 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3d8E89AgcsT88vTLDGLy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-12 20:40:33.662357', "updated_at" = '2013-07-12 20:40:33.662357', "authentication_token" = '3d8E89AgcsT88vTLDGLy' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 15:40:33 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 109ms (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.3ms) 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  (13.9ms) 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", Fri, 12 Jul 2013 20:40:33 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$ja0Og7w6IIjMJDWYL9nYges2ph6hAO61GQ5jegyjfOxjwSF46X8zq"], ["updated_at", Fri, 12 Jul 2013 20:40:33 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" = 'test8' 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", Fri, 12 Jul 2013 20:40:33 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 20:40:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PyLCjE4TCNG3rcFqx5cz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-12 20:40:33.927185', "updated_at" = '2013-07-12 20:40:33.927185', "authentication_token" = 'PyLCjE4TCNG3rcFqx5cz' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 20:40:33 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:40:33 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test8"  (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.1ms) 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.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)  (1.0ms) 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")  (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.4ms) 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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:40:33 -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" = 'test8' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:40:34 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$xhaNBVeeIzYKHS8rBreDw.o6XcPCdnnK.GHLCS6ThvlkviImA69lK"], ["updated_at", Fri, 12 Jul 2013 20:40:34 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", Fri, 12 Jul 2013 20:40:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:40:34 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 114ms (Views: 4.8ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 15:40:34 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 4.7ms | ActiveRecord: 1.5ms)  (6.2ms) 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  (14.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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.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", Fri, 12 Jul 2013 20:40:34 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$YHK5G24BcRfSEDmoFhKOgeLusigUNEglShk5notZQDxX356F6q17C"], ["updated_at", Fri, 12 Jul 2013 20:40:34 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.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", Fri, 12 Jul 2013 20:40:34 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 20:40:34 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4oP1yqqHsCX6ngDEMvur' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-12 20:40:34.253820', "updated_at" = '2013-07-12 20:40:34.253820', "authentication_token" = '4oP1yqqHsCX6ngDEMvur' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 20:40:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:40:34 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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")  (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)   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 15:40:34 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' 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", Fri, 12 Jul 2013 20:40:34 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$O4nuT90znhGWKPUuS56vkehIj9yWyxiLoHU4D1Nc0qJQBlzmwDjVy"], ["updated_at", Fri, 12 Jul 2013 20:40:34 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", 1], ["created_at", Fri, 12 Jul 2013 20:40:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:40:34 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 111ms (Views: 4.7ms | ActiveRecord: 5.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 15:40:34 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 9ms (Views: 4.7ms | ActiveRecord: 1.4ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' 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", Fri, 12 Jul 2013 20:40:34 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 2], ["subdomain", "test10"], ["updated_at", Fri, 12 Jul 2013 20:40:34 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MQdjoMBecJrPy23AxKq1' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 2, "created_at" = '2013-07-12 20:40:34.443371', "updated_at" = '2013-07-12 20:40:34.443371', "authentication_token" = 'MQdjoMBecJrPy23AxKq1' WHERE "public"."cadenero_accounts"."id" = 2  (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", Fri, 12 Jul 2013 20:40:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:40:34 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (5.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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.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 ('20130612073709')  (0.2ms) 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-12 15:40:34 -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" = 'test10' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 20:40:34 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Ua5jgF0TFKWTHEQYebZSROLoj2ubEdecdFg0YFMX5hHIlOaSFr2CC"], ["updated_at", Fri, 12 Jul 2013 20:40:34 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", 2], ["created_at", Fri, 12 Jul 2013 20:40:34 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:40:34 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 109ms (Views: 4.8ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 15:40:34 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 1.5ms)  (8.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.1ms) 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 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.6ms) 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  (15.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.6ms) 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.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  (14.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.3ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) 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", Fri, 12 Jul 2013 20:40:38 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$StRs1iqQtA31t1Ey3xj7pukIiqTqjb1X15.xMVw86W4mxskuFLP4W"], ["updated_at", Fri, 12 Jul 2013 20:40:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.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", Fri, 12 Jul 2013 20:40:38 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Fri, 12 Jul 2013 20:40:38 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'km5kgoBqnqk4BdJoNQjW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-12 20:40:38.259339', "updated_at" = '2013-07-12 20:40:38.259339', "authentication_token" = 'km5kgoBqnqk4BdJoNQjW' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Fri, 12 Jul 2013 20:40:38 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 20:40:38 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", Fri, 12 Jul 2013 20:40:38 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$ik6Y1lBcroxdaZHuJNhBfedo8fl3pkhhwWNE01HWhZvjBDyTA5BxG"], ["updated_at", Fri, 12 Jul 2013 20:40:38 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", Fri, 12 Jul 2013 20:40:38 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$mnUDK/8Gq3bm.OJV8E1FVunRMPlkjmRHxfFhcknoN9AGUGNL5o60e"], ["updated_at", Fri, 12 Jul 2013 20:40:38 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", Fri, 12 Jul 2013 20:40:38 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 20:40:38 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wowWdQjEU5BXZxyLzqWf' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-12 20:40:38.465657', "updated_at" = '2013-07-12 20:40:38.465657', "authentication_token" = 'wowWdQjEU5BXZxyLzqWf' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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.0ms) 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)  (1.2ms) 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")  (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)  (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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (5.5ms) 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  (15.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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  (8.4ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (12.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (13.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:20:59 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$BmgPMYqsZdgXN9cZ2uIobOltb5fUnvftN.anPj/S7CDloXGWtZlv2"], ["updated_at", Fri, 12 Jul 2013 21:20:59 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 21:20:59 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 21:20:59 UTC +00:00]] Cadenero::V1::Account Load (7.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TXUmMfASDQUrop8zmq3x' LIMIT 1  (27.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-12 21:20:59.608728', "updated_at" = '2013-07-12 21:20:59.608728', "authentication_token" = 'TXUmMfASDQUrop8zmq3x' WHERE "public"."cadenero_accounts"."id" = 1  (1.8ms) RELEASE SAVEPOINT active_record_1  (4.0ms) SAVEPOINT active_record_1 SQL (11.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 21:20:59 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:20:59 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (9.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.6ms) 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.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)  (0.7ms) 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")  (6.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)  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-12 16:20:59 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:21:00 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$T1dqk5Mc44ud9LiyA1DZD.xjp6Ni9sJRJIlTs2LEifZ1C6VPbUd3a"], ["updated_at", Fri, 12 Jul 2013 21:21:00 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", Fri, 12 Jul 2013 21:21:00 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:21:00 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 212ms (Views: 79.0ms | 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/2" for 127.0.0.1 at 2013-07-12 16:21:00 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.3ms | ActiveRecord: 1.4ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 21:21:00 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 21:21:00 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fqytWDfqdorDfNzqZoVz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 2, "created_at" = '2013-07-12 21:21:00.152429', "updated_at" = '2013-07-12 21:21:00.152429', "authentication_token" = 'fqytWDfqdorDfNzqZoVz' WHERE "public"."cadenero_accounts"."id" = 2  (0.4ms) 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", Fri, 12 Jul 2013 21:21:00 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:21:00 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (5.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.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 ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 16:21:00 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (4.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", Fri, 12 Jul 2013 21:21:00 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Zqs9DI10VMN3ghKX0wxvWuQ.hzfBNTeY8t9DRAqjrSOC6N1fkqXEK"], ["updated_at", Fri, 12 Jul 2013 21:21:00 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", 2], ["created_at", Fri, 12 Jul 2013 21:21:00 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:21:00 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 121ms (Views: 4.9ms | ActiveRecord: 7.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/2" for 127.0.0.1 at 2013-07-12 16:21:00 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 1.4ms)  (13.0ms) ROLLBACK  (3.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  (20.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) 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.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:21:00 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$tA5s4S3bB4GjxswgpGcbHe7Jc5HBEzXRc7kCkBrUY.9Y55BR4aHp."], ["updated_at", Fri, 12 Jul 2013 21:21:00 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", Fri, 12 Jul 2013 21:21:00 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 21:21:00 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4W1VkrpKuwjVseyj6Qfy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-12 21:21:00.545399', "updated_at" = '2013-07-12 21:21:00.545399', "authentication_token" = '4W1VkrpKuwjVseyj6Qfy' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 21:21:00 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:21:00 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (9.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.7ms) 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")  (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.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 ('20130612073709')  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 16:21:00 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:21:00 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$xDM61hhke/xt4D1sG6yd7.AitM0AR0viHI03nc5.qm6Dlgk5wH5Te"], ["updated_at", Fri, 12 Jul 2013 21:21:00 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", 1], ["created_at", Fri, 12 Jul 2013 21:21:00 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:21:00 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 109ms (Views: 4.8ms | ActiveRecord: 2.7ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 16:21:00 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 1.4ms)  (6.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  (17.7ms) 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 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.6ms) 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  (38.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.6ms) 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  (25.1ms) 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  (1.2ms) BEGIN  (3.7ms) SAVEPOINT active_record_1 SQL (7.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:21:01 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$GOFCFMkkft99M/Cm6NGITeIBDdTiN1sssWIHJP.624QHzcZhUA2V."], ["updated_at", Fri, 12 Jul 2013 21:21:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Fri, 12 Jul 2013 21:21:01 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 21:21:01 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hyasF1Ep7jBRsiS9yXaf' LIMIT 1  (2.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-12 21:21:01.085483', "updated_at" = '2013-07-12 21:21:01.085483', "authentication_token" = 'hyasF1Ep7jBRsiS9yXaf' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 21:21:01 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:21:01 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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)   (1.6ms) 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")  (6.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)  (1.6ms) 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")  (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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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-12 16:21:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:21:01 -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.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (2.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 3.2ms) Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.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  (16.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.8ms) 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", Fri, 12 Jul 2013 21:21:01 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$RUOOlauopgHnmXOgOWCJne8i8MXwf0fiTHbdSxr8IoEdgizBPuBk2"], ["updated_at", Fri, 12 Jul 2013 21:21:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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 (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", Fri, 12 Jul 2013 21:21:01 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 21:21:01 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VHAyGd8VhZdpUpcqoHcV' LIMIT 1  (1.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-12 21:21:01.373277', "updated_at" = '2013-07-12 21:21:01.373277', "authentication_token" = 'VHAyGd8VhZdpUpcqoHcV' WHERE "public"."cadenero_accounts"."id" = 1  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Fri, 12 Jul 2013 21:21:01 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:21:01 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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" ("authentication_token")  (1.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)  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (17.3ms) 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)   (0.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 ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 16:21:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:21:01 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 106ms (Views: 4.5ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 16:21:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.4ms) 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  (16.4ms) 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.4ms) BEGIN  (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", Fri, 12 Jul 2013 21:21:01 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$2E0wpF2rRYdoc4vn8lqHWe1XlxDKJKfuAcCDMaOaedQHtZgiEfSUq"], ["updated_at", Fri, 12 Jul 2013 21:21:01 UTC +00:00]]  (5.9ms) 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 (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", Fri, 12 Jul 2013 21:21:01 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 21:21:01 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pt7zv1NKxznsXHnMJKNT' LIMIT 1  (2.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-12 21:21:01.834280', "updated_at" = '2013-07-12 21:21:01.834280', "authentication_token" = 'pt7zv1NKxznsXHnMJKNT' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", Fri, 12 Jul 2013 21:21:01 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:21:01 UTC +00:00], ["user_id", 1]]  (4.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.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")  (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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.3ms) 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-12 16:21:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:21:01 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (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 Completed 422 Unprocessable Entity in 9ms (Views: 0.6ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.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  (19.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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.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", Fri, 12 Jul 2013 21:21:02 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$fH7C09crI1qt19N2Jaov2eL7YUq2Z7oKyCxyqqWTwCdiZ4JjBZZKm"], ["updated_at", Fri, 12 Jul 2013 21:21:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' 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", Fri, 12 Jul 2013 21:21:02 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 21:21:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gLjqyvFoDS7z31VKttry' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-12 21:21:02.085965', "updated_at" = '2013-07-12 21:21:02.085965', "authentication_token" = 'gLjqyvFoDS7z31VKttry' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 21:21:02 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:21:02 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test7"  (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" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) 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")  (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.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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:21:02 -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 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 105ms (Views: 4.3ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:21:02 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 16:21:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.3ms) 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  (13.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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", Fri, 12 Jul 2013 21:21:02 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$2.z2dCQA3SKnU1TaG.MvBOnllwXOOWP/Jf1WgOX1tOWOMFtG3IsHK"], ["updated_at", Fri, 12 Jul 2013 21:21:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Fri, 12 Jul 2013 21:21:02 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 21:21:02 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qsH6pZ29wfiu5XYpXWUb' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-12 21:21:02.389572', "updated_at" = '2013-07-12 21:21:02.389572', "authentication_token" = 'qsH6pZ29wfiu5XYpXWUb' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 21:21:02 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:21:02 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) 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")  (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)   (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Fri, 12 Jul 2013 21:21:02 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$95A9d2fPJKUyMAM4uIJB..jSFei.Qc92Hlf.mrjRs1nRbIgiagA.y"], ["updated_at", Fri, 12 Jul 2013 21:21:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Fri, 12 Jul 2013 21:21:02 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 2], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 21:21:02 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sYf2bynxpsg2eBVzw9CG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 2, "created_at" = '2013-07-12 21:21:02.542791', "updated_at" = '2013-07-12 21:21:02.542791', "authentication_token" = 'sYf2bynxpsg2eBVzw9CG' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.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", Fri, 12 Jul 2013 21:21:02 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:21:02 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 16:21:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:21:02 -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" = 1 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.0ms) 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.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.3ms) 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", Fri, 12 Jul 2013 21:21:02 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$WtheBfNnaSQ6fpy9R4I04OSh/M4fpBhaah0v6EadR5b4GfnuGTjkK"], ["updated_at", Fri, 12 Jul 2013 21:21:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' 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", Fri, 12 Jul 2013 21:21:02 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Fri, 12 Jul 2013 21:21:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'W71qYtpAxBecNkq73qVv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-12 21:21:02.711657', "updated_at" = '2013-07-12 21:21:02.711657', "authentication_token" = 'W71qYtpAxBecNkq73qVv' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 21:21:02 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:21:02 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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.7ms) 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)  (1.5ms) 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")  (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)   (2.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:21:02 -0500 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@example.com' LIMIT 1  (5.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  (15.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.4ms) BEGIN  (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 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:21:02 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$QvCQyUDW.SncQun1m.RcC.k/nqnPgKxi7gLjU0J6EZdPBq5IJM5RG"], ["updated_at", Fri, 12 Jul 2013 21:21:02 UTC +00:00]] 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", Fri, 12 Jul 2013 21:21:02 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 21:21:02 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1APS8QeiKqpSNDyFjwsF' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-12 21:21:02.914895', "updated_at" = '2013-07-12 21:21:02.914895', "authentication_token" = '1APS8QeiKqpSNDyFjwsF' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 16:21:02 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 117ms (Views: 0.3ms | ActiveRecord: 0.7ms) 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.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  (18.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 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 16:21:03 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:21:03 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$njwGfFEqvTZ0S/anxsqnXe75CGVH9mIw9YbB8wLNlh5EKD2tXUNxq"], ["updated_at", Fri, 12 Jul 2013 21:21:03 UTC +00:00]] 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", Fri, 12 Jul 2013 21:21:03 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 21:21:03 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zN1F7tLMZjgkfDdkV4EX' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-12 21:21:03.197450', "updated_at" = '2013-07-12 21:21:03.197450', "authentication_token" = 'zN1F7tLMZjgkfDdkV4EX' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 21:21:03 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:21:03 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (0.2ms) CREATE SCHEMA "test"  (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.2ms) 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")  (4.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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)  (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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Completed 201 Created in 176ms (Views: 3.7ms | ActiveRecord: 36.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (2.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  (11.9ms) 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  (1.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (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", Fri, 12 Jul 2013 21:21:06 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$K09dXW.hermH66ZKbn42uugBHw8uHYpKJctb6qZ9MreL4M3DMuOKu"], ["updated_at", Fri, 12 Jul 2013 21:21:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (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", Fri, 12 Jul 2013 21:21:06 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Fri, 12 Jul 2013 21:21:06 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5rAB8Gzc3Sg3yURZzNvp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-12 21:21:06.863786', "updated_at" = '2013-07-12 21:21:06.863786', "authentication_token" = '5rAB8Gzc3Sg3yURZzNvp' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 21:21:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:21:06 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", Fri, 12 Jul 2013 21:21:06 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$xZngCArHSQLZSULxxw4tLe8CSJ/8I.pjqhD/In1mUDrQ8fSELGAlO"], ["updated_at", Fri, 12 Jul 2013 21:21:06 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", Fri, 12 Jul 2013 21:21:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$8qtp1M/fZmQ.4lPIKcEvWO.5poBgdTDEVp35AhEZ4sCNNsoihmTOq"], ["updated_at", Fri, 12 Jul 2013 21:21:07 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", Fri, 12 Jul 2013 21:21:07 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 21: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" = 'PVMU3zKTPJqxtzP9PVLm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-12 21:21:07.075144', "updated_at" = '2013-07-12 21:21:07.075144', "authentication_token" = 'PVMU3zKTPJqxtzP9PVLm' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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")  (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)  (1.0ms) 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")  (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.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.3ms) 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.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (3.6ms) 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  (12.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 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", Fri, 12 Jul 2013 21:21:07 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$nv0GX/77n7.5OREo99K4a.KYcuERFXMsqvDCHjMB870iJ3BawfZxm"], ["updated_at", Fri, 12 Jul 2013 21:21:07 UTC +00:00]] 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", Fri, 12 Jul 2013 21:21:07 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 21: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" = 'wDNyMhzeSDCmdpfxLtwV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-12 21:21:07.247759', "updated_at" = '2013-07-12 21:21:07.247759', "authentication_token" = 'wDNyMhzeSDCmdpfxLtwV' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 21:21:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:21:07 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (0.3ms) 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  (12.1ms) 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 (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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  (11.9ms) 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 (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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  (14.1ms) 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 (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) 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  (13.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 Connecting to database specified by database.yml  (5.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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.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.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 16:22:04 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (5.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (6.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:22:05 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$ZXuXglZkUIkX/NnHExFSmeS5sjXEmEqd/vD0GTuiBmdZ9QIaZfcq2"], ["updated_at", Fri, 12 Jul 2013 21:22:05 UTC +00:00]] 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", Fri, 12 Jul 2013 21:22:05 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 21:22:05 UTC +00:00]] Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CvziqcXpZcprHZMMn9cn' LIMIT 1  (1.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-12 21:22:05.197099', "updated_at" = '2013-07-12 21:22:05.197099', "authentication_token" = 'CvziqcXpZcprHZMMn9cn' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (12.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", Fri, 12 Jul 2013 21:22:05 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:22:05 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 1) LIMIT 1  (0.3ms) CREATE SCHEMA "test"  (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)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.7ms) 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)   (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.8ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Completed 201 Created in 684ms (Views: 3.2ms | ActiveRecord: 103.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (8.0ms) 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  (29.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 Cadenero::V1::Account Exists (0.4ms) 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", Fri, 12 Jul 2013 21:22:05 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$OtT90zQHnnplyJQDzLU8PeiHaHsd2QPIGTj6M8xqxMSTlxJ5Gl2vO"], ["updated_at", Fri, 12 Jul 2013 21:22:05 UTC +00:00]] 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", Fri, 12 Jul 2013 21:22:05 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 21:22:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eqtzffczYSxa3KuzqtDo' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-12 21:22:05.613216', "updated_at" = '2013-07-12 21:22:05.613216', "authentication_token" = 'eqtzffczYSxa3KuzqtDo' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 16:22:05 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.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 115ms (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.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  (17.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (10.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 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.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.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) 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  (14.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 (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.6ms) 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  (10.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.1ms) BEGIN  (0.8ms) 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 (12.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:22:06 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$HRTr/gifaQ.BZ.1dM.81/eYqFmVbL0SsgWj34EOJ2yxgQOS0P5oMq"], ["updated_at", Fri, 12 Jul 2013 21:22:06 UTC +00:00]] SQL (2.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", Fri, 12 Jul 2013 21:22:06 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 21:22:06 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'koNcvq78otcEFoZyXQGm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-12 21:22:06.250843', "updated_at" = '2013-07-12 21:22:06.250843', "authentication_token" = 'koNcvq78otcEFoZyXQGm' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 21:22:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:22:06 UTC +00:00], ["user_id", 1]]  (3.9ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (7.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" = 1 LIMIT 1  (0.2ms) ROLLBACK  (0.4ms) 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.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (4.2ms) 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.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", Fri, 12 Jul 2013 21:22:06 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$WwAN8Kl8NkHMnjsUUK9OpebIU9vm9PzPiwEsQpF2gtUbCgJZU3wii"], ["updated_at", Fri, 12 Jul 2013 21:22:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (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", Fri, 12 Jul 2013 21:22:06 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 21:22:06 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eQBdZm8Gd6Xc1TNeCyxB' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-12 21:22:06.558414', "updated_at" = '2013-07-12 21:22:06.558414', "authentication_token" = 'eQBdZm8Gd6Xc1TNeCyxB' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Fri, 12 Jul 2013 21:22:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:22:06 UTC +00:00], ["user_id", 1]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test1"  (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" ("authentication_token")  (5.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.8ms) 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.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.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 16:22: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 (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (1.0ms) 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", Fri, 12 Jul 2013 21:22:06 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$8huOi2YiltqVFHFO.ivMvesmxisxEb7ibUVPrBNikbfgi9MiHGj.W"], ["updated_at", Fri, 12 Jul 2013 21:22:06 UTC +00:00]] 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", Fri, 12 Jul 2013 21:22:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:22:06 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 136ms (Views: 28.6ms | ActiveRecord: 4.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/2" for 127.0.0.1 at 2013-07-12 16:22:06 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.3ms | ActiveRecord: 1.5ms)  (4.6ms) 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  (10.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  (6.7ms) 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", Fri, 12 Jul 2013 21:22:06 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$sTbSovYesptM5/U8GlDskuRJG7KOcQtk5H/t8en.TNTA4BpTBjglS"], ["updated_at", Fri, 12 Jul 2013 21:22:06 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Fri, 12 Jul 2013 21:22:06 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 21:22:06 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'jf9TZ3Ectxqg5aHcwddV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-12 21:22:06.979192', "updated_at" = '2013-07-12 21:22:06.979192', "authentication_token" = 'jf9TZ3Ectxqg5aHcwddV' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Fri, 12 Jul 2013 21:22:06 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:22:06 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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)  (2.3ms) 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")  (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)   (1.6ms) 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")  (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")  (2.0ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 16:22: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:22:07 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$/Evg0Z9xEc4jG8afbgSHZuA5bWI3FQ6g96rILQpfMexlsXsLiej2S"], ["updated_at", Fri, 12 Jul 2013 21:22:07 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", 1], ["created_at", Fri, 12 Jul 2013 21:22:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:22:07 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 109ms (Views: 5.0ms | ActiveRecord: 3.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/2" for 127.0.0.1 at 2013-07-12 16:22:07 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 1.4ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 21:22:07 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 21:22:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wGF9VQbmCyE66UCphstz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 2, "created_at" = '2013-07-12 21:22:07.170470', "updated_at" = '2013-07-12 21:22:07.170470', "authentication_token" = 'wGF9VQbmCyE66UCphstz' WHERE "public"."cadenero_accounts"."id" = 2  (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", Fri, 12 Jul 2013 21:22:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:22:07 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (17.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) 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")  (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)   (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (4.2ms) 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/users" for 127.0.0.1 at 2013-07-12 16:22: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:22:07 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$3dCdExkdqUkMs/2FXdeIA.0Rq8nPX0CgJKCu7YcZD8inlYWxDoEoq"], ["updated_at", Fri, 12 Jul 2013 21:22:07 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", 2], ["created_at", Fri, 12 Jul 2013 21:22:07 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:22:07 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 141ms (Views: 5.1ms | 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/2" for 127.0.0.1 at 2013-07-12 16:22:07 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 57ms (Views: 5.2ms | ActiveRecord: 1.8ms)  (10.1ms) 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  (12.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (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", Fri, 12 Jul 2013 21:22:10 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$aECE/yfuMfWhkXNfvb1z1uOjjxWka9bPMSRNrcDhgkSwhMFsfAeIq"], ["updated_at", Fri, 12 Jul 2013 21:22:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (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", Fri, 12 Jul 2013 21:22:10 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 21:22:10 UTC +00:00]] Cadenero::V1::Account Load (5.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WAKsrLNCdJjfVt27ogz7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-12 21:22:10.917363', "updated_at" = '2013-07-12 21:22:10.917363', "authentication_token" = 'WAKsrLNCdJjfVt27ogz7' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 21:22:10 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:22:10 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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", Fri, 12 Jul 2013 21:22:11 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$lFd8.YcrYBl3gkLnWPuETuTDHiqxwAcXt2PWpEBlmqdCLPHLosgiS"], ["updated_at", Fri, 12 Jul 2013 21:22:11 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", Fri, 12 Jul 2013 21:22:11 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$ngIzNSHHrlES/ncOtlbs5Ok2zLKSoGmrTkICR5G8WgbD9mD4jkc2a"], ["updated_at", Fri, 12 Jul 2013 21:22:11 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", Fri, 12 Jul 2013 21:22:11 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 21:22:11 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'S6TjPNGqza5AejWNDSpu' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-12 21:22:11.135718', "updated_at" = '2013-07-12 21:22:11.135718', "authentication_token" = 'S6TjPNGqza5AejWNDSpu' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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" ("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)  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (2.0ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (2.6ms) 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  (17.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 3ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.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  (27.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 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.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.3ms) 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  (4.0ms) 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", Fri, 12 Jul 2013 21:22:11 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$ZOZ1R5go.sb103nOR6Smy.9PMkWj1ez1.ZgOzL5cziMpVSrdrMUB2"], ["updated_at", Fri, 12 Jul 2013 21:22:11 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 (4.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", Fri, 12 Jul 2013 21:22:11 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 21:22:11 UTC +00:00]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'e7MpcprzRBQaYJ6iB345' LIMIT 1  (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-12 21:22:11.447323', "updated_at" = '2013-07-12 21:22:11.447323', "authentication_token" = 'e7MpcprzRBQaYJ6iB345' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 21:22:11 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:22:11 UTC +00:00], ["user_id", 1]]  (0.4ms) 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.2ms) 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")  (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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) 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-12 16:22:11 -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.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" = 'user5@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) 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 107ms (Views: 4.8ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:22:11 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 16:22:11 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (2.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  (14.3ms) 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.5ms) 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", Fri, 12 Jul 2013 21:22:11 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$L.zX8aMHjxwJUgJ9NmwR8uCFWO/c7.b/14QpDESo3JDB9XtVmg3GC"], ["updated_at", Fri, 12 Jul 2013 21:22:11 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.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", Fri, 12 Jul 2013 21:22:11 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 21:22:11 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'w6bhGrvZXjxtJp69m7LV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-12 21:22:11.770672', "updated_at" = '2013-07-12 21:22:11.770672', "authentication_token" = 'w6bhGrvZXjxtJp69m7LV' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 21:22:11 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:22:11 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.3ms) CREATE SCHEMA "test6"  (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" ("authentication_token")  (0.9ms) 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)   (1.2ms) 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")  (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)  (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.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:22:11 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1  (5.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  (16.5ms) 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.2ms) 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", Fri, 12 Jul 2013 21:22:11 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$1JUXnPPimA.LSOM74CTXNu47nnfNCksC9Pq05WQ36uqQui/Z3YLYO"], ["updated_at", Fri, 12 Jul 2013 21:22:11 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 (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", Fri, 12 Jul 2013 21:22:11 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 21:22:11 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Cb8K8Dq61TAanvuE854u' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-12 21:22:11.988615', "updated_at" = '2013-07-12 21:22:11.988615', "authentication_token" = 'Cb8K8Dq61TAanvuE854u' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 21:22:11 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:22:11 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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)  (1.9ms) 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.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.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.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"  (1.9ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-12 16:22:12 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:22:12 -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.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" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (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.1ms) ROLLBACK  (0.4ms) 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.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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", Fri, 12 Jul 2013 21:22:12 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$anX17xJDdioTY8SqSfp6IOZ.8/JDgXFQ8bCjdP/ukxnk/.jW7AG2G"], ["updated_at", Fri, 12 Jul 2013 21:22:12 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" = 'test8' 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", Fri, 12 Jul 2013 21:22:12 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 21:22:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '12h1is5qTPh3sYM74ys7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-12 21:22:12.204568', "updated_at" = '2013-07-12 21:22:12.204568', "authentication_token" = '12h1is5qTPh3sYM74ys7' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Fri, 12 Jul 2013 21:22:12 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:22:12 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test8"  (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.4ms) 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")  (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)   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) 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.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (5.1ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Fri, 12 Jul 2013 21:22:12 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$w3m/Hvng/uJYR78JFkt2K.5y5fVDM4UZZjJpvMSaaZzOvAJu39SFO"], ["updated_at", Fri, 12 Jul 2013 21:22:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 21:22:12 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 2], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 21:22:12 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xyYBsQm72Arhh5xSg6fU' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 2, "created_at" = '2013-07-12 21:22:12.391488', "updated_at" = '2013-07-12 21:22:12.391488', "authentication_token" = 'xyYBsQm72Arhh5xSg6fU' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Fri, 12 Jul 2013 21:22:12 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:22:12 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 16:22:12 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:22:12 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 1 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 15ms (Views: 1.8ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (3.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.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  (22.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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.1ms) BEGIN  (0.5ms) 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", Fri, 12 Jul 2013 21:22:12 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$t7cg4EMcbthTh6jvzrPrneMkJNCeUBZOwAmKtWORahs9KtLHKvCgC"], ["updated_at", Fri, 12 Jul 2013 21:22:12 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" = 'test10' 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", Fri, 12 Jul 2013 21:22:12 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Fri, 12 Jul 2013 21:22:12 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sqin1xzs15dpuVMV1jug' LIMIT 1  (1.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-12 21:22:12.831416', "updated_at" = '2013-07-12 21:22:12.831416', "authentication_token" = 'sqin1xzs15dpuVMV1jug' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 21:22:12 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:22:12 UTC +00:00], ["user_id", 1]]  (3.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test10"  (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.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) 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)   (2.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) 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.6ms) 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-12 16:22:12 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:22:12 -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 ('test10') 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 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.3ms) 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  (34.1ms) 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.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:22:13 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$Id1ysFCk0yIvc8na5.VG/OqCTWwJtlyBcePzCQtBFSVQJA5JfP4Xi"], ["updated_at", Fri, 12 Jul 2013 21:22:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (5.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (2.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", Fri, 12 Jul 2013 21:22:13 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Fri, 12 Jul 2013 21:22:13 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Jqos7wxqxxoDmohx2SF2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-12 21:22:13.207366', "updated_at" = '2013-07-12 21:22:13.207366', "authentication_token" = 'Jqos7wxqxxoDmohx2SF2' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (3.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 21:22:13 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:22:13 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (13.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)  (6.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (6.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("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)   (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (13.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)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 16:22:13 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:22:13 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user11@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (5.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') 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" = 'user11@example.com' LIMIT 1 Cadenero::User Load (2.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 117ms (Views: 4.7ms | ActiveRecord: 9.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user11@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 16:22:13 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.5ms) 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  (26.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 Connecting to database specified by database.yml  (6.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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.7ms) 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 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 16:26:48 -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 (3.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:26:48 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$W.pf1W1of7IbKghuEBitdeYsqNFuGhQjwEFjfAeM0.JF4tJCOPmeO"], ["updated_at", Fri, 12 Jul 2013 21:26:48 UTC +00:00]] SQL (1.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", Fri, 12 Jul 2013 21:26:48 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 21:26:48 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'AFGzqscqeSkKKDo8Lxka' LIMIT 1  (1.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-12 21:26:48.596533', "updated_at" = '2013-07-12 21:26:48.596533', "authentication_token" = 'AFGzqscqeSkKKDo8Lxka' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", Fri, 12 Jul 2013 21:26:48 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:26:48 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 1) LIMIT 1  (0.3ms) CREATE SCHEMA "test"  (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.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Completed 201 Created in 529ms (Views: 3.3ms | ActiveRecord: 57.8ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (6.5ms) ROLLBACK  (1.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  (13.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.2ms) 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.6ms) 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 (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:26:48 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$KPov4ZO2NJpYHdCohJpWZuWoVZe3.hZokIYuNpM1IhanJQpGDHmFy"], ["updated_at", Fri, 12 Jul 2013 21:26:48 UTC +00:00]] SQL (9.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", Fri, 12 Jul 2013 21:26:48 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 21:26:48 UTC +00:00]] Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YioubqRx9N4QyAjopfZk' LIMIT 1  (1.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-12 21:26:48.992573', "updated_at" = '2013-07-12 21:26:48.992573', "authentication_token" = 'YioubqRx9N4QyAjopfZk' WHERE "public"."cadenero_accounts"."id" = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 16:26:49 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.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 120ms (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.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  (16.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.3ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.3ms) 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.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (12.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  (5.0ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Fri, 12 Jul 2013 21:26:49 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$fARZy3BwtuOLnSaWeX32zefwZAatqcmc1N9QZS067ABA0LWBkirV6"], ["updated_at", Fri, 12 Jul 2013 21:26:49 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", Fri, 12 Jul 2013 21:26:49 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 21:26:49 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pZ4pTFdceKCsBT7x587q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-12 21:26:49.481966', "updated_at" = '2013-07-12 21:26:49.481966', "authentication_token" = 'pZ4pTFdceKCsBT7x587q' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", Fri, 12 Jul 2013 21:26:49 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:26:49 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.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 LIMIT 1  (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  (10.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (4.1ms) 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 (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (9.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  (15.3ms) 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 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.5ms) ROLLBACK  (0.7ms) 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.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (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", Fri, 12 Jul 2013 21:26:50 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$SjcHDCeBlEKw8nbiQO5m8.NhEHUnA3VQk9eLUwflGGSC.rMGpd.CW"], ["updated_at", Fri, 12 Jul 2013 21:26:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (5.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", Fri, 12 Jul 2013 21:26:50 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 21:26:50 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pvpzG2TuGA2BbEsPp8xH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-12 21:26:50.032749', "updated_at" = '2013-07-12 21:26:50.032749', "authentication_token" = 'pvpzG2TuGA2BbEsPp8xH' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Fri, 12 Jul 2013 21:26:50 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:26:50 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test1"  (8.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)   (2.2ms) 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")  (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)  (1.5ms) 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.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)  (5.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 16:26:50 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:26:50 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$KJ0KlwPuNxEuKFnbb6SB.uRw3ncjF2fyWgZ5NsjKgoUPN6lRpRm.S"], ["updated_at", Fri, 12 Jul 2013 21:26:50 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", Fri, 12 Jul 2013 21:26:50 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:26:50 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 137ms (Views: 28.8ms | 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/2" for 127.0.0.1 at 2013-07-12 16:26:50 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 1.5ms)  (6.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  (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  (0.5ms) BEGIN  (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", Fri, 12 Jul 2013 21:26:50 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$B9PkM.SJLV3DUSHNBRBq.epzt6Q/ZQZ5ujtw2WEEfge.s8YrvpQZy"], ["updated_at", Fri, 12 Jul 2013 21:26:50 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 (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", Fri, 12 Jul 2013 21:26:50 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 21:26:50 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CnHbszVUwj6GtYj1VWtQ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-12 21:26:50.487473', "updated_at" = '2013-07-12 21:26:50.487473', "authentication_token" = 'CnHbszVUwj6GtYj1VWtQ' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 21:26:50 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:26:50 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (18.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)  (5.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.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)   (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.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"  (1.0ms) 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') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 16:26:50 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:26:50 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$7jOhp2y.zY7W3KH4meWmuendBxPIwDqFDsVjSc.BV7fzsVE1VSc4W"], ["updated_at", Fri, 12 Jul 2013 21:26:50 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", Fri, 12 Jul 2013 21:26:50 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:26:50 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 126ms (Views: 4.9ms | 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 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 16:26:50 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 9ms (Views: 4.6ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Fri, 12 Jul 2013 21:26:50 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 21:26:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XW3ydmGqNtvqGAueuAX8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 2, "created_at" = '2013-07-12 21:26:50.709045', "updated_at" = '2013-07-12 21:26:50.709045', "authentication_token" = 'XW3ydmGqNtvqGAueuAX8' WHERE "public"."cadenero_accounts"."id" = 2  (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", Fri, 12 Jul 2013 21:26:50 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:26:50 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (5.8ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) 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.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.8ms) SELECT version FROM "schema_migrations"  (0.3ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-12 16:26:50 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:26:50 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$d8c7hHoBXoyemeO8gf74i.D5j//gk1KY0TP7O8a2fDLA8RJj0hrWe"], ["updated_at", Fri, 12 Jul 2013 21:26:50 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", 2], ["created_at", Fri, 12 Jul 2013 21:26:50 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:26:50 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 109ms (Views: 4.8ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 16:26:50 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 1.5ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-12 16:26:50 -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" = 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 13ms (Views: 9.5ms | ActiveRecord: 2.1ms)  (6.2ms) ROLLBACK  (1.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  (16.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.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", Fri, 12 Jul 2013 21:26:51 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$F7.N5Uwsi8RQM7MsuWWMQeVH0WTBaLO86LSVKObqnpebsrPBFM4We"], ["updated_at", Fri, 12 Jul 2013 21:26:51 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.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", Fri, 12 Jul 2013 21:26:51 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 21:26:51 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sE4py38EbPDEZskkb5zq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-12 21:26:51.096740', "updated_at" = '2013-07-12 21:26:51.096740', "authentication_token" = 'sE4py38EbPDEZskkb5zq' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Fri, 12 Jul 2013 21:26:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:26:51 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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)  (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.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)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) 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 ('20130612073709')  (0.5ms) 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-12 16:26:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:26:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.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 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 105ms (Views: 4.4ms | ActiveRecord: 2.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 16:26:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (33.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  (14.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.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", Fri, 12 Jul 2013 21:26:51 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$vLN0Ak7ww3zYL4WbD6iZmu4.oKVmN9I5aYKcl9Ps.djlTKlZz7M7."], ["updated_at", Fri, 12 Jul 2013 21:26:51 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.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", Fri, 12 Jul 2013 21:26:51 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 21:26:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pyB2VLqdpoMMsmEkNovW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-12 21:26:51.438942', "updated_at" = '2013-07-12 21:26:51.438942', "authentication_token" = 'pyB2VLqdpoMMsmEkNovW' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Fri, 12 Jul 2013 21:26:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:26:51 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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)  (3.3ms) 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.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)   (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")  (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.9ms) SELECT version FROM "schema_migrations"  (0.3ms) 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-12 16:26:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:26:51 -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.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 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.8ms) 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  (12.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  (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", Fri, 12 Jul 2013 21:26:51 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$tI7ALMehTV0R4XSwLHotTORby1AKGZSmb3oqk9JKhlRSGgf7IU2Pe"], ["updated_at", Fri, 12 Jul 2013 21:26:51 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.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", Fri, 12 Jul 2013 21:26:51 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 21:26:51 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xpGbpBqc19STDEvPUxET' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-12 21:26:51.639661', "updated_at" = '2013-07-12 21:26:51.639661', "authentication_token" = 'xpGbpBqc19STDEvPUxET' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 21:26:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:26:51 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.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.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)   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Fri, 12 Jul 2013 21:26:51 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$vL.OswjBJp2h//cj7w4C5.QxU0TRKbEzgvV/EHf8fOkH4eutlfmim"], ["updated_at", Fri, 12 Jul 2013 21:26:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.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", Fri, 12 Jul 2013 21:26:51 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 2], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 21:26:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qUymgvuEyixHzSegVHwx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 2, "created_at" = '2013-07-12 21:26:51.800918', "updated_at" = '2013-07-12 21:26:51.800918', "authentication_token" = 'qUymgvuEyixHzSegVHwx' WHERE "public"."cadenero_accounts"."id" = 2  (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", Fri, 12 Jul 2013 21:26:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:26:51 UTC +00:00], ["user_id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 16:26:51 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:26: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.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  (12.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.4ms) 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", Fri, 12 Jul 2013 21:26:51 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$Jrvn3HWlPRH1LmwC8ABHnOojvpSfpcmqjZApoj0gxfl6zMI7qOjd6"], ["updated_at", Fri, 12 Jul 2013 21:26:51 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" = 'test8' 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", Fri, 12 Jul 2013 21:26:51 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 21:26:51 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XBkxKbTXp41JGtuidv3s' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-12 21:26:51.964560', "updated_at" = '2013-07-12 21:26:51.964560', "authentication_token" = 'XBkxKbTXp41JGtuidv3s' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 21:26:51 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:26:51 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (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")  (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)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.4ms) SELECT version FROM "schema_migrations"  (0.5ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:26:52 -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 ('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"."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 (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 158ms (Views: 4.4ms | ActiveRecord: 2.3ms) 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-12 16:26:52 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 16:26:52 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.3ms) ROLLBACK  (0.4ms) 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  (11.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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  (1.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", Fri, 12 Jul 2013 21:26:52 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$9irRdjFu1aJ4wwclEZCYNuqfOv2RlGrdiYFVpJ6Okz/8HIR1X9ABS"], ["updated_at", Fri, 12 Jul 2013 21:26:52 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.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", Fri, 12 Jul 2013 21:26:52 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 21:26:52 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qbeFvymafAgDmd9Jqc11' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-12 21:26:52.319066', "updated_at" = '2013-07-12 21:26:52.319066', "authentication_token" = 'qbeFvymafAgDmd9Jqc11' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 21:26:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:26:52 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (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" ("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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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"  (2.2ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-12 16:26:52 -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-12 16:26: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.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" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.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  (10.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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.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", Fri, 12 Jul 2013 21:26:52 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$sYeTvGEomQ8ZT/BLDojyUu78RBFRxxue05rCf5AMbPok9HoFikWaa"], ["updated_at", Fri, 12 Jul 2013 21:26:52 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" = 'test10' 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", Fri, 12 Jul 2013 21:26:52 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Fri, 12 Jul 2013 21:26:52 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hhxotqprzuT8u24viFqZ' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-12 21:26:52.516301', "updated_at" = '2013-07-12 21:26:52.516301', "authentication_token" = 'hhxotqprzuT8u24viFqZ' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Fri, 12 Jul 2013 21:26:52 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:26:52 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test10"  (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)  (2.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)   (1.0ms) 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")  (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.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 ('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-12 16:26:52 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@example.com' LIMIT 1  (2.6ms) 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  (12.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (1.1ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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", Fri, 12 Jul 2013 21:26:56 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$q7spqVorckP05FIHimIhn.4ab4/ChdAfErvRPN/G4G.xolbfiF2t2"], ["updated_at", Fri, 12 Jul 2013 21:26:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' 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", Fri, 12 Jul 2013 21:26:56 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Fri, 12 Jul 2013 21:26:56 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'jAUBi4huSBTzxKEzprH8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-12 21:26:56.116192', "updated_at" = '2013-07-12 21:26:56.116192', "authentication_token" = 'jAUBi4huSBTzxKEzprH8' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 21:26:56 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:26:56 UTC +00:00], ["user_id", 1]]  (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", Fri, 12 Jul 2013 21:26:56 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$VkaplIlG1dBZwxVppS6L2uHULz.LbqudKBGRR47rBTlKj2msOQmFK"], ["updated_at", Fri, 12 Jul 2013 21:26:56 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", Fri, 12 Jul 2013 21:26:56 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$MHEzidv5YI8dYaW2ah39xOkiWZk86AFdHdr/KM1EUTDPpOL3p2eCm"], ["updated_at", Fri, 12 Jul 2013 21:26:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Fri, 12 Jul 2013 21:26:56 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 21:26:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1YX6WVgMgqoknjNHo7uw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-12 21:26:56.322048', "updated_at" = '2013-07-12 21:26:56.322048', "authentication_token" = '1YX6WVgMgqoknjNHo7uw' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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" ("authentication_token")  (3.5ms) 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)   (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")  (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.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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (3.9ms) 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  (13.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.2ms) 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  (12.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  (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) 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  (15.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (0.9ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.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.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (10.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:28:12 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$8K/tvIDYVp079dFb2oZq2OZdVDU9r/ZFUDx1UrwUjP.nxTILBHiky"], ["updated_at", Fri, 12 Jul 2013 21:28:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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" = 'test1' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 21:28:12 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Fri, 12 Jul 2013 21:28:12 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'aUs2YaoC8nxyb6gZE3LT' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-12 21:28:12.576887', "updated_at" = '2013-07-12 21:28:12.576887', "authentication_token" = 'aUs2YaoC8nxyb6gZE3LT' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", Fri, 12 Jul 2013 21:28:12 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:28:12 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", Fri, 12 Jul 2013 21:28:12 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$BeDWkQlpPygDkJftR9mUQedIcueQbsUnf1W2JuyRkdZs401kLw/CW"], ["updated_at", Fri, 12 Jul 2013 21:28: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", Fri, 12 Jul 2013 21:28:12 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$hxYr0AZOWWelGsnVh1MsmeSJM8c736TbILDLST6aJGgT1us/5j9xa"], ["updated_at", Fri, 12 Jul 2013 21:28: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", Fri, 12 Jul 2013 21:28:12 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Fri, 12 Jul 2013 21:28:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'aupdUwyu9BQ1a9ekiTF7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-12 21:28:12.842103', "updated_at" = '2013-07-12 21:28:12.842103', "authentication_token" = 'aupdUwyu9BQ1a9ekiTF7' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www"  (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.7ms) 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)  (1.2ms) 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)   (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.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')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (5.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  (11.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.1ms) BEGIN  (0.2ms) 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", Fri, 12 Jul 2013 21:28:13 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$EaWu6iZlUY/f69jTcI8SIOPvW5xiPuaLhAqeDEPzbwYJbiolvelvi"], ["updated_at", Fri, 12 Jul 2013 21:28:13 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" = 'test2' 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", Fri, 12 Jul 2013 21:28:13 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Fri, 12 Jul 2013 21:28:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VCHYAPeUQwxa1rFCCq2R' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-12 21:28:13.090746', "updated_at" = '2013-07-12 21:28:13.090746', "authentication_token" = 'VCHYAPeUQwxa1rFCCq2R' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Fri, 12 Jul 2013 21:28:13 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:28:13 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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")  (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)   (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.5ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) 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-12 16:28:13 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:28:13 -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 ('test2') LIMIT 1 Cadenero::User Load (2.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 54ms (Views: 0.4ms | ActiveRecord: 2.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  (6.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  (13.9ms) 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", Fri, 12 Jul 2013 21:28:13 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$m6o5B6WEsEwdolkARsIE0ebhBROEn9zjBdol25sOwKcZ1jbv3PvaO"], ["updated_at", Fri, 12 Jul 2013 21:28:13 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", Fri, 12 Jul 2013 21:28:13 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Fri, 12 Jul 2013 21:28:13 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xLDjx9pqQZzsjzGgfX8H' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-12 21:28:13.388264', "updated_at" = '2013-07-12 21:28:13.388264', "authentication_token" = 'xLDjx9pqQZzsjzGgfX8H' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 21:28:13 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:28:13 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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")  (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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:28:13 -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.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" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) 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 129ms (Views: 27.5ms | ActiveRecord: 2.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:28:13 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 16:28:13 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (5.8ms) 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  (11.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.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", Fri, 12 Jul 2013 21:28:13 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$bpld4NPCWklNEnJs9YiKreDqB/RRxjOx2hDjOI0HZ4GOurQEwsaPq"], ["updated_at", Fri, 12 Jul 2013 21:28:13 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 (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", Fri, 12 Jul 2013 21:28:13 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Fri, 12 Jul 2013 21:28:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tHeTx6pq8YsGCMFQmYpK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-12 21:28:13.720261', "updated_at" = '2013-07-12 21:28:13.720261', "authentication_token" = 'tHeTx6pq8YsGCMFQmYpK' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 21:28:13 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:28:13 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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.6ms) 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")  (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)   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) 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)  (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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 16:28:13 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:28:13 -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 ('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"."email" = 'user@example.com' LIMIT 1 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' LIMIT 1  (4.5ms) ROLLBACK  (0.7ms) 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.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.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:28:13 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$zVpwhPUG0zcOnggxtBNAJuPcZJV0C8qOypLUYL6dpqmY0YdQWGqoy"], ["updated_at", Fri, 12 Jul 2013 21:28:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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.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", Fri, 12 Jul 2013 21:28:13 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Fri, 12 Jul 2013 21:28:13 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'px8pzZ9TxrYiAHxjUTUW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-12 21:28:13.928047', "updated_at" = '2013-07-12 21:28:13.928047', "authentication_token" = 'px8pzZ9TxrYiAHxjUTUW' WHERE "public"."cadenero_accounts"."id" = 1  (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", Fri, 12 Jul 2013 21:28:13 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:28:13 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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.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")  (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)   (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")  (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.9ms) 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.8ms) 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-12 16:28:13 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:28:13 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 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 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" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 129ms (Views: 4.9ms | ActiveRecord: 3.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 16:28:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (9.8ms) 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  (13.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (1.8ms) 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", Fri, 12 Jul 2013 21:28:14 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$d.QrVcSNnAqNpIGtSQxtFuwOUNlQB4Xms.A5PgiRdtf.uErVbgA7W"], ["updated_at", Fri, 12 Jul 2013 21:28:14 UTC +00:00]]  (0.6ms) 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 (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", Fri, 12 Jul 2013 21:28:14 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Fri, 12 Jul 2013 21:28:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'j1BpxoUNFXqzrmN1dz6s' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-12 21:28:14.491553', "updated_at" = '2013-07-12 21:28:14.491553', "authentication_token" = 'j1BpxoUNFXqzrmN1dz6s' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 21:28:14 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:28:14 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (23.6ms) CREATE SCHEMA "test6"  (18.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)  (19.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")  (7.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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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")  (7.8ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.5ms) SAVEPOINT active_record_1 SQL (3.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:28:14 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$eALffVlp1ABpG1LkASremufGQUNZOO/WPBeqdFkxgxft4e0OFsP6W"], ["updated_at", Fri, 12 Jul 2013 21:28:14 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" = '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", Fri, 12 Jul 2013 21:28:14 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 2], ["subdomain", "test7"], ["updated_at", Fri, 12 Jul 2013 21:28:14 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rJz9hqUuJstUjVGkATiW' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 2, "created_at" = '2013-07-12 21:28:14.809410', "updated_at" = '2013-07-12 21:28:14.809410', "authentication_token" = 'rJz9hqUuJstUjVGkATiW' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Fri, 12 Jul 2013 21:28:14 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:28:14 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 16:28:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 16:28:14 -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 ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 0.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  (8.2ms) ROLLBACK  (2.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  (49.3ms) 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  (2.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", Fri, 12 Jul 2013 21:28:15 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$YNwN/xZk6mzsmKdrQ3Bepe9PouVGmvVCixgw.3fkWjntIaDs7epBy"], ["updated_at", Fri, 12 Jul 2013 21:28:15 UTC +00:00]]  (2.7ms) RELEASE SAVEPOINT active_record_1  (8.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Fri, 12 Jul 2013 21:28:15 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Fri, 12 Jul 2013 21:28:15 UTC +00:00]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zGMLUCq3XpqD7YohJsna' LIMIT 1  (3.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-12 21:28:15.090562', "updated_at" = '2013-07-12 21:28:15.090562', "authentication_token" = 'zGMLUCq3XpqD7YohJsna' WHERE "public"."cadenero_accounts"."id" = 1  (3.5ms) RELEASE SAVEPOINT active_record_1  (9.3ms) 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", 1], ["created_at", Fri, 12 Jul 2013 21:28:15 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:28:15 UTC +00:00], ["user_id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test8"  (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)  (5.9ms) 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")  (7.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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (5.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 ('20130612073709')  (0.7ms) 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-12 16:28:15 -0500 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@example.com' LIMIT 1  (4.6ms) 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;  (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.4ms) BEGIN  (1.7ms) 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", Fri, 12 Jul 2013 21:28:15 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$oR48BxSDkVz76NSEzwTMSuStXACvGBzm3IRy3SCN7MC1pG5p726qy"], ["updated_at", Fri, 12 Jul 2013 21:28:15 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 (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", Fri, 12 Jul 2013 21:28:15 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Fri, 12 Jul 2013 21:28:15 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hTDfZacfzSTdC1yzhCKx' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-12 21:28:15.395315', "updated_at" = '2013-07-12 21:28:15.395315', "authentication_token" = 'hTDfZacfzSTdC1yzhCKx' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 1], ["created_at", Fri, 12 Jul 2013 21:28:15 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:28:15 UTC +00:00], ["user_id", 1]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test9"  (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)  (0.9ms) 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")  (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)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) 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)   (4.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 16:28:15 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1  (7.5ms) SAVEPOINT active_record_1 SQL (3.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:28:15 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$9iP42c4TbBUfnRWvewkW9eKPWXm62Wg.Ux/qBj5rsP9pqAxAm4s3m"], ["updated_at", Fri, 12 Jul 2013 21:28:15 UTC +00:00]] SQL (3.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Fri, 12 Jul 2013 21:28:15 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:28:15 UTC +00:00], ["user_id", 2]]  (6.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 134ms (Views: 5.4ms | ActiveRecord: 24.3ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-12 16:28:15 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' 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"."id" = 2 LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (10.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 23ms (Views: 5.5ms | ActiveRecord: 13.2ms)  (6.3ms) 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  (24.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  (14.0ms) SAVEPOINT active_record_1 SQL (49.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:28:15 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$ZndugZ5J/gMONym0UNOFp.aEUl41.BU4hgLKG4a4t6ESfFJd6Anmu"], ["updated_at", Fri, 12 Jul 2013 21:28:15 UTC +00:00]]  (7.8ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (1.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", Fri, 12 Jul 2013 21:28:15 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Fri, 12 Jul 2013 21:28:15 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TsfcCoPoysCy9ziTdzTR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-12 21:28:15.933175', "updated_at" = '2013-07-12 21:28:15.933175', "authentication_token" = 'TsfcCoPoysCy9ziTdzTR' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Fri, 12 Jul 2013 21:28:15 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:28:15 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (11.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" ("authentication_token")  (2.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.6ms) SELECT version FROM "schema_migrations"  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (3.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 16:28:16 -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" = 'test10' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:28:16 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$b/vbxy83hFQF4FWticShh.jNCnh2sOYedM/8FELtGDzhmwHPq.RUS"], ["updated_at", Fri, 12 Jul 2013 21:28:16 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", 1], ["created_at", Fri, 12 Jul 2013 21:28:16 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:28:16 UTC +00:00], ["user_id", 2]]  (2.0ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (2.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 187ms (Views: 5.9ms | ActiveRecord: 7.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/2" for 127.0.0.1 at 2013-07-12 16:28:16 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (2.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 12ms (Views: 5.0ms | ActiveRecord: 4.0ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' 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", Fri, 12 Jul 2013 21:28:16 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 2], ["subdomain", "test11"], ["updated_at", Fri, 12 Jul 2013 21:28:16 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vvyt8xMieLVJ8BqGAmBs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 2, "created_at" = '2013-07-12 21:28:16.256762', "updated_at" = '2013-07-12 21:28:16.256762', "authentication_token" = 'vvyt8xMieLVJ8BqGAmBs' WHERE "public"."cadenero_accounts"."id" = 2  (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", Fri, 12 Jul 2013 21:28:16 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:28:16 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test11"  (13.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.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.1ms) 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)  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 16:28:16 -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' LIMIT 1  (1.1ms) SAVEPOINT active_record_1 SQL (17.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:28:16 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$zz5qYuk3k4xGVC8Gy05.huMaej3WPVkZu1QO2JrCs0zytzk2ogwBC"], ["updated_at", Fri, 12 Jul 2013 21:28:16 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", 2], ["created_at", Fri, 12 Jul 2013 21:28:16 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:28:16 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 212ms (Views: 5.4ms | ActiveRecord: 20.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/2" for 127.0.0.1 at 2013-07-12 16:28:16 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.4ms | ActiveRecord: 1.8ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-12 16:28:16 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (4.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 1 Cadenero::User Load (6.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 26ms (Views: 10.5ms | ActiveRecord: 13.8ms)  (8.5ms) ROLLBACK  (1.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  (15.3ms) 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 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 16:28: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}  (1.1ms) 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 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:28:16 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$netmyeeMJirHvfpBYDd.EeZzbHrugnTIPIeVPJEDhaVM9Qu/EqQ6u"], ["updated_at", Fri, 12 Jul 2013 21:28:16 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", Fri, 12 Jul 2013 21:28:16 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 21:28:16 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'N67ZBnxEZPR2ydbr2ZL4' LIMIT 1  (2.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-12 21:28:16.845934', "updated_at" = '2013-07-12 21:28:16.845934', "authentication_token" = 'N67ZBnxEZPR2ydbr2ZL4' WHERE "public"."cadenero_accounts"."id" = 1  (0.6ms) RELEASE SAVEPOINT active_record_1  (2.9ms) SAVEPOINT active_record_1 SQL (5.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", Fri, 12 Jul 2013 21:28:16 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:28:16 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 1) LIMIT 1  (1.7ms) CREATE SCHEMA "test"  (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)  (0.9ms) 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")  (7.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)   (19.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")  (17.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)   (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (13.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Completed 201 Created in 330ms (Views: 3.1ms | ActiveRecord: 108.1ms) Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (11.9ms) ROLLBACK  (3.0ms) 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  (15.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (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 (2.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:28:17 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$DhJFCumG5gbKJZeoSECsxOV9.1K1qEJhEovzprMD/CIllTjXem.sa"], ["updated_at", Fri, 12 Jul 2013 21:28:17 UTC +00:00]] SQL (3.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", Fri, 12 Jul 2013 21:28:17 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 21:28:17 UTC +00:00]] Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'H5h7p7cwfgxBsW5r6oEC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-12 21:28:17.136473', "updated_at" = '2013-07-12 21:28:17.136473', "authentication_token" = 'H5h7p7cwfgxBsW5r6oEC' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 16:28:17 -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 (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.4ms) 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 113ms (Views: 0.3ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (1.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  (15.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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  (18.5ms) 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.2ms) BEGIN Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.6ms) 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  (42.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.1ms) BEGIN  (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 (1.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Fri, 12 Jul 2013 21:28:17 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$VMf1UcuYlgMpL/9EvOrN4upUBG6sq9xgcq5gLebs8mIIwneEdlfW2"], ["updated_at", Fri, 12 Jul 2013 21:28:17 UTC +00:00]] 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", Fri, 12 Jul 2013 21:28:17 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Fri, 12 Jul 2013 21:28:17 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'V34dqyUqRSCX5FUHsw6P' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-12 21:28:17.682006', "updated_at" = '2013-07-12 21:28:17.682006', "authentication_token" = 'V34dqyUqRSCX5FUHsw6P' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Fri, 12 Jul 2013 21:28:17 UTC +00:00], ["updated_at", Fri, 12 Jul 2013 21:28:17 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (0.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  (17.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.1ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.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  (14.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.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  (18.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.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)  (1.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  (50.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  (4.0ms) 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  (6.5ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (32.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.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (11.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 00:03:08 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$wdll5TXncmbQcqBYifQRO.3Ed370N1OiCtt.MajYPSkU/QynFL4.m"], ["updated_at", Sat, 13 Jul 2013 00:03:08 UTC +00:00]] SQL (2.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 00:03:08 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 00:03:08 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qQsvT5hYHqnSaSJb6XNh' 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" = 1 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 00:03:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:08 UTC +00:00], ["id", 1], ["authentication_token", "qQsvT5hYHqnSaSJb6XNh"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 19:03: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_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 23ms (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.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  (10.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (14.0ms) ROLLBACK  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 19:03: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_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", Sat, 13 Jul 2013 00:03:08 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$D/dTi/fbCn1DoDTHZ8mcBeQHfrpXuOSxzYXaRpZ6Fiaijg2.C73Am"], ["updated_at", Sat, 13 Jul 2013 00:03:08 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", Sat, 13 Jul 2013 00:03:08 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 00:03:08 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JBV2HXzxzos39JXvsbC6' 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" = 2 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 2], ["created_at", Sat, 13 Jul 2013 00:03:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:08 UTC +00:00], ["id", 2], ["authentication_token", "JBV2HXzxzos39JXvsbC6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.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", Sat, 13 Jul 2013 00:03:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:08 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 2) LIMIT 1  (1.5ms) CREATE SCHEMA "test"  (21.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.0ms) 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)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)   (2.0ms) 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"  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 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 [["account_id", 2]] Completed 201 Created in 299ms (Views: 15.6ms | ActiveRecord: 73.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  (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.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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  (12.1ms) ROLLBACK  (8.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.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  (29.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.4ms) ROLLBACK  (0.2ms) 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)  (1.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  (14.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (6.7ms) ROLLBACK  (0.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", Sat, 13 Jul 2013 00:03:08 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$BAC44Cs5Vih/GlQjqO5FFOhGN46aQulY3qdDO88UARNHrzXC7Q7aa"], ["updated_at", Sat, 13 Jul 2013 00:03:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (7.7ms) 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", Sat, 13 Jul 2013 00:03:08 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 3], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 00:03:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SSpExN6i99hZWqzc7i29' 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" = 3 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 3], ["created_at", Sat, 13 Jul 2013 00:03:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:08 UTC +00:00], ["id", 3], ["authentication_token", "SSpExN6i99hZWqzc7i29"]]  (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", 3], ["created_at", Sat, 13 Jul 2013 00:03:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:08 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test1"  (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)  (12.5ms) 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")  (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)   (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.1ms) 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)  (0.9ms) 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"  (2.0ms) 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/users" for 127.0.0.1 at 2013-07-12 19:03:08 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 00:03:08 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$1o1qrROU8ERKEGszMzt1TeqqPMOQWE95wVfp6/7dXlZJL2tH8bf9S"], ["updated_at", Sat, 13 Jul 2013 00:03:08 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", 3], ["created_at", Sat, 13 Jul 2013 00:03:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:08 UTC +00:00], ["user_id", 4]]  (1.5ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (8.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::V1::Account Load (21.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] 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" = $1 [["user_id", 4]] Completed 201 Created in 77ms (Views: 28.8ms | ActiveRecord: 38.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/4" for 127.0.0.1 at 2013-07-12 19:03:08 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"4"} Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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"."id" = 4 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 3]] Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] 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", 4]] Completed 200 OK in 17ms (Views: 7.2ms | ActiveRecord: 4.9ms) Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (1.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 4], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00]] Cadenero::V1::Account Load (4.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TwynqBg8qq1Umyfq9Nqq' 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" = 4 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 4], ["created_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["id", 4], ["authentication_token", "TwynqBg8qq1Umyfq9Nqq"]]  (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", 4], ["created_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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)  (55.3ms) 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.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.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.8ms) SELECT version FROM "schema_migrations"  (1.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 POST "//v1/users" for 127.0.0.1 at 2013-07-12 19:03:09 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.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", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$kEzdPCs0A3u3qgpoYdS1UeyUJv1hE8pcaSejEWZ0HKC4.KzvYzm8m"], ["updated_at", Sat, 13 Jul 2013 00:03:09 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", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["user_id", 5]]  (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" = 5 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 5]] 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", 5]] Completed 201 Created in 17ms (Views: 5.1ms | ActiveRecord: 3.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 Started GET "/v1/users/4" for 127.0.0.1 at 2013-07-12 19:03:09 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"4"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $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::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.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 13ms (Views: 7.2ms | ActiveRecord: 2.0ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-12 19:03:09 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (7.3ms) 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" = 4 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", 3]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 3]] 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", 3]] 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 23ms (Views: 11.7ms | ActiveRecord: 9.5ms)  (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  (12.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (3.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_members" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_users" ENABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" ENABLE TRIGGER ALL  (10.3ms) ROLLBACK  (0.5ms) BEGIN  (1.0ms) 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", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$x7lKRzIDU94/CtIKHzfIsuYcdpk1vlVwLOjhmTa/d/UXKq7G.47Sy"], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 6], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tTbwpLYETk7jACcfFH2s' 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" = 5 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 6], ["created_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["id", 5], ["authentication_token", "tTbwpLYETk7jACcfFH2s"]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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", 5], ["created_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["user_id", 6]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (15.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)  (3.3ms) 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")  (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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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/users" for 127.0.0.1 at 2013-07-12 19:03:09 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$s2CYOVrTUqa13POrFJJpseuyyLfJjRICj.dm.0KUWEk2.JItQ20jG"], ["updated_at", Sat, 13 Jul 2013 00:03:09 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", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Cadenero::V1::Account Load (0.9ms) 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 21ms (Views: 5.6ms | 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/7" for 127.0.0.1 at 2013-07-12 19:03:09 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"7"} 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.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"."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::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 7]] Cadenero::V1::Account Load (2.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" = $1 [["user_id", 7]] Completed 200 OK in 13ms (Views: 5.3ms | ActiveRecord: 4.4ms)  (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  (10.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (7.2ms) ROLLBACK  (0.4ms) BEGIN Cadenero::V1::Account Exists (1.3ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.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  (5.3ms) ROLLBACK  (1.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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (4.4ms) ROLLBACK  (0.6ms) BEGIN Cadenero::V1::Account Exists (1.9ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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  (6.2ms) ROLLBACK  (0.6ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.1ms) 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", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$Mv5dq.GtDHRfAOQpvaEApe0meZ0ZYOipSiJb1ESw0tS0aHjxBdozq"], ["updated_at", Sat, 13 Jul 2013 00:03:09 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", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["name", "Test Account"], ["owner_id", 8], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'v6p41bGzXsEL6ZnDHcx3' 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"], ["subdomain", "test"], ["owner_id", 8], ["created_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["id", 6], ["authentication_token", "v6p41bGzXsEL6ZnDHcx3"]]  (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", 6], ["created_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["user_id", 8]]  (0.2ms) RELEASE SAVEPOINT active_record_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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 6]]  (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  (15.4ms) 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  (3.9ms) ROLLBACK  (0.4ms) BEGIN  (0.1ms) 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", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$eCJ0L8hmZ3tVFGPHkFOfI.P04rUEwluvIa5eGi9oiTc2LNfhprG3i"], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 9], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5xC6CponrkpkcpxXmisq' 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 #4"], ["subdomain", "test4"], ["owner_id", 9], ["created_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["id", 7], ["authentication_token", "5xC6CponrkpkcpxXmisq"]]  (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", 7], ["created_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["user_id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.8ms) 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)  (4.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.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.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 19:03:09 -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", 7]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 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 (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", 9]] Completed 201 Created in 16ms (Views: 5.4ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 19:03:09 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"9", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 19:03: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)  (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  (8.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (6.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", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$1sHG76UCdOZE/PZoyTQG0OtLbuWruOv8CSPoxGmIVUyjjX7OYk/gm"], ["updated_at", Sat, 13 Jul 2013 00:03: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" = 'test5' 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", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 10], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '483VqhYQwJQ6UpM2FH2R' 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 #5"], ["subdomain", "test5"], ["owner_id", 10], ["created_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["id", 8], ["authentication_token", "483VqhYQwJQ6UpM2FH2R"]]  (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", 8], ["created_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["user_id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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" ("authentication_token")  (1.0ms) 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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 19:03: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.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 19:03: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 ('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", 8]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 10 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 10]] 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", 10]] Completed 201 Created in 14ms (Views: 5.4ms | ActiveRecord: 2.6ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 19:03:09 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true 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)  (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  (9.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.9ms) 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", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$jNhxO7Yhqj1IwKdVEw0eVOwNrjg/PibgpavyEmrP4Snq1IUZy/GVK"], ["updated_at", Sat, 13 Jul 2013 00:03: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 (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", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 11], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7KZzcJUM9RBGuqGbPzyJ' 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 #6"], ["subdomain", "test6"], ["owner_id", 11], ["created_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["id", 9], ["authentication_token", "7KZzcJUM9RBGuqGbPzyJ"]]  (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", 9], ["created_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (10.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$37pZbS5DD1slQcfF8iZoo..O7MEAT/5W7yttrkfyVQQ6Pjyn/u12S"], ["updated_at", Sat, 13 Jul 2013 00:03:09 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" = 'test7' 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", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 12], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7AzaLz1tqNhs76ZGoeDq' 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 #7"], ["subdomain", "test7"], ["owner_id", 12], ["created_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:09 UTC +00:00], ["id", 10], ["authentication_token", "7AzaLz1tqNhs76ZGoeDq"]]  (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", 10], ["created_at", Sat, 13 Jul 2013 00:03:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:10 UTC +00:00], ["user_id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 19:03: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-12 19:03:10 -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.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]] 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  (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  (11.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (5.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", Sat, 13 Jul 2013 00:03:10 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$N6326EnRY4C1xYwE777l/.6H5lDjg97si1ZTHrSGKNVqaCEKjAYCm"], ["updated_at", Sat, 13 Jul 2013 00:03: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" = '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", Sat, 13 Jul 2013 00:03:10 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 13], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 00:03:10 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xx9sxv7JCBxKNgXWz4PV' 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 #8"], ["subdomain", "test8"], ["owner_id", 13], ["created_at", Sat, 13 Jul 2013 00:03:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:10 UTC +00:00], ["id", 11], ["authentication_token", "xx9sxv7JCBxKNgXWz4PV"]]  (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", 11], ["created_at", Sat, 13 Jul 2013 00:03:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:10 UTC +00:00], ["user_id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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.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)  (3.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) 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.7ms) 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 19:03:10 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (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  (13.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (22.7ms) 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", Sat, 13 Jul 2013 00:03:10 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$guqdRcjIR93nappAOlVV.Oo6gd8LwpidY63ypCV8M2cqACxqqsWnm"], ["updated_at", Sat, 13 Jul 2013 00:03: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" = '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", Sat, 13 Jul 2013 00:03:10 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 14], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 00:03:10 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yA84fHxWrEmAxFsVL2Nr' 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 #9"], ["subdomain", "test9"], ["owner_id", 14], ["created_at", Sat, 13 Jul 2013 00:03:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:10 UTC +00:00], ["id", 12], ["authentication_token", "yA84fHxWrEmAxFsVL2Nr"]]  (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", Sat, 13 Jul 2013 00:03:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:10 UTC +00:00], ["user_id", 14]]  (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.9ms) 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.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.4ms) 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")  (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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 19:03: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-12 19:03:10 -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.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", 12]] 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.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", Sat, 13 Jul 2013 00:03:10 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$LHZDAMJRJeyBm.bHHqWeXux8GXzzLs8pZSszFUxyln1bwKRLc1MVy"], ["updated_at", Sat, 13 Jul 2013 00:03:10 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" = '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", Sat, 13 Jul 2013 00:03:10 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 15], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 00:03:10 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PzEysxe3oQXJ2sLSjHdu' 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 #10"], ["subdomain", "test10"], ["owner_id", 15], ["created_at", Sat, 13 Jul 2013 00:03:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:10 UTC +00:00], ["id", 13], ["authentication_token", "PzEysxe3oQXJ2sLSjHdu"]]  (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", 13], ["created_at", Sat, 13 Jul 2013 00:03:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:10 UTC +00:00], ["user_id", 15]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.2ms) 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-12 19:03: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-12 19:03:10 -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 ('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" = '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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.6ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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", Sat, 13 Jul 2013 00:03:13 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$Mu5VXweVQ0lGYZjip9r/QO26LBAYQkQ8sOC8Ee/0.zQ6T3DNm//ki"], ["updated_at", Sat, 13 Jul 2013 00:03:13 UTC +00:00]]  (0.3ms) 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" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 00:03:13 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 16], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 00:03:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xBkpM9dJz2oxnbo7kdx8' 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", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 16], ["created_at", Sat, 13 Jul 2013 00:03:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:13 UTC +00:00], ["id", 14], ["authentication_token", "xBkpM9dJz2oxnbo7kdx8"]]  (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", 14], ["created_at", Sat, 13 Jul 2013 00:03:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:13 UTC +00:00], ["user_id", 16]]  (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", Sat, 13 Jul 2013 00:03:13 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$l9LlJ3EXfobgx/po8/leEue0a5JQjC0VK5XuhxuZ3LfJEu/tIS/SC"], ["updated_at", Sat, 13 Jul 2013 00:03:13 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", Sat, 13 Jul 2013 00:03:13 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$xjvrfAvrtzT7gtan2M0QYO8mPlgCR8K7bXy69UG5xsgdFB/t47w2u"], ["updated_at", Sat, 13 Jul 2013 00:03:13 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" = '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", Sat, 13 Jul 2013 00:03:13 UTC +00:00], ["name", "Root"], ["owner_id", 18], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 00:03:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TUgj29nUiBHe1hnzxNn2' 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", "Root"], ["subdomain", "www"], ["owner_id", 18], ["created_at", Sat, 13 Jul 2013 00:03:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 00:03:13 UTC +00:00], ["id", 15], ["authentication_token", "TUgj29nUiBHe1hnzxNn2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (8.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)   (2.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")  (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)  (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")  (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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.0ms) ROLLBACK  (2.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  (7.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (29.4ms) 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.3ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (10.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$fMMTh8afdFim0dqJ1BaJk.zpoRX6rvWsS5/IexaQoqgiP/BmoRp/u"], ["updated_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00]]  (0.2ms) 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 (2.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qYzcybzKYqpzSpFSD32k' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["id", 1], ["authentication_token", "qYzcybzKYqpzSpFSD32k"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.3ms) CREATE SCHEMA "test1"  (27.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")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) 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")  (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)  (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 ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 21:55:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 40ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 21:55:08 -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 ('test1') 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" = 'user@example.com' LIMIT 1 [["account_id", 1]] Completed 422 Unprocessable Entity in 59ms (Views: 0.4ms | ActiveRecord: 4.7ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (23.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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.2ms) 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", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$uZ2ptGy3vYybddbOgle/gukKjYhuC/qv0ggYF69gA2fituhVPbNi6"], ["updated_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'cpugGqsbTeQTgx581zgd' 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" = 2 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 2], ["created_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["id", 2], ["authentication_token", "cpugGqsbTeQTgx581zgd"]]  (0.2ms) 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", 2], ["created_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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.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")  (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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) 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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 21:55: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.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" = 'user2@example.com' LIMIT 1 [["account_id", 2]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 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 (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", 2]] Completed 201 Created in 48ms (Views: 35.0ms | ActiveRecord: 3.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 21:55:08 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"2", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 21:55:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (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  (9.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (7.9ms) 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", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$q5ps.b.55UkaYhRIfeBx5OPYZUhf75.lr2/ZF0SqkViplS6bHGW7u"], ["updated_at", Sat, 13 Jul 2013 02:55:08 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.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5HDL4BycbxmzoP38jfje' 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", 3], ["created_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["id", 3], ["authentication_token", "5HDL4BycbxmzoP38jfje"]]  (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", 3], ["created_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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.4ms) 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")  (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)  (5.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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)  (4.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.4ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 21:55:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 21:55: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.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", 3]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 3]] 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", 3]] Completed 201 Created in 14ms (Views: 5.2ms | ActiveRecord: 2.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 21:55:08 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (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  (10.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.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", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$heQiopOmda/l57tNyjDrJe4sAEbqW0oSbcNy/t641okeeKmXcGPs6"], ["updated_at", Sat, 13 Jul 2013 02:55: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" = '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", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gbJYHBExTwBioiEemzyv' 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" = 4 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 4], ["created_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:08 UTC +00:00], ["id", 4], ["authentication_token", "gbJYHBExTwBioiEemzyv"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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)   (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")  (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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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.2ms) 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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (2.8ms) 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", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$4.zUMuVABP7hdOaBTX1vb.ye5w5ehhw9cW6S07RgIPq35YVyrO2OC"], ["updated_at", Sat, 13 Jul 2013 02:55:09 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" = 'test5' 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", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5Tc3N67chwtmKaMRbHn5' 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", 5], ["created_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["id", 5], ["authentication_token", "5Tc3N67chwtmKaMRbHn5"]]  (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", 5], ["created_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 21:55: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-12 21:55:09 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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", 4]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (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", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$kx2uhFcQPb1fQbrztnn8tuB6a5e2I69vTM503HmjKu40iJAVIVRoy"], ["updated_at", Sat, 13 Jul 2013 02:55:09 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" = '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", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LhxpqaH3BtbssyvisYJ4' 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", 6], ["created_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["id", 6], ["authentication_token", "LhxpqaH3BtbssyvisYJ4"]]  (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", 6], ["created_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.2ms) 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")  (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)  (5.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 21:55:09 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (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  (10.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (5.7ms) ROLLBACK  (0.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$aZ8rxV4KP.KoCWXGwgXMMesO9QcOIfVrBWmnGpVznQfoHcKFIlUDy"], ["updated_at", Sat, 13 Jul 2013 02:55: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" = '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", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sCCYb8XRwQ6G7b2yN3NZ' 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", 7], ["created_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["id", 7], ["authentication_token", "sCCYb8XRwQ6G7b2yN3NZ"]]  (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", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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)   (1.1ms) 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")  (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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.2ms) 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-12 21:55: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-12 21:55: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 ('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" = 'foo@example.com' LIMIT 1 [["account_id", 7]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.1ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.9ms) ROLLBACK  (1.7ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 21:55:09 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$bF8L95MfFtskoNznPJFfeen.qJv7jD0KobsCUIBDsVRVjdFuKtMnu"], ["updated_at", Sat, 13 Jul 2013 02:55:09 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", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["name", "Testy"], ["owner_id", 8], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'NpER9ipq5HRHzy8VP2dR' 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", "Testy"], ["subdomain", "test"], ["owner_id", 8], ["created_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["id", 8], ["authentication_token", "NpER9ipq5HRHzy8VP2dR"]]  (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", 8], ["created_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 8) LIMIT 1  (0.2ms) 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.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 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", 8]] Completed 201 Created in 78ms (Views: 8.2ms | ActiveRecord: 43.6ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (5.6ms) 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", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$P1..FweQXNZA662.cxluw.SaSfINjEp2OhBFrqvtAgNMgdkNLY6SW"], ["updated_at", Sat, 13 Jul 2013 02:55:09 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", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["name", "Testy"], ["owner_id", 9], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Vo4zWrveyWnqHuQemQo3' 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" = 9 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 9], ["created_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["id", 9], ["authentication_token", "Vo4zWrveyWnqHuQemQo3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 21:55:09 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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 21ms (Views: 0.4ms | ActiveRecord: 0.8ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (20.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.3ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1001]] Completed 201 Created in 5ms (Views: 3.0ms | ActiveRecord: 0.9ms)  (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  (9.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.2ms) 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.2ms | ActiveRecord: 0.0ms)  (0.4ms) 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.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (12.2ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.3ms) 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.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  (9.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (5.4ms) ROLLBACK  (0.3ms) 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", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$ZELVY.KsphnWTdOckN7MUOyXB6P2nSCFPLztBE930tnbfULWlTfRG"], ["updated_at", Sat, 13 Jul 2013 02:55:09 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", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["name", "Test Account"], ["owner_id", 10], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wDzaYZrmUs14q4cMyVyu' 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" = 10 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 10], ["created_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["id", 10], ["authentication_token", "wDzaYZrmUs14q4cMyVyu"]]  (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", 10], ["created_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:09 UTC +00:00], ["user_id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 10]]  (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  (9.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.2ms) ROLLBACK  (0.2ms) BEGIN  (1.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (4.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (9.7ms) SAVEPOINT active_record_1 SQL (13.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$u5K5cqsLqvqtb3yCYcUzcu8WIVWGj6gElj0OSoKGcIHtjKgPJtfey"], ["updated_at", Sat, 13 Jul 2013 02:55:12 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" = 'test8' 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", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 11], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6AAix1sMv6HYXwVwrESw' 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 #8"], ["subdomain", "test8"], ["owner_id", 11], ["created_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["id", 11], ["authentication_token", "6AAix1sMv6HYXwVwrESw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 11], ["created_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["user_id", 11]]  (0.2ms) 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", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$tgSYAaLgg0XbvCWZYEdz8.IO3R.34qz.o8U4krm4f54umb05D9Kdi"], ["updated_at", Sat, 13 Jul 2013 02:55:12 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", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$GbMJVwptVeGcx76UPK112e/SK0.CTr29MKcx3GvmL3X9MafNX.PlW"], ["updated_at", Sat, 13 Jul 2013 02:55: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" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["name", "Root"], ["owner_id", 13], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xJo6waaunqJvTqDFzSc4' 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", "Root"], ["subdomain", "www"], ["owner_id", 13], ["created_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["id", 12], ["authentication_token", "xJo6waaunqJvTqDFzSc4"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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")  (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)   (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")  (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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (6.0ms) 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", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$assfPe//dBbhjBkd8vjP9ea4YGqxbW4a2tMQ4fOJvryV/aJgbqwlS"], ["updated_at", Sat, 13 Jul 2013 02:55:12 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", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 14], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wRFNA7jpD2QihDTTbpWm' 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 #9"], ["subdomain", "test9"], ["owner_id", 14], ["created_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["id", 13], ["authentication_token", "wRFNA7jpD2QihDTTbpWm"]]  (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", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["user_id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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)   (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.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.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.4ms) SELECT version FROM "schema_migrations"  (0.5ms) 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/users" for 127.0.0.1 at 2013-07-12 21:55:12 -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" = 'test9' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.6ms) 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", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$3jOrMI0udz7Rf3mgrLLJaOocLL1PPYf1z6GtN8ndBFR4KrlRfF89y"], ["updated_at", Sat, 13 Jul 2013 02:55:12 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", 13], ["created_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["user_id", 15]]  (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" = 15 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 15]] 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", 15]] Completed 201 Created in 21ms (Views: 5.7ms | ActiveRecord: 4.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/15" for 127.0.0.1 at 2013-07-12 21:55:12 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"15"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 15 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 13]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 15 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 15]] 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", 15]] Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 2.0ms)  (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  (7.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.7ms) ROLLBACK  (0.9ms) 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", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$hyfJaPjkKlERc7AbmDo8de9KyJz1VWUmmAqMntb6Apw2CSeykhwyy"], ["updated_at", Sat, 13 Jul 2013 02:55:12 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" = '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", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 16], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2q2SZaQNjKNCqEMG2PsX' 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", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 16], ["created_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["id", 14], ["authentication_token", "2q2SZaQNjKNCqEMG2PsX"]]  (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", 14], ["created_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["user_id", 16]]  (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")  (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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.7ms) 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/users" for 127.0.0.1 at 2013-07-12 21:55:12 -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" = 'test10' 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", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$zpLYicWWMO3h/p2SNQHWceRbMGmZNs.JsfSdaUJBYvSv.GaA00siC"], ["updated_at", Sat, 13 Jul 2013 02:55:12 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", 14], ["created_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["user_id", 17]]  (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" = 17 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 17]] 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", 17]] Completed 201 Created in 18ms (Views: 5.4ms | 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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/17" for 127.0.0.1 at 2013-07-12 21:55:12 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"17"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.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" = 17 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 14]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 17 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 17]] 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", 17]] Completed 200 OK in 10ms (Views: 4.7ms | ActiveRecord: 1.9ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 17 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" = '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", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 17], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ysXqqk4cCbzAWZDzWbUE' 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", 17], ["created_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["id", 15], ["authentication_token", "ysXqqk4cCbzAWZDzWbUE"]]  (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", 15], ["created_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:12 UTC +00:00], ["user_id", 17]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (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.2ms) 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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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)   (1.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 21:55:13 -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' 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", Sat, 13 Jul 2013 02:55:13 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$Kn/6k/CUk99KvIC57O5DxOdBoJQqbjFO8CACy0CAp0AhnrCL7Y0EG"], ["updated_at", Sat, 13 Jul 2013 02:55:13 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", 15], ["created_at", Sat, 13 Jul 2013 02:55:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 02:55:13 UTC +00:00], ["user_id", 18]]  (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" = 18 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 18]] 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", 18]] Completed 201 Created in 18ms (Views: 5.6ms | ActiveRecord: 3.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/17" for 127.0.0.1 at 2013-07-12 21:55:13 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"17"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 17 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 14]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 17 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 17]] 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", 17]] Completed 200 OK in 14ms (Views: 6.8ms | ActiveRecord: 2.1ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-12 21:55:13 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 17 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", 14]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 16]] 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", 16]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 17]] 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", 17]] Completed 200 OK in 20ms (Views: 13.2ms | ActiveRecord: 4.3ms)  (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  (9.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (5.3ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (12.7ms) 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 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (8.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$I69ce4pQDvsqD3ll1DM7feZXUzitylnb5awgy58M5fk2c2J.XCXoi"], ["updated_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00]] SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SQaAGS4mTvRpGCstszuK' 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" = 1 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["id", 1], ["authentication_token", "SQaAGS4mTvRpGCstszuK"]]  (0.2ms) 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", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 1]]  (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  (9.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (2.4ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.3ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.4ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (7.5ms) ROLLBACK  (0.1ms) 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", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$pFQVW.wKtzhO.hnvbLfQM.moQGWjBPkPJHfCtpX.LDDiFcnmy6q/W"], ["updated_at", Sat, 13 Jul 2013 03:03:22 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" = '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", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 2], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WRcZ4kqp33FcKstZtsxp' 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", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 2], ["created_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["id", 2], ["authentication_token", "WRcZ4kqp33FcKstZtsxp"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.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", 2], ["created_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (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.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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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)   (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.5ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:03:22 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (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  (8.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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.7ms) 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", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$HI1FcPWznx5vpGVGOz88reRI/fmJXlECLcVB3LrhezYf0uonelALC"], ["updated_at", Sat, 13 Jul 2013 03:03:22 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.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 3], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'cRoPcZ1EinjmiBRGr5Zz' 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", 3], ["created_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["id", 3], ["authentication_token", "cRoPcZ1EinjmiBRGr5Zz"]]  (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", 3], ["created_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (17.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)   (3.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")  (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)  (1.0ms) 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")  (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)  (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 ('20130612073709')  (0.2ms) 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-12 22:03:22 -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 40ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:03:22 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 'user@example.com' LIMIT 1 [["account_id", 3]] Completed 422 Unprocessable Entity in 9ms (Views: 0.4ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (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  (8.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.8ms) 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", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$gQTO0hZQ4iySRChtcYiX7uG.DUFbH4QfTHUVeS1yXCdL40TmZ6hha"], ["updated_at", Sat, 13 Jul 2013 03:03:22 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 (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", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 4], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nZuEQq8qhyfyqRSzArKt' 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" = 4 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 4], ["created_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["id", 4], ["authentication_token", "nZuEQq8qhyfyqRSzArKt"]]  (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", 4], ["created_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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)   (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")  (9.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)  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:03:22 -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 (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" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 4]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] 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", 4]] Completed 201 Created in 44ms (Views: 30.4ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:03:22 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"4", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:03:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (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  (9.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.9ms) 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", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$3EBD4VnXsgCdqITDRm4RXu2fXP5Tg205FhCD6hVwypX2657mQyJa2"], ["updated_at", Sat, 13 Jul 2013 03:03:22 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", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 5], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'bpsxdbjdoiQRW5ANncWN' 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 #4"], ["subdomain", "test4"], ["owner_id", 5], ["created_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:22 UTC +00:00], ["id", 5], ["authentication_token", "bpsxdbjdoiQRW5ANncWN"]]  (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", 5], ["created_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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.2ms) 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")  (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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.9ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$eBiETXXFSRjDishcFV73qO0yn8xd/PHUozb/ohK2NggRr4nWTTu0a"], ["updated_at", Sat, 13 Jul 2013 03:03:23 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" = '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", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 6], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Bis1iRgHzxfp1YpYCMmM' 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", 6], ["created_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["id", 6], ["authentication_token", "Bis1iRgHzxfp1YpYCMmM"]]  (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", 6], ["created_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:03:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:03: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.6ms) 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]] 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.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  (9.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (6.4ms) 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", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$yla.zY//Xl6yFKsaOSQyPOaBGy3sYp2GfGDLCq3G9arrjZvqkJi3W"], ["updated_at", Sat, 13 Jul 2013 03:03:23 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.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 7], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hZHEfwP5goAJPz3XHGJR' 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 #6"], ["subdomain", "test6"], ["owner_id", 7], ["created_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["id", 7], ["authentication_token", "hZHEfwP5goAJPz3XHGJR"]]  (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", 7], ["created_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["user_id", 7]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.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")  (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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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)   (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"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:03:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:03:23 -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", 7]] 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  (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  (9.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (7.5ms) 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", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$M3TK1Y9y.G8VDN6I2Orjpe4fUNjhTUoEP5ddzm2n7oBFPAUzTCkVq"], ["updated_at", Sat, 13 Jul 2013 03:03:23 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.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 8], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'bkkV9QnTZx1utE332Hzd' 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 #7"], ["subdomain", "test7"], ["owner_id", 8], ["created_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["id", 8], ["authentication_token", "bkkV9QnTZx1utE332Hzd"]]  (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", 8], ["created_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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.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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.3ms) 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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.5ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-12 22:03:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:03:23 -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 ('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" = 'user7@example.com' LIMIT 1 [["account_id", 8]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 8]] 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", 8]] Completed 201 Created in 16ms (Views: 6.1ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:03:23 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) 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.3ms)  (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  (9.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.8ms) ROLLBACK  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 22:03: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}  (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", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$0HhzwOZHGzIIFzI6wcuSpOAevXRsg3ZWAJvob2uf3bdvgQD/ZIGUm"], ["updated_at", Sat, 13 Jul 2013 03:03:23 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", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["name", "Testy"], ["owner_id", 9], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9G1XuBoG6yBFih3JxMz9' 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", "Testy"], ["subdomain", "test"], ["owner_id", 9], ["created_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["id", 9], ["authentication_token", "9G1XuBoG6yBFih3JxMz9"]]  (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", 9], ["created_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["user_id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 9) LIMIT 1  (0.2ms) CREATE SCHEMA "test"  (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.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")  (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)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 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", 9]] Completed 201 Created in 79ms (Views: 7.7ms | ActiveRecord: 39.6ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (7.2ms) 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", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$1h6IA4HjR8Gcg/S0b3p7Z.8EuB4S8Ud0fpPh2rk/SULn6va3rEezy"], ["updated_at", Sat, 13 Jul 2013 03:03:23 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", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["name", "Testy"], ["owner_id", 10], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sALMYr7PdtqVSWuvdVKK' 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", "Testy"], ["subdomain", "test"], ["owner_id", 10], ["created_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:23 UTC +00:00], ["id", 10], ["authentication_token", "sALMYr7PdtqVSWuvdVKK"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 22:03: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}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 20ms (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.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  (20.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (13.0ms) ROLLBACK  (0.2ms) BEGIN  (1.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$2IMKeaGM4mumCQw80Cqvkew2ocKhqwCdqM50AphsM9RzyHh2tfOqW"], ["updated_at", Sat, 13 Jul 2013 03:03:26 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.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 11], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zs3S9k2Juyb8H5VsvyKo' 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 #8"], ["subdomain", "test8"], ["owner_id", 11], ["created_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["id", 11], ["authentication_token", "zs3S9k2Juyb8H5VsvyKo"]]  (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", 11], ["created_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["user_id", 11]]  (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", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$Mm3wmbyNpi0B9KUPhu88dugbtg6pLGd/KnQyIpgaYvrkW8isMcXHW"], ["updated_at", Sat, 13 Jul 2013 03:03:26 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", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$vwaWxAAWvXbfBh8ufncwyuXrX7th2mlF6eOerB5SK2vIe3Mt12wYu"], ["updated_at", Sat, 13 Jul 2013 03:03:26 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", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["name", "Root"], ["owner_id", 13], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'NQ4m6QPYdxpeMDExGAzv' 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" = 12 [["name", "Root"], ["subdomain", "www"], ["owner_id", 13], ["created_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["id", 12], ["authentication_token", "NQ4m6QPYdxpeMDExGAzv"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www"  (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.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.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.3ms) 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")  (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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (9.6ms) 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", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$04KfA4xDRmAWXU7Tn5NSzOxKLy5bCZKzGHCTEA5.UmrPqwDrG7KiG"], ["updated_at", Sat, 13 Jul 2013 03:03:26 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.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 14], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SjVANW8VpZkZV9N9SVsG' 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" = 13 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 14], ["created_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["id", 13], ["authentication_token", "SjVANW8VpZkZV9N9SVsG"]]  (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", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["user_id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (60.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)  (5.1ms) 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")  (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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.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 ('20130612073709')  (0.2ms) 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-12 22:03:26 -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" = 'test9' 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", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$q5dWR4JnOAi2jYGkCwBC.uKWeiistCU3s0gVRrxyOzlwFDnozkcUu"], ["updated_at", Sat, 13 Jul 2013 03:03:26 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", 13], ["created_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["user_id", 15]]  (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" = 15 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 15]] 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", 15]] Completed 201 Created in 20ms (Views: 5.7ms | 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/15" for 127.0.0.1 at 2013-07-12 22:03:26 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"15"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 15 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 13]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 15 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 15]] 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", 15]] Completed 200 OK in 11ms (Views: 4.9ms | ActiveRecord: 2.1ms)  (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  (8.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (5.4ms) 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", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$Y..vBf0RzNr.lbd1yki74ujXZC2MliMdM.L6n3YujN1QciUZqMrRG"], ["updated_at", Sat, 13 Jul 2013 03:03:26 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" = 'test10' 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", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 16], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YPLuhDezyQTrKpyQq7yw' 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", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 16], ["created_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["id", 14], ["authentication_token", "YPLuhDezyQTrKpyQq7yw"]]  (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", 14], ["created_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["user_id", 16]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (49.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)  (12.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)  (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 ('20130612073709')  (0.2ms) 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-12 22:03:26 -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" = 'test10' 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", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$sAtMqyLcvvWh6iyYl3c9seE/ZsPgX01nCWwsl/vKKdax4oC6P/IBG"], ["updated_at", Sat, 13 Jul 2013 03:03:26 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", 14], ["created_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["user_id", 17]]  (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" = 17 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 17]] 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", 17]] Completed 201 Created in 18ms (Views: 5.3ms | 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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/17" for 127.0.0.1 at 2013-07-12 22:03:26 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"17"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.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" = 17 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 14]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 17 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 17]] 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", 17]] Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 2.0ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 17 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 17], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eWZKseJMVWJzFR5YKU4G' 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", 17], ["created_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["id", 15], ["authentication_token", "eWZKseJMVWJzFR5YKU4G"]]  (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", 15], ["created_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:26 UTC +00:00], ["user_id", 17]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (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.1ms) 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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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)   (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.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) 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-12 22:03:27 -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" = '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", Sat, 13 Jul 2013 03:03:27 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$v9ZXJw8id6kM8jLXV99NNuT.bqiEPYZtt5os/ZoeGaC/f1besrtQG"], ["updated_at", Sat, 13 Jul 2013 03:03:27 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", 15], ["created_at", Sat, 13 Jul 2013 03:03:27 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:03:27 UTC +00:00], ["user_id", 18]]  (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" = 18 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 18]] 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", 18]] Completed 201 Created in 18ms (Views: 5.3ms | ActiveRecord: 3.7ms) 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/17" for 127.0.0.1 at 2013-07-12 22:03:27 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"17"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 17 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 14]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 17 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 17]] 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", 17]] Completed 200 OK in 12ms (Views: 6.7ms | ActiveRecord: 1.9ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-12 22:03:27 -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" = 'test10' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 17 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", 14]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 16]] 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", 16]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 17]] 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", 17]] Completed 200 OK in 17ms (Views: 12.0ms | ActiveRecord: 2.7ms)  (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  (9.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (6.7ms) ROLLBACK  (0.2ms) 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 5ms (Views: 3.1ms | ActiveRecord: 1.2ms)  (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  (9.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (9.1ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.1ms) ROLLBACK  (1.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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.9ms) 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 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 22:40:56 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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 (10.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$K1UF3yXVtBl/oZRyJx3g..3ywJmdL.sn6.0HroALpb4CUJh2haXpy"], ["updated_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00]] SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dxEuuuMkEuUeKZjubCN8' 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" = 1 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["id", 1], ["authentication_token", "dxEuuuMkEuUeKZjubCN8"]]  (0.2ms) 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", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1 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  (0.4ms) 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.3ms) 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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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.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.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') Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 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 [["account_id", 1]] Completed 201 Created in 391ms (Views: 58.6ms | ActiveRecord: 60.9ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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.1ms) 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.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$74UWIwlOk1jqlMrakuWtLuw6dW4bLPkCaxnfUFX9AsebUasP5PwKa"], ["updated_at", Sat, 13 Jul 2013 03:40:57 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", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'z5mn7nDUiY6wdCAGsgre' 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", "Testy"], ["subdomain", "test"], ["owner_id", 2], ["created_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["id", 2], ["authentication_token", "z5mn7nDUiY6wdCAGsgre"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 22:40: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.4ms) 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 28ms (Views: 0.4ms | ActiveRecord: 0.8ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.1ms) ROLLBACK  (0.9ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Completed 500 Internal Server Error in 0ms  (0.4ms) 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.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (13.1ms) ROLLBACK  (0.3ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1001]] Completed 201 Created in 5ms (Views: 2.9ms | ActiveRecord: 0.9ms)  (0.4ms) 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.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (11.0ms) ROLLBACK  (0.4ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.4ms) ROLLBACK  (0.8ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (4.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$MhQeP7Ba6ScXTR6zhvZEj.Lkbm34K8Dcy086LKOsCITB5huC91DSS"], ["updated_at", Sat, 13 Jul 2013 03:40: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" = '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", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 3], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4qjvwqRZSiMPp3K6JRcv' 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 #1"], ["subdomain", "test1"], ["owner_id", 3], ["created_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["id", 3], ["authentication_token", "4qjvwqRZSiMPp3K6JRcv"]]  (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", 3], ["created_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["user_id", 3]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test1"  (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.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")  (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)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) 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.4ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:40:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:40: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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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", 3]] Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 1.5ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.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", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$qjFi6eQWqZ50.49ntUiUDuq.Qzh08Q2aniRDv4pIOEtXSwxu.jw6u"], ["updated_at", Sat, 13 Jul 2013 03:40: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", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 4], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7DNyia7zzbvyeNphPV9o' 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" = 4 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 4], ["created_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["id", 4], ["authentication_token", "7DNyia7zzbvyeNphPV9o"]]  (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", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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)   (2.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.8ms) 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)  (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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$9louFIf4G7E2omQZm3jiN.W1Xc0XHyrkBPm5Ajb9f4e7.pu9rQN4e"], ["updated_at", Sat, 13 Jul 2013 03:40: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" = 'test3' 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", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 5], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Y7zqDWhhRH5YXupzE9Q3' 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", 5], ["created_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["id", 5], ["authentication_token", "Y7zqDWhhRH5YXupzE9Q3"]]  (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", 5], ["created_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["user_id", 5]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:40:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:40:57 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user3@example.com' LIMIT 1 [["account_id", 4]] 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.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  (10.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (22.3ms) ROLLBACK  (2.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", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$rBwuIvVUSA4HfBHB6.aaAup3fIQuCIMSMCKOTAfSGvrFBOb4REHOi"], ["updated_at", Sat, 13 Jul 2013 03:40: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" = 'test4' 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", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 6], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fye5jLd8LzDruKqErnkv' 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 #4"], ["subdomain", "test4"], ["owner_id", 6], ["created_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["id", 6], ["authentication_token", "fye5jLd8LzDruKqErnkv"]]  (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", 6], ["created_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:57 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (8.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)  (4.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:40:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:40:58 -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 ('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" = 'foo@example.com' LIMIT 1 [["account_id", 6]] 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.4ms) 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  (9.3ms) 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  (9.5ms) 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", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$j3juNYAdyDSuG0a9gI/6aObBPb0U/6MZtCloXPjmL2AfU1eyElIlS"], ["updated_at", Sat, 13 Jul 2013 03:40: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" = 'test5' 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", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 7], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LjeVXzueohfsn6tE5Trw' 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", 7], ["created_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["id", 7], ["authentication_token", "LjeVXzueohfsn6tE5Trw"]]  (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", 7], ["created_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (8.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.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:40:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:40:58 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.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" = 'user5@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" = 7 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 7]] 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", 7]] Completed 201 Created in 89ms (Views: 79.4ms | ActiveRecord: 3.2ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:40:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) 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.3ms)  (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  (9.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (5.6ms) 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", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$ps0hzFRkPyNDDK6ZMxWgmepwhfaLnecv080iK7S47kai2VCjngqj6"], ["updated_at", Sat, 13 Jul 2013 03:40: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" = '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", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 8], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Mj4xx91oWfqZBZ9RKU1n' 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", 8], ["created_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["id", 8], ["authentication_token", "Mj4xx91oWfqZBZ9RKU1n"]]  (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", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["user_id", 8]]  (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")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) 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")  (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)  (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 ('20130612073709')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:40: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') 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", 8]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 8]] 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", 8]] Completed 201 Created in 14ms (Views: 5.2ms | ActiveRecord: 2.6ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:40:58 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"8", "default"=>:json} Cadenero::User Load (0.3ms) 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.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:40:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (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  (9.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.5ms) 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", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$5PANRLnFBPA8InkGP9BSKOqtYaP1gTC2BjNucZOkle/5wXt3Io/lS"], ["updated_at", Sat, 13 Jul 2013 03:40:58 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" = '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", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 9], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hSBHekqDukRVwXT3kpRd' 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", 9], ["created_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["id", 9], ["authentication_token", "hSBHekqDukRVwXT3kpRd"]]  (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", 9], ["created_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["user_id", 9]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (10.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)   (6.3ms) 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)  (1.2ms) 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")  (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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:40:58 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (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  (9.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.3ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (7.0ms) 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.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  (11.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.3ms) 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 (2.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$Uo39ojv1nAa5/uKaTs7Hqem6fHdUlXA2EoJLIwUUd.E8Gpc9gUnNW"], ["updated_at", Sat, 13 Jul 2013 03:40:58 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", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["name", "Test Account"], ["owner_id", 10], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'bRsv4iJDs3bj4dCr7x9c' 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" = 10 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 10], ["created_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["id", 10], ["authentication_token", "bRsv4iJDs3bj4dCr7x9c"]]  (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", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["user_id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 10]]  (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  (9.9ms) 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  (4.1ms) 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", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$k3JuRB8RKW9c1oAEckEl0u8y/v83qaLUh4Fp0NUgzG3JjkDM5IG.a"], ["updated_at", Sat, 13 Jul 2013 03:40: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" = 'test8' LIMIT 1 SQL (2.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 11], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'jGjCbyzJXXgEoegJwAeG' 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 #8"], ["subdomain", "test8"], ["owner_id", 11], ["created_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["id", 11], ["authentication_token", "jGjCbyzJXXgEoegJwAeG"]]  (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", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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.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)  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) 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 ('20130612073709')  (0.2ms) 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-12 22:40:58 -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" = 'test8' 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", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$45FhkTvAvcRe/5aboztyKevZvx96eKkXv/xW84y.xW8emtc1hDdEC"], ["updated_at", Sat, 13 Jul 2013 03:40:58 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", 11], ["created_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["user_id", 12]]  (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" = 12 LIMIT 1 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.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", 12]] Completed 201 Created in 20ms (Views: 5.4ms | ActiveRecord: 3.6ms) 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/12" for 127.0.0.1 at 2013-07-12 22:40:58 -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" = '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"."id" = 12 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 11]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 12 LIMIT 1 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.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", 12]] Completed 200 OK in 10ms (Views: 4.6ms | ActiveRecord: 2.0ms)  (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  (9.7ms) 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  (4.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", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$RiSMWjbSM1egxPffLKJ7Qem7tr08XrKmLuUvMwShd.6ECulWlWuWe"], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00]]  (0.3ms) 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 (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", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 13], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'si3up6GxfhjpygV5uG1H' 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" = 12 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 13], ["created_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["id", 12], ["authentication_token", "si3up6GxfhjpygV5uG1H"]]  (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", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["user_id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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)  (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")  (6.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)   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)   (3.2ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 22:40:58 -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" = 'test9' 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", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$BOl.EGYqeCRdFrV3LGRm5utQKrzT3UwoxoeQKWQVOnNLMCBukiqxa"], ["updated_at", Sat, 13 Jul 2013 03:40:58 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", 12], ["created_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["user_id", 14]]  (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" = 14 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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", 14]] Completed 201 Created in 20ms (Views: 5.7ms | ActiveRecord: 3.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/14" for 127.0.0.1 at 2013-07-12 22:40:58 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"14"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 14 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 12]] Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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", 14]] Completed 200 OK in 11ms (Views: 5.5ms | ActiveRecord: 1.9ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 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" = 'test10' 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", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 14], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WRy5hs6QxYdhzvFtRdfy' 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 #10"], ["subdomain", "test10"], ["owner_id", 14], ["created_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["id", 13], ["authentication_token", "WRy5hs6QxYdhzvFtRdfy"]]  (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", 13], ["created_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:58 UTC +00:00], ["user_id", 14]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.2ms) 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-12 22:40:58 -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" = 'test10' ORDER BY "public"."cadenero_accounts"."id" ASC 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", Sat, 13 Jul 2013 03:40:59 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$IbIRjr5oMI3L9GQxnPGgOuB5UMPHEP17TepAGlKeKFUaSySVe5LRG"], ["updated_at", Sat, 13 Jul 2013 03:40: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", 13], ["created_at", Sat, 13 Jul 2013 03:40:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:40:59 UTC +00:00], ["user_id", 15]]  (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" = 15 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 15]] 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", 15]] Completed 201 Created in 18ms (Views: 5.3ms | ActiveRecord: 3.7ms) 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/14" for 127.0.0.1 at 2013-07-12 22:40:59 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"14"} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = $1 AND "public"."cadenero_users"."id" = 14 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 12]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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", 14]] Completed 200 OK in 13ms (Views: 6.7ms | ActiveRecord: 2.4ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-12 22:40:59 -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" = 'test9' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 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", 12]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 13]] 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", 13]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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", 14]] Completed 200 OK in 17ms (Views: 11.9ms | ActiveRecord: 2.8ms)  (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  (9.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (9.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", Sat, 13 Jul 2013 03:41:02 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$.iUXNFSOQ/bBnf70DegZmOvC/.BET0UFk/7/VPut/WAX/4jUgQ7k."], ["updated_at", Sat, 13 Jul 2013 03:41:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' 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", Sat, 13 Jul 2013 03:41:02 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 16], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 03:41:02 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'HxboWtSEzAv5upytXNzL' 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", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 16], ["created_at", Sat, 13 Jul 2013 03:41:02 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:41:02 UTC +00:00], ["id", 14], ["authentication_token", "HxboWtSEzAv5upytXNzL"]]  (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", 14], ["created_at", Sat, 13 Jul 2013 03:41:02 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:41:02 UTC +00:00], ["user_id", 16]]  (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", Sat, 13 Jul 2013 03:41:02 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$ucLYODPqpsP7Vypk4zvQWO4aKAeGbMHgvEeEMuxES5MrFBkjbQHCG"], ["updated_at", Sat, 13 Jul 2013 03:41:02 UTC +00:00]]  (0.2ms) 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", Sat, 13 Jul 2013 03:41:02 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$WmXEwQxyBfskyrgHSpyde.Cpi0fcMq7gPNYHGi7HHLPuhl7JBkHWS"], ["updated_at", Sat, 13 Jul 2013 03:41:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:41:02 UTC +00:00], ["name", "Root"], ["owner_id", 18], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 03:41:02 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JWs7cPwfZs2NMkvwqRur' 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", "Root"], ["subdomain", "www"], ["owner_id", 18], ["created_at", Sat, 13 Jul 2013 03:41:02 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:41:02 UTC +00:00], ["id", 15], ["authentication_token", "JWs7cPwfZs2NMkvwqRur"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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)  (1.1ms) 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.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)   (0.9ms) 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")  (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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (6.3ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.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  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (6.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", 1001]] Completed 201 Created in 117ms (Views: 95.1ms | ActiveRecord: 10.2ms)  (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  (9.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (6.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  (2.7ms) ROLLBACK  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.4ms) 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  (10.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.0ms) 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 (3.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$sJtqUrTy//GUCzzFfD5k9OAiA8CNxHEk8mS8Ad3k/iiEAZFgiMeGO"], ["updated_at", Sat, 13 Jul 2013 03:45:31 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 (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", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xqaqHHdh2sMatxL3RGys' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (2.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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["id", 1], ["authentication_token", "xqaqHHdh2sMatxL3RGys"]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["user_id", 1]]  (0.2ms) 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", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$QLn5XO.jhDJE0giigAR1aecoo.8fsxp5Z8OjD/7NZbgOZO62ixbM."], ["updated_at", Sat, 13 Jul 2013 03:45:31 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", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$h/beKMkWP3BZ2HlXb1/yZOHvrRZ6icnSXsldmNhalnMcGNzxXJyCO"], ["updated_at", Sat, 13 Jul 2013 03:45:31 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.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ougNABzpS65x42vCPppg' 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", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["id", 2], ["authentication_token", "ougNABzpS65x42vCPppg"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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)  (1.8ms) 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)   (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")  (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.9ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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.3ms) 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", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$h6r8MoJzEFjdjwYqM51Nfuf32BroCtuCz1DtvbKoF/Uz2HSQzGRku"], ["updated_at", Sat, 13 Jul 2013 03:45:31 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.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 4], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yzeDjHXx68VaZem1JusC' 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 #2"], ["subdomain", "test2"], ["owner_id", 4], ["created_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["id", 3], ["authentication_token", "yzeDjHXx68VaZem1JusC"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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", 3], ["created_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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")  (1.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)  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.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)   (1.2ms) 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:45:31 -0500 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.4ms) 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  (9.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.0ms) ROLLBACK  (1.5ms) 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", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$hOpNxGNQQv8loDsziR3DAu7ps0SSCDOAIVpH.Nth5MI8xuaRL6QFa"], ["updated_at", Sat, 13 Jul 2013 03:45:31 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" = 'test3' LIMIT 1 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", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 5], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4cKRXQ6xxfsq4wyzBxbH' 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" = 4 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 5], ["created_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["id", 4], ["authentication_token", "4cKRXQ6xxfsq4wyzBxbH"]]  (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", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["user_id", 5]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) CREATE SCHEMA "test3"  (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.0ms) 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")  (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)  (2.3ms) 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")  (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.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 ('20130612073709')  (0.2ms) 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-12 22:45:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 42ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:45:31 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') 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", 4]] Completed 422 Unprocessable Entity in 11ms (Views: 1.0ms | ActiveRecord: 1.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  (1.0ms) 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  (8.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.6ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$udgQaVVV1.ct2ppPbDtGgOkfoltXbnMwwHrP/PWFG.K8piVCDOTKa"], ["updated_at", Sat, 13 Jul 2013 03:45:31 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", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 6], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sEZb63NZSBkMsnRidj3o' 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" = 5 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 6], ["created_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["id", 5], ["authentication_token", "sEZb63NZSBkMsnRidj3o"]]  (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", 5], ["created_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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)   (3.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.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)  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.9ms) 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.5ms) 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 (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$TSAWTwWlsYEElNKKBNfFmuONrkcJtXTnCZHo./WYJFWJUGHXrX33y"], ["updated_at", Sat, 13 Jul 2013 03:45:31 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" = '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", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 7], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hfzsrzrhD64JnCUivGqq' 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" = 6 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 7], ["created_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["id", 6], ["authentication_token", "hfzsrzrhD64JnCUivGqq"]]  (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", 6], ["created_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:45:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:45:31 -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 ('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" = 'user6@example.com' LIMIT 1 [["account_id", 5]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.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  (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  (8.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.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", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$n0eVcyu8Xk/w3Aw03ooLuu1oD.Oja/WTIPsfKkOYfdySK8OlPb7ZK"], ["updated_at", Sat, 13 Jul 2013 03:45:31 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.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 8], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '45ysj996rf83eyApUPjk' 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" = 7 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 8], ["created_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["id", 7], ["authentication_token", "45ysj996rf83eyApUPjk"]]  (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", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.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)  (1.2ms) 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")  (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.8ms) 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.3ms) 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') Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:45:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:45:31 -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 ('test6') 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", 7]] 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.8ms) 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", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$QwM4gMH4Qu4DBeRPdzhS3epRWLg0fIV5IKOQTR.a5IyKikoLpjR0S"], ["updated_at", Sat, 13 Jul 2013 03:45:31 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" = '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", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 9], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Nr7gSpyqf1TSc1xjmpXa' 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 #7"], ["subdomain", "test7"], ["owner_id", 9], ["created_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["id", 8], ["authentication_token", "Nr7gSpyqf1TSc1xjmpXa"]]  (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", 8], ["created_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:31 UTC +00:00], ["user_id", 9]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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)   (0.9ms) 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.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)  (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:45:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:45:31 -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 ('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" = 'user8@example.com' LIMIT 1 [["account_id", 8]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] 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", 9]] Completed 201 Created in 92ms (Views: 78.3ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:45:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) 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.3ms)  (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  (9.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (5.8ms) 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", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$p0cidVQT4WrY7Y/Np5cq1uySlRkSSpVRYTaP9KGcDcZ6CauHTS23y"], ["updated_at", Sat, 13 Jul 2013 03:45:32 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", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 10], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wkKpWd8xHhwwxVB5xBT8' 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", 10], ["created_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["id", 9], ["authentication_token", "wkKpWd8xHhwwxVB5xBT8"]]  (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", 9], ["created_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["user_id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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" ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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)  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.5ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:45:32 -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 ('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" = 'user9@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" = 10 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 10]] 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", 10]] Completed 201 Created in 16ms (Views: 6.4ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:45:32 -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-12 22:45:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (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  (10.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (6.6ms) ROLLBACK  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Completed 500 Internal Server Error in 0ms  (0.4ms) 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  (10.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.0ms) 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", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$jxmDUzuVAJ8z607sfE51p.k3lKoBCPJKq6jFEzmUBDG6dCirHw.vG"], ["updated_at", Sat, 13 Jul 2013 03:45:32 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.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 11], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ytJxDud88rm9R5eAszcK' 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 #9"], ["subdomain", "test9"], ["owner_id", 11], ["created_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["id", 10], ["authentication_token", "ytJxDud88rm9R5eAszcK"]]  (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", 10], ["created_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (9.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.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.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)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) 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 ('20130612073709')  (0.2ms) 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-12 22:45:32 -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" = 'test9' 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", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$3Q6mKh93VQTbOsanzzlZBe/Le2IduUHnuOozjdk7AOyDJDicT7D/e"], ["updated_at", Sat, 13 Jul 2013 03:45:32 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", 10], ["created_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["user_id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 12 LIMIT 1 Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 12]] 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", 12]] Completed 201 Created in 22ms (Views: 7.6ms | ActiveRecord: 4.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/12" for 127.0.0.1 at 2013-07-12 22:45:32 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"12"} env['warden'].authenticated?(:user): true Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (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"."id" = 12 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 10]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 12 LIMIT 1 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 13ms (Views: 5.8ms | ActiveRecord: 2.5ms)  (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  (13.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (22.1ms) ROLLBACK  (0.2ms) 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", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$K2GxiWjfB5lGltM5QZ5FRuBZeVkTzqPNeOKpuANx19pRIml1EuHKK"], ["updated_at", Sat, 13 Jul 2013 03:45:32 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" = '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", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 13], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tbHDyEz8mXo3zFhKdDq3' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (1.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" = 11 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 13], ["created_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["id", 11], ["authentication_token", "tbHDyEz8mXo3zFhKdDq3"]]  (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", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["user_id", 13]]  (2.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (19.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.5ms) 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")  (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)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (19.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)  (2.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 22:45:32 -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" = 'test10' 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", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$DbdXijshY8IqfY9GaPh.De466OOs1lmLKpI3EMaPXZ7xVXdbUooU."], ["updated_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00]] SQL (1.4ms) 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", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["user_id", 14]]  (11.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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", 14]] Completed 201 Created in 35ms (Views: 7.0ms | ActiveRecord: 15.5ms) 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/14" for 127.0.0.1 at 2013-07-12 22:45:32 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"14"} env['warden'].authenticated?(:user): true Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (10.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"."id" = 14 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 11]] Cadenero::User Load (3.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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", 14]] Completed 200 OK in 31ms (Views: 8.7ms | ActiveRecord: 16.9ms) Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 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" = 'test11' LIMIT 1 SQL (5.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 14], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JzPAtB4c2UWnyahzAke5' 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 #11"], ["subdomain", "test11"], ["owner_id", 14], ["created_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["id", 12], ["authentication_token", "JzPAtB4c2UWnyahzAke5"]]  (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", 12], ["created_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["user_id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test11"  (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" ("authentication_token")  (7.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)  (16.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")  (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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (5.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (11.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.8ms) 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-12 22:45:32 -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 (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$hOoL7rYIaK0SGqF75feoVeuoHk8XQZqMRjmJiQHy4u9BVX7ZYFP6."], ["updated_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00]] SQL (3.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", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["user_id", 15]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 15 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 15]] 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", 15]] Completed 201 Created in 30ms (Views: 8.6ms | ActiveRecord: 7.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/14" for 127.0.0.1 at 2013-07-12 22:45:32 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"14"} env['warden'].authenticated?(:user): true Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (7.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" = $1 AND "public"."cadenero_users"."id" = 14 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 11]] Cadenero::User Load (4.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 LIMIT 1 Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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", 14]] Completed 200 OK in 28ms (Views: 8.2ms | ActiveRecord: 15.8ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-12 22:45:32 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 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", 11]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 13]] 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", 13]] Cadenero::V1::Account Load (9.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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" = $1 [["user_id", 14]] Completed 200 OK in 31ms (Views: 14.1ms | ActiveRecord: 14.5ms)  (1.0ms) 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.9ms) 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  (14.3ms) ROLLBACK  (6.6ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 22:45:32 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 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", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$qZmjSEGnCLsLXklrTHhBSO36.gtkANN0u1vHP5m8shg/nDzJhBDMa"], ["updated_at", Sat, 13 Jul 2013 03:45:32 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", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["name", "Testy"], ["owner_id", 16], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Ew81ZaCJJRr5s8phxpRc' 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" = 13 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 16], ["created_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["id", 13], ["authentication_token", "Ew81ZaCJJRr5s8phxpRc"]]  (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", 13], ["created_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:32 UTC +00:00], ["user_id", 16]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 13) LIMIT 1  (11.7ms) 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.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (10.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.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)  (10.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) 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') Cadenero::User Load (2.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 16 LIMIT 1 Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 13]] Completed 201 Created in 157ms (Views: 6.6ms | ActiveRecord: 102.3ms) Cadenero::V1::Account Load (1.7ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.5ms) ROLLBACK  (3.4ms) BEGIN  (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 (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:45:33 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$o7uGovx6vXDTjj.Q.pmAuuxPJx.AIvpicDAwXqLWKXH1x8ofUS6WK"], ["updated_at", Sat, 13 Jul 2013 03:45:33 UTC +00:00]] SQL (7.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:45:33 UTC +00:00], ["name", "Testy"], ["owner_id", 17], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 03:45:33 UTC +00:00]] Cadenero::V1::Account Load (4.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'bxfnaHTegczEgvi1SxSy' 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" = 14 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 17], ["created_at", Sat, 13 Jul 2013 03:45:33 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:33 UTC +00:00], ["id", 14], ["authentication_token", "bxfnaHTegczEgvi1SxSy"]]  (10.4ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 22:45:33 -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.7ms) 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  (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 84ms (Views: 0.3ms | ActiveRecord: 1.8ms) Cadenero::V1::Account Load (2.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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (19.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.8ms) ROLLBACK  (3.5ms) BEGIN Cadenero::V1::Account Exists (1.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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (32.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (10.2ms) ROLLBACK  (1.3ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' 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", Sat, 13 Jul 2013 03:45:33 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$07P2HGHmJOoSSrBXOszi4uqCGUsa1EZKJX9KotQ32OqMDBrAfnwXC"], ["updated_at", Sat, 13 Jul 2013 03:45:33 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", Sat, 13 Jul 2013 03:45:33 UTC +00:00], ["name", "Test Account"], ["owner_id", 18], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 03:45:33 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'uDWBqqQy9t1rKmHWzs7p' 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"], ["subdomain", "test"], ["owner_id", 18], ["created_at", Sat, 13 Jul 2013 03:45:33 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:33 UTC +00:00], ["id", 15], ["authentication_token", "uDWBqqQy9t1rKmHWzs7p"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", 15], ["created_at", Sat, 13 Jul 2013 03:45:33 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:45:33 UTC +00:00], ["user_id", 18]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (2.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 15]]  (3.4ms) 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.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.3ms) ROLLBACK  (1.1ms) BEGIN Cadenero::V1::Account Exists (1.4ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (36.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.1ms) 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  (4.7ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.9ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.3ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.7ms) 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 (8.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:46:06 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$3CtMtGxBHvXCA/UIpVAst.o7MLWP.yjGzZKluK3xNyXzIyWiNjlAi"], ["updated_at", Sat, 13 Jul 2013 03:46:06 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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" = 'test1' LIMIT 1 SQL (1.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:46:06 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 03:46:06 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vxrznw9iKUPRP1tGxFRs' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 03:46:06 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:06 UTC +00:00], ["id", 1], ["authentication_token", "vxrznw9iKUPRP1tGxFRs"]]  (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", Sat, 13 Jul 2013 03:46:06 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:06 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.3ms) 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)  (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")  (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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:46:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 40ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:46:07 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 [["account_id", 1]] Completed 422 Unprocessable Entity in 14ms (Views: 0.4ms | ActiveRecord: 2.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  (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  (8.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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.2ms) BEGIN  (0.2ms) 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", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$y8QqgX6Ch/jGCCA.Tm15G.SxBWhRAhUnRct0K4YLO2CmCxe6Lh6Ze"], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pHquRfz7ejNgBYEpHZpd' 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", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 2], ["created_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["id", 2], ["authentication_token", "pHquRfz7ejNgBYEpHZpd"]]  (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", 2], ["created_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test2"  (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")  (8.3ms) 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)  (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")  (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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:46:07 -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.5ms) 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" = 'user2@example.com' LIMIT 1 [["account_id", 2]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 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 (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", 2]] Completed 201 Created in 45ms (Views: 31.9ms | ActiveRecord: 3.2ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:46:07 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"2", "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:46:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.4ms) 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  (9.7ms) 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  (9.4ms) ROLLBACK  (0.2ms) BEGIN  (1.4ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$DyCYGa7N8hurptfYa6b.0Ou6PuEAjO8O7LdpZ./r/J/zyDfA2bp5i"], ["updated_at", Sat, 13 Jul 2013 03:46:07 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", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'To4ELaMwUc5LSNKxfP8b' 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", 3], ["created_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["id", 3], ["authentication_token", "To4ELaMwUc5LSNKxfP8b"]]  (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", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (6.2ms) 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.5ms) 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")  (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.7ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:46:07 -0500 Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (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  (9.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (5.9ms) 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", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$ANSna2DH.VJOsPVJXczV5eRDtB2aiiQjQo4ivKFLElP7YzQb1fAC."], ["updated_at", Sat, 13 Jul 2013 03:46:07 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" = '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", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GYKBbz3p5Ypb1xsncAwd' 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" = 4 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 4], ["created_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["id", 4], ["authentication_token", "GYKBbz3p5Ypb1xsncAwd"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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)   (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.7ms) 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)   (4.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 ('20130612073709')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:46:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:46:07 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (3.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') 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" = 'foo@example.com' LIMIT 1 [["account_id", 4]] Completed 422 Unprocessable Entity in 9ms (Views: 0.3ms | ActiveRecord: 4.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  (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  (9.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (7.6ms) ROLLBACK  (0.4ms) 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", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$7rtPDd5YRJvY2RIH.gFRPe96Y6TLdF7TBMnIuBY2CLYTr86KoYLLS"], ["updated_at", Sat, 13 Jul 2013 03:46:07 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", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yzeC9xM6VwDDCmU1Bn4R' 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", 5], ["created_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["id", 5], ["authentication_token", "yzeC9xM6VwDDCmU1Bn4R"]]  (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", 5], ["created_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (1.6ms) 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)  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:46:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:46:07 -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.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" = 'user5@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" = 5 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 5]] 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", 5]] Completed 201 Created in 14ms (Views: 5.4ms | ActiveRecord: 2.7ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:46:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 1.0ms)  (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  (12.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (14.6ms) ROLLBACK  (0.3ms) 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", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$VvaDZkCdIIXjWqct95Q8/ez7LBiyNrOxt/y9Pc4TH1WmoQqOdNDbG"], ["updated_at", Sat, 13 Jul 2013 03:46:07 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", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00]] Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4DxjdsVeKkhdAbPRWFtA' 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" = 6 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 6], ["created_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["id", 6], ["authentication_token", "4DxjdsVeKkhdAbPRWFtA"]]  (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", 6], ["created_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$d7B1hhjjy8WPYLiL3Wibc.VYQfRhOC.3t44JHDgsyMiH98TpRV86u"], ["updated_at", Sat, 13 Jul 2013 03:46:07 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" = '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", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qnUUVuxNN1K3PzVxmdVM' 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", 7], ["created_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["id", 7], ["authentication_token", "qnUUVuxNN1K3PzVxmdVM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 7], ["created_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:46:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:46:07 -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 ('test6') 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" = 'user7@example.com' LIMIT 1 [["account_id", 6]] 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (7.3ms) ROLLBACK  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 22:46: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.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", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$dv0Kd4DDBgt5BIIlwqB2.e2.beMSNjqWKjrxqRi6zCfFhS4jg9khO"], ["updated_at", Sat, 13 Jul 2013 03:46:07 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", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["name", "Testy"], ["owner_id", 8], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fsdfZzzbh3wef9Aa3TSG' 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", "Testy"], ["subdomain", "test"], ["owner_id", 8], ["created_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["id", 8], ["authentication_token", "fsdfZzzbh3wef9Aa3TSG"]]  (0.3ms) 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", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:07 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 8) LIMIT 1  (0.2ms) CREATE SCHEMA "test"  (22.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)  (7.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) 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")  (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)  (2.2ms) 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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 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", 8]] Completed 201 Created in 106ms (Views: 7.3ms | ActiveRecord: 69.1ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (6.5ms) 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", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$scl0lZYxSrRv.0fwYW6owe4NI7GFSluh3fhFJStedV5c.ePYXUotu"], ["updated_at", Sat, 13 Jul 2013 03:46:08 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", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["name", "Testy"], ["owner_id", 9], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fAAo8ay4gqzJJKqD57NC' 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", "Testy"], ["subdomain", "test"], ["owner_id", 9], ["created_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["id", 9], ["authentication_token", "fAAo8ay4gqzJJKqD57NC"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 22:46: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_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.5ms) 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 22ms (Views: 0.4ms | ActiveRecord: 1.1ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.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.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  (13.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.2ms) 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", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$OvWj.2qhc78N01XpTsHyLOq6iV4KUWRL42gUNfaA8N380lEKlW8Gm"], ["updated_at", Sat, 13 Jul 2013 03:46:08 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", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["name", "Test Account"], ["owner_id", 10], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SuqrRs4asWZaeLS2qyk9' 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"], ["subdomain", "test"], ["owner_id", 10], ["created_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["id", 10], ["authentication_token", "SuqrRs4asWZaeLS2qyk9"]]  (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", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["user_id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 10]]  (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  (9.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (2.1ms) ROLLBACK  (0.1ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (63.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.6ms) ROLLBACK  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.4ms) 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  (9.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.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", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$MIhIYmm/T/2IGlkTAm33xu8kDn32HyhjDzGOkeqNT7q9sZJlo68Me"], ["updated_at", Sat, 13 Jul 2013 03:46:08 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" = '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", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 11], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VqFuZVmcSexmvyL2zdJK' 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 #8"], ["subdomain", "test8"], ["owner_id", 11], ["created_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["id", 11], ["authentication_token", "VqFuZVmcSexmvyL2zdJK"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 11], ["created_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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")  (4.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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.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 ('20130612073709')  (0.2ms) 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-12 22:46:08 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$k1sWDQXD8uQXvYK7i7OrJuOxax36yWwjc2XXNyL7jrPblbF1GWtDu"], ["updated_at", Sat, 13 Jul 2013 03:46:08 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", 11], ["created_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["user_id", 12]]  (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" = 12 LIMIT 1 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.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", 12]] Completed 201 Created in 19ms (Views: 5.3ms | ActiveRecord: 3.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/12" for 127.0.0.1 at 2013-07-12 22:46:08 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"12"} 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.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" = 12 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 11]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 12 LIMIT 1 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 10ms (Views: 4.9ms | ActiveRecord: 2.0ms)  (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  (9.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (5.9ms) ROLLBACK  (0.1ms) 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", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$25l/XLFRtrFlo/JOTZrP2.Kh2StkCB7yV610hpH22EP/kcmuzQP6q"], ["updated_at", Sat, 13 Jul 2013 03:46:08 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" = '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", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 13], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YRXxbrsKzb4qy45AtuZJ' 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 #9"], ["subdomain", "test9"], ["owner_id", 13], ["created_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["id", 12], ["authentication_token", "YRXxbrsKzb4qy45AtuZJ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["user_id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.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.2ms) 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")  (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)   (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (1.5ms) 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/users" for 127.0.0.1 at 2013-07-12 22:46:08 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' 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", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$HthbclH06dwOeRkRzL0BX.1Ivh6iLJhFQUyP9XlmkYZEhldE0Rksq"], ["updated_at", Sat, 13 Jul 2013 03:46:08 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", 12], ["created_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["user_id", 14]]  (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" = 14 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] Cadenero::V1::Account Load (5.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", 14]] Completed 201 Created in 28ms (Views: 9.6ms | ActiveRecord: 8.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/14" for 127.0.0.1 at 2013-07-12 22:46:08 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"14"} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 14 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 12]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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", 14]] Completed 200 OK in 14ms (Views: 4.9ms | ActiveRecord: 2.1ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 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" = 'test10' 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", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 14], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'jfJ2NrFZis1jMPwa5XLg' 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 #10"], ["subdomain", "test10"], ["owner_id", 14], ["created_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["id", 13], ["authentication_token", "jfJ2NrFZis1jMPwa5XLg"]]  (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", 13], ["created_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["user_id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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)  (1.2ms) 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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 22:46:08 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' 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", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$T5Q8I18g28OT0cNz8DJYguJ8Gpgys2Cl3ThRTS91mTEraWDJyV8E6"], ["updated_at", Sat, 13 Jul 2013 03:46:08 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", 13], ["created_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:08 UTC +00:00], ["user_id", 15]]  (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" = 15 LIMIT 1 Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 15]] 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", 15]] Completed 201 Created in 18ms (Views: 5.3ms | ActiveRecord: 3.7ms) 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/14" for 127.0.0.1 at 2013-07-12 22:46:08 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"14"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (0.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" = 14 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 12]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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", 14]] Completed 200 OK in 12ms (Views: 6.5ms | ActiveRecord: 2.2ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-12 22:46:08 -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" = 'test9' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 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", 12]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 13]] 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", 13]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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", 14]] Completed 200 OK in 17ms (Views: 11.7ms | ActiveRecord: 2.8ms)  (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  (9.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (9.2ms) 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.4ms) 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  (9.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.3ms) ROLLBACK  (0.2ms) BEGIN  (1.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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", Sat, 13 Jul 2013 03:46:11 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$/myUZgDXdehuU7t8.gW.puehRzoZoaMpDL.3qSGu5N.DdQlMyboWS"], ["updated_at", Sat, 13 Jul 2013 03:46:11 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:46:11 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 16], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 03:46:11 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1Y3kP3iprGFuHFJAstsZ' 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", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 16], ["created_at", Sat, 13 Jul 2013 03:46:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:11 UTC +00:00], ["id", 14], ["authentication_token", "1Y3kP3iprGFuHFJAstsZ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) 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", Sat, 13 Jul 2013 03:46:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:11 UTC +00:00], ["user_id", 16]]  (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", Sat, 13 Jul 2013 03:46:11 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$nCnEkHo4d3jTqQqBoNk/UuwyEiy.HewtHHaWhZ52ds/hbz7E.xXDS"], ["updated_at", Sat, 13 Jul 2013 03:46:11 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", Sat, 13 Jul 2013 03:46:11 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$9WHqOeEYXsdq3I2771/.iusWmOEyE8gybdSni9DQkjPKwmZ7RbjBy"], ["updated_at", Sat, 13 Jul 2013 03:46:11 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", Sat, 13 Jul 2013 03:46:11 UTC +00:00], ["name", "Root"], ["owner_id", 18], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 03:46:11 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'jEzpy7HxvWkAAvFNTyKx' 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", "Root"], ["subdomain", "www"], ["owner_id", 18], ["created_at", Sat, 13 Jul 2013 03:46:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:46:11 UTC +00:00], ["id", 15], ["authentication_token", "jEzpy7HxvWkAAvFNTyKx"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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.4ms) 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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (7.5ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1001]] Completed 201 Created in 5ms (Views: 3.6ms | ActiveRecord: 0.9ms)  (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  (9.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.1ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 71ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.4ms) 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  (9.7ms) 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  (3.1ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.1ms) 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  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (9.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$MWW4NC/PdGIW3tHC2iZi.eP3PnHE5WEuTg5MwjFgKYLKMSL.N9qFW"], ["updated_at", Sat, 13 Jul 2013 03:48:09 UTC +00:00]]  (0.1ms) 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.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 03:48:09 UTC +00:00]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'L4wTx1rMvdVetxs4Q4TE' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (1.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", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["id", 1], ["authentication_token", "L4wTx1rMvdVetxs4Q4TE"]]  (0.2ms) 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", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["user_id", 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", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$Pv3IcMxjMv8H7R.UfVluW.nyXq52y6m5H8e6iICRbky2Wce3Cges6"], ["updated_at", Sat, 13 Jul 2013 03:48:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$kQ2.bwPgqpfDQj/4guNvUekhRMB.fDDhWcUBGM8FU8SC5WGVNPDSW"], ["updated_at", Sat, 13 Jul 2013 03:48:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 03:48:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zJvwDjrbT6kXrzzhPJFv' 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", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["id", 2], ["authentication_token", "zJvwDjrbT6kXrzzhPJFv"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www"  (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" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) 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")  (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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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 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 14ms (Views: 8.8ms | ActiveRecord: 1.2ms)  (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  (9.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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  (2.1ms) 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.2ms | ActiveRecord: 0.0ms)  (0.4ms) 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  (9.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.9ms) ROLLBACK  (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.4ms) 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.2ms) 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  (2.1ms) ROLLBACK  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 22:48:09 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$tAX2OPJxKQPplypvsIXKGecRjVYmTpYACPgcH3J.ZIeHbRBusQeRi"], ["updated_at", Sat, 13 Jul 2013 03:48:09 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", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["name", "Testy"], ["owner_id", 4], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 03:48:09 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9xwfcBdHcVHUWjFadY3s' 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", "Testy"], ["subdomain", "test"], ["owner_id", 4], ["created_at", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["id", 3], ["authentication_token", "9xwfcBdHcVHUWjFadY3s"]]  (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", 3], ["created_at", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 3) LIMIT 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)   (1.3ms) 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.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)  (1.3ms) 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")  (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.7ms) 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') Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 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", 3]] Completed 201 Created in 125ms (Views: 9.0ms | ActiveRecord: 46.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.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  (9.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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  (6.1ms) ROLLBACK  (0.3ms) 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", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$mUH6gVTQhdz2J1vpX9BcOufyyXgmcxiudaaLvJ1/2JHLrm2.PhCqG"], ["updated_at", Sat, 13 Jul 2013 03:48:09 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", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["name", "Testy"], ["owner_id", 5], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 03:48:09 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mtG7z8LiLpbhtTZ2nhaw' 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" = 4 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 5], ["created_at", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:09 UTC +00:00], ["id", 4], ["authentication_token", "mtG7z8LiLpbhtTZ2nhaw"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 22:48:09 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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 24ms (Views: 0.4ms | ActiveRecord: 0.8ms) 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.4ms) 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  (10.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (7.1ms) 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", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$q.Yg5qtGymloKMHo/JT2e.2DgnfrorxAxbkei/BaUGAky.HqTKEwe"], ["updated_at", Sat, 13 Jul 2013 03:48:10 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" = '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", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 6], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'krnyhJ49zxMZzWjaDUAi' 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 #2"], ["subdomain", "test2"], ["owner_id", 6], ["created_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["id", 5], ["authentication_token", "krnyhJ49zxMZzWjaDUAi"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 5], ["created_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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")  (5.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.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.9ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:48: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-12 22:48:10 -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", 5]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] 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", 6]] Completed 201 Created in 91ms (Views: 79.2ms | ActiveRecord: 3.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:48:10 -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" = 6 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.6ms) ROLLBACK  (0.1ms) 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", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$4lb7dFQMYyIFtxScNPbdFu4Gd5qKlqtxGY2UxPpiHTHIIB.6MfjAq"], ["updated_at", Sat, 13 Jul 2013 03:48:10 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" = 'test3' LIMIT 1 SQL (1.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 7], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'twxGsSgYTeGh1pu9oiPy' 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 #3"], ["subdomain", "test3"], ["owner_id", 7], ["created_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["id", 6], ["authentication_token", "twxGsSgYTeGh1pu9oiPy"]]  (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", 6], ["created_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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.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)   (0.8ms) 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.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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:48:10 -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.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", 6]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 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 15ms (Views: 5.9ms | ActiveRecord: 2.5ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:48:10 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"7", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:48: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)  (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  (9.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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  (6.0ms) ROLLBACK  (1.9ms) 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", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$3lbwAT94Xa99cB8HPkYkVOzMbyfA4x6I4sa/Wl9mUgJyYWZMgeQCG"], ["updated_at", Sat, 13 Jul 2013 03:48:10 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.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 8], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oBqXjH1qjLZAVZDVFqNB' 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 #4"], ["subdomain", "test4"], ["owner_id", 8], ["created_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["id", 7], ["authentication_token", "oBqXjH1qjLZAVZDVFqNB"]]  (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", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (13.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) 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")  (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")  (0.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:48: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-12 22:48:10 -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 ('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" = 'user@example.com' LIMIT 1 [["account_id", 7]] 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.0ms) 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", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$8Co9GY9AGjdhumojJ2jODeGxYyCJ90MCv9tZE937k/C7dsvlonyvC"], ["updated_at", Sat, 13 Jul 2013 03:48:10 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", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 9], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gJvnncqvViKt1HzvjSBM' 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 #5"], ["subdomain", "test5"], ["owner_id", 9], ["created_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["id", 8], ["authentication_token", "gJvnncqvViKt1HzvjSBM"]]  (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", 8], ["created_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["user_id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test5"  (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.0ms) 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")  (5.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.2ms) 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)  (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.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.0ms) 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-12 22:48: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-12 22:48:10 -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.8ms) 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" = 'foo@example.com' LIMIT 1 [["account_id", 8]] Completed 422 Unprocessable Entity in 7ms (Views: 0.3ms | ActiveRecord: 1.6ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.1ms) 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  (4.2ms) ROLLBACK  (0.1ms) 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", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$1fXYZNpQW1tL7eEfwOZQluPMszVEhR0pjO.srQI7y7KaIf.mkwxgO"], ["updated_at", Sat, 13 Jul 2013 03:48: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" = '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", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 10], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nxPx9cxSjyA9u2sPLex5' 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 #6"], ["subdomain", "test6"], ["owner_id", 10], ["created_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["id", 9], ["authentication_token", "nxPx9cxSjyA9u2sPLex5"]]  (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", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["user_id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (7.4ms) 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)   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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)   (4.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$Bq3WDOpA1cbfUQSw44R4NuyDymDpvzWn9jmIdlwe2H2UKtMzwD7ym"], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 11], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WVs9dypzmqAysEVrZS5Z' 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 #7"], ["subdomain", "test7"], ["owner_id", 11], ["created_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["id", 10], ["authentication_token", "WVs9dypzmqAysEVrZS5Z"]]  (0.8ms) 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", 10], ["created_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:48: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-12 22:48:10 -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 ('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" = 'user8@example.com' LIMIT 1 [["account_id", 9]] Completed 422 Unprocessable Entity in 8ms (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.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.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (25.5ms) ROLLBACK  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (3.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$5EkjBOaieINjJ19uMt9TiOCULTL/NxapnfptceioQuYch2vcXGofy"], ["updated_at", Sat, 13 Jul 2013 03:48: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" = '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", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 12], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00]] Cadenero::V1::Account Load (10.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2GcnYaWp9VAapSm3AvF8' 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 #8"], ["subdomain", "test8"], ["owner_id", 12], ["created_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["id", 11], ["authentication_token", "2GcnYaWp9VAapSm3AvF8"]]  (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", 11], ["created_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["user_id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (9.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.8ms) 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")  (9.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)   (3.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (8.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (6.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 ('20130612073709')  (0.7ms) 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-12 22:48:10 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (1.9ms) 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  (33.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (18.3ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 SQL (3.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$dzjNnhzr/fof0FTo5ZXEHOEdghbadK5isOhiGDgA2sTOMAjSn9M/q"], ["updated_at", Sat, 13 Jul 2013 03:48:10 UTC +00:00]]  (5.9ms) 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.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 13], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fwethSMjDHxw3NP9vfQS' 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" = 12 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 13], ["created_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["id", 12], ["authentication_token", "fwethSMjDHxw3NP9vfQS"]]  (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", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["user_id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (20.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" ("authentication_token")  (6.7ms) 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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (38.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)  (4.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (10.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) 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-12 22:48:11 -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 (5.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (1.0ms) SAVEPOINT active_record_1 SQL (3.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$Dy5ugCGJUp2z2ev8LZKEh.EHm9lFWyrFlYvJ23Nl0kN/2lBjrU17u"], ["updated_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00]] 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", 12], ["created_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["user_id", 14]]  (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" = 14 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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", 14]] Completed 201 Created in 32ms (Views: 5.7ms | ActiveRecord: 14.8ms) 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/14" for 127.0.0.1 at 2013-07-12 22:48:11 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"14"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 14 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 12]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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" = $1 [["user_id", 14]] Completed 200 OK in 15ms (Views: 5.5ms | ActiveRecord: 3.8ms)  (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  (26.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (15.7ms) ROLLBACK  (1.6ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (4.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$POJGObNRPC9EJeH65YVU/OH04WO15n8qETkmnR2.77PmQnqLVwMrm"], ["updated_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00]]  (2.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) 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", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 15], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tjxn3ovNsgoE3cm7rsSr' 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" = 13 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 15], ["created_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["id", 13], ["authentication_token", "tjxn3ovNsgoE3cm7rsSr"]]  (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", 13], ["created_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["user_id", 15]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (17.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.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("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)  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 22:48:11 -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 (15.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' 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", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$rSGJAubYbuig3xqSHRN0zeIupZBYOb9Y7MonWoyfsWRFQlDS2/v5S"], ["updated_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00]] 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", 13], ["created_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["user_id", 16]]  (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" = 16 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 16]] Cadenero::V1::Account Load (13.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", 16]] Completed 201 Created in 70ms (Views: 12.9ms | ActiveRecord: 41.9ms) Cadenero::V1::Account Load (1.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 Started GET "/v1/users/16" for 127.0.0.1 at 2013-07-12 22:48:11 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"16"} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 16 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 13]] Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 16 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 16]] 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", 16]] Completed 200 OK in 16ms (Views: 7.8ms | ActiveRecord: 3.5ms) Cadenero::User Load (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 16 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (7.0ms) 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", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 16], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zWqCGvwsBLmVtacJT91U' 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" = 14 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 16], ["created_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["id", 14], ["authentication_token", "zWqCGvwsBLmVtacJT91U"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 SQL (2.7ms) 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", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["user_id", 16]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (9.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" ("authentication_token")  (5.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (11.5ms) 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)  (3.1ms) 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 ('20130612073709')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-12 22:48:11 -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 (5.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.9ms) 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", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$GYXXJCu0NJFrgFfGEIcQtOhi7NlsSlGlQW/1lLXfC88jCCKKeS47i"], ["updated_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00]] 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", 14], ["created_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:11 UTC +00:00], ["user_id", 17]]  (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" = 17 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 17]] 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", 17]] Completed 201 Created in 33ms (Views: 6.7ms | ActiveRecord: 15.3ms) Cadenero::V1::Account Load (5.0ms) 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/16" for 127.0.0.1 at 2013-07-12 22:48:11 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"16"} Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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"."id" = 16 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 13]] Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 16 LIMIT 1 Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 16]] Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 16]] Completed 200 OK in 25ms (Views: 11.1ms | ActiveRecord: 9.0ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-12 22:48:11 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (8.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' 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 (3.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" = $1 [["account_id", 13]] Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 15]] Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 15]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 16]] 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", 16]] Completed 200 OK in 47ms (Views: 19.2ms | ActiveRecord: 18.8ms)  (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  (21.7ms) 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  (13.0ms) ROLLBACK  (6.3ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (20.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (7.8ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (4.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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.7ms) ROLLBACK  (0.1ms) BEGIN Cadenero::V1::Account Exists (3.5ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (21.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (5.9ms) ROLLBACK  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.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", Sat, 13 Jul 2013 03:48:12 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$ZYVLP/ndFzGjubL29mt2A.P8Sf73qcsJ2pffW4PnFgvRahz9LBHbK"], ["updated_at", Sat, 13 Jul 2013 03:48:12 UTC +00:00]] 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", Sat, 13 Jul 2013 03:48:12 UTC +00:00], ["name", "Test Account"], ["owner_id", 18], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 03:48:12 UTC +00:00]] Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'KoUtp74HVRAxCr3hLy6u' 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"], ["subdomain", "test"], ["owner_id", 18], ["created_at", Sat, 13 Jul 2013 03:48:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:12 UTC +00:00], ["id", 15], ["authentication_token", "KoUtp74HVRAxCr3hLy6u"]]  (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", Sat, 13 Jul 2013 03:48:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:48:12 UTC +00:00], ["user_id", 18]]  (0.1ms) RELEASE SAVEPOINT active_record_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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 15]]  (1.7ms) 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.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.6ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.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  (1.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.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  (10.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (11.2ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (9.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:51:21 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$Nkch8Wnw1ZwYduZDXBh7De4E6QcuWLm7ygkf33VOW0BhMfgQ2csrq"], ["updated_at", Sat, 13 Jul 2013 03:51:21 UTC +00:00]]  (0.2ms) 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" = 'test1' LIMIT 1 SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:51:21 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 03:51:21 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'U1o4yFgLDdLZL9b5nxxy' 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", Sat, 13 Jul 2013 03:51:21 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:21 UTC +00:00], ["id", 1], ["authentication_token", "U1o4yFgLDdLZL9b5nxxy"]]  (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", Sat, 13 Jul 2013 03:51:21 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:21 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (11.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.3ms) 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.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)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:51: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 85ms (Views: 43.7ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:51: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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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" = 'foo@example.com' LIMIT 1 [["account_id", 1]] Completed 422 Unprocessable Entity in 14ms (Views: 0.4ms | ActiveRecord: 1.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  (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  (9.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.8ms) ROLLBACK  (0.2ms) BEGIN  (0.2ms) 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", Sat, 13 Jul 2013 03:51:21 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$xD3uN9G3pRwSavfeNz1cm.gOAT8gDxd0.f1xJrtvn.R3LYxg4q5su"], ["updated_at", Sat, 13 Jul 2013 03:51:21 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", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ngaGmsBx1BuwhpxpkQEN' 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" = 2 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 2], ["created_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["id", 2], ["authentication_token", "ngaGmsBx1BuwhpxpkQEN"]]  (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", 2], ["created_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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.2ms) 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")  (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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:51:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:51:22 -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 ('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"."email" = 'user@example.com' LIMIT 1 [["account_id", 2]] 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (11.5ms) 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", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$VLRnkdV.DC6upho6ZeTdv.kvv2.C1OtfOoYbjyqJlVCIQG5/xtODC"], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'k1QqQyWWDUS63Ecf9oBV' 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", 3], ["created_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["id", 3], ["authentication_token", "k1QqQyWWDUS63Ecf9oBV"]]  (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", 3], ["created_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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)  (0.9ms) 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.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)   (3.8ms) 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")  (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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:51:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:51:22 -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.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", 3]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 3]] 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", 3]] Completed 201 Created in 45ms (Views: 31.2ms | ActiveRecord: 3.2ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:51:22 -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" = 3 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (5.5ms) ROLLBACK  (0.2ms) BEGIN  (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", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$uKYLYrIy2oAgreOhcYB2VO1JAGr2i.VE.zirjWkHYbbbGEvcVI9Ta"], ["updated_at", Sat, 13 Jul 2013 03:51:22 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", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CFnhrhnRsVNPn82ByVYc' 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" = 4 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 4], ["created_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["id", 4], ["authentication_token", "CFnhrhnRsVNPn82ByVYc"]]  (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", 4], ["created_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["user_id", 4]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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.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")  (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)   (3.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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)   (2.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:51:22 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 [["account_id", 4]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 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 (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 [["user_id", 4]] Completed 201 Created in 17ms (Views: 6.1ms | ActiveRecord: 4.3ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:51:22 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"4", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:51:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (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  (10.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.6ms) 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", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$GQRgYInoyHt9/.5n9fBFie2ZLA3dfJVXvXnWYf0YFsfpTmdqDRWEy"], ["updated_at", Sat, 13 Jul 2013 03:51:22 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.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'h5oKxdr9wmnhbkqw7Zwx' 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", 5], ["created_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["id", 5], ["authentication_token", "h5oKxdr9wmnhbkqw7Zwx"]]  (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", 5], ["created_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["user_id", 5]]  (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")  (9.4ms) 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)   (1.0ms) 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.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)   (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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$U0u1iZc8hRxotIwrjunPZ./N9hHNx0DcVHztDc9w8RWB7yIKdVYRS"], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'HgTCzRzaofNss7AYVskW' 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", 6], ["created_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["id", 6], ["authentication_token", "HgTCzRzaofNss7AYVskW"]]  (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", 6], ["created_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["user_id", 6]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-12 22:51:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:51:22 -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 (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", 5]] Completed 422 Unprocessable Entity in 6ms (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.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  (9.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (21.7ms) ROLLBACK  (0.2ms) 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", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$BY9UZJ/mALLf5HySq7I.9el/8zslfhzsDTkDC6COtdwOUWUtiNRO."], ["updated_at", Sat, 13 Jul 2013 03:51:22 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", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00]] Cadenero::V1::Account Load (3.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DmHpVWZeop2ptZk3Bk1Z' 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", 7], ["created_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["id", 7], ["authentication_token", "DmHpVWZeop2ptZk3Bk1Z"]]  (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", 7], ["created_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (33.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)  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.4ms) 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') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-12 22:51:22 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (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  (11.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (7.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.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  (9.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (7.7ms) ROLLBACK  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.9ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.2ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.7ms) ROLLBACK  (0.5ms) 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", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$wxSV6stZaKDd.anyJHFjGeLVzGElsCOeOku8f0FMSnSE69aDIgfy2"], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00]] SQL (1.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["name", "Test Account"], ["owner_id", 8], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'cN7UZuCcqXY1TEtzyALZ' 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" = 8 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 8], ["created_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["id", 8], ["authentication_token", "cN7UZuCcqXY1TEtzyALZ"]]  (0.2ms) 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", 8], ["created_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 8]]  (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  (11.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.7ms) ROLLBACK  (0.1ms) 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", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$oRh4ZUcLl1HLw04mGPlpeuLkaw/7x6tiPRQGXdUn16QK6lMb34RnK"], ["updated_at", Sat, 13 Jul 2013 03:51:22 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", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 9], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eB5PLjmwZshT3ugZXy4o' 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", 9], ["created_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["id", 9], ["authentication_token", "eB5PLjmwZshT3ugZXy4o"]]  (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", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["user_id", 9]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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.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 ('20130612073709')  (0.2ms) 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-12 22:51: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" = 'test8' 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", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$l8pIJ6AnF5dj1RWIzETdJ.6fzUzI/G58Hr4OwhLpjIDxKdou4tapK"], ["updated_at", Sat, 13 Jul 2013 03:51: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", 9], ["created_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:22 UTC +00:00], ["user_id", 10]]  (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" = 10 LIMIT 1 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.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", 10]] Completed 201 Created in 18ms (Views: 5.2ms | ActiveRecord: 3.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/10" for 127.0.0.1 at 2013-07-12 22:51:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"10"} Cadenero::V1::Account Load (0.3ms) 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" = 10 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 9]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 10 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 10]] 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", 10]] Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 1.9ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 10 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" = 'test9' 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", Sat, 13 Jul 2013 03:51:23 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 10], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 03:51:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7hpJNVxL2hrrUZ2q14z1' 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 #9"], ["subdomain", "test9"], ["owner_id", 10], ["created_at", Sat, 13 Jul 2013 03:51:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:23 UTC +00:00], ["id", 10], ["authentication_token", "7hpJNVxL2hrrUZ2q14z1"]]  (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", 10], ["created_at", Sat, 13 Jul 2013 03:51:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:23 UTC +00:00], ["user_id", 10]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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.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")  (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)   (1.4ms) 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")  (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.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.6ms) 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 ('20130612073709')  (0.2ms) 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-12 22:51: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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' 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", Sat, 13 Jul 2013 03:51:23 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$L90.iXFeNFyz7OpOmg6Llei1dsd4EETHFVg9kWcglolTYHZ9XD4Ie"], ["updated_at", Sat, 13 Jul 2013 03:51: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", 10], ["created_at", Sat, 13 Jul 2013 03:51:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:23 UTC +00:00], ["user_id", 11]]  (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" = 11 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 11]] 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", 11]] Completed 201 Created in 18ms (Views: 5.1ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/10" for 127.0.0.1 at 2013-07-12 22:51:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"10"} Cadenero::V1::Account Load (0.3ms) 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" = 10 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 9]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 10 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 10]] 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", 10]] Completed 200 OK in 12ms (Views: 6.3ms | ActiveRecord: 2.1ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-12 22:51:23 -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" = 'test8' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 10 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", 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]] 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 (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 10]] Completed 200 OK in 18ms (Views: 12.2ms | ActiveRecord: 3.9ms)  (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  (9.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (10.1ms) 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", Sat, 13 Jul 2013 03:51:23 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$EeXx1NCWA0gWqeloaebNveXkKZplfYYnTPNa1lPPSpwVgFpW1fTmq"], ["updated_at", Sat, 13 Jul 2013 03:51:23 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" = '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", Sat, 13 Jul 2013 03:51:23 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 12], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 03:51:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PSbZ5xgwY2BR14estGdR' 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 #10"], ["subdomain", "test10"], ["owner_id", 12], ["created_at", Sat, 13 Jul 2013 03:51:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:23 UTC +00:00], ["id", 11], ["authentication_token", "PSbZ5xgwY2BR14estGdR"]]  (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", 11], ["created_at", Sat, 13 Jul 2013 03:51:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:23 UTC +00:00], ["user_id", 12]]  (0.2ms) 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)  (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")  (6.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.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.2ms) 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-12 22:51: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 (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' 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", Sat, 13 Jul 2013 03:51:23 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$sLJ87IMjx8g/SR6jcsZwa.h04T1MGj3P8jop6QP4lQ.ThUzxVndpS"], ["updated_at", Sat, 13 Jul 2013 03:51: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", 11], ["created_at", Sat, 13 Jul 2013 03:51:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:23 UTC +00:00], ["user_id", 13]]  (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" = 13 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 13]] 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", 13]] Completed 201 Created in 19ms (Views: 5.2ms | 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/13" for 127.0.0.1 at 2013-07-12 22:51:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"13"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.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" = 13 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 11]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 13 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 13]] 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", 13]] Completed 200 OK in 10ms (Views: 4.6ms | ActiveRecord: 2.0ms)  (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  (9.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.9ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.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  (6.0ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} 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" = $1 [["account_id", 1001]] Completed 201 Created in 9ms (Views: 7.5ms | ActiveRecord: 1.1ms)  (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  (8.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.1ms) 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", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$Y8WlrzkMRqE0sAYN5QiGuODnrvZDBU5luuudRJLxTBsnen6kCMP7W"], ["updated_at", Sat, 13 Jul 2013 03:51:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 14], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 03:51:26 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZotZHmzwzazyCbPWWXF9' 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 #11"], ["subdomain", "test11"], ["owner_id", 14], ["created_at", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["id", 12], ["authentication_token", "ZotZHmzwzazyCbPWWXF9"]]  (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", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["user_id", 14]]  (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", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$9tkv3l15iOY6SdZVFtKF8ubwaDAqkNoRdSQ6nPO84M4ArzNhjmUiS"], ["updated_at", Sat, 13 Jul 2013 03:51:26 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", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$CVEpxds.EXeSqGGEwuMMcOQsL29JP.YFyGeyAmMaFZs9i95xYPGZC"], ["updated_at", Sat, 13 Jul 2013 03:51:26 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", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["name", "Root"], ["owner_id", 16], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 03:51:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yGXuAHVQkRcJin7Cyk3w' 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", "Root"], ["subdomain", "www"], ["owner_id", 16], ["created_at", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["id", 13], ["authentication_token", "yGXuAHVQkRcJin7Cyk3w"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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.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)   (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")  (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.9ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.2ms) 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", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$dRtaDRPA1wWqcaW4OqyVbu2kmqJRq4VO6M6mVxLIoGOnYeRaTAPC6"], ["updated_at", Sat, 13 Jul 2013 03:51:26 UTC +00:00]] 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", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["name", "Testy"], ["owner_id", 17], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 03:51:26 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SYoR1uSYX4p9jtRTPXUV' 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" = 14 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 17], ["created_at", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["id", 14], ["authentication_token", "SYoR1uSYX4p9jtRTPXUV"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 22:51:26 -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.4ms) 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 20ms (Views: 0.5ms | ActiveRecord: 0.8ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (5.7ms) ROLLBACK  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-12 22:51:26 -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 SQL (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$sQdhW.LNinNhtWlCr6iLPuvTxQx6Md3DNc0AcfDMHkvzuUqpGlmlq"], ["updated_at", Sat, 13 Jul 2013 03:51:26 UTC +00:00]] SQL (3.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["name", "Testy"], ["owner_id", 18], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 03:51:26 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'y7kJwyxxQPEswpzcwnzd' 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", 18], ["created_at", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["id", 15], ["authentication_token", "y7kJwyxxQPEswpzcwnzd"]]  (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", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 03:51:26 UTC +00:00], ["user_id", 18]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 15) LIMIT 1  (0.2ms) CREATE SCHEMA "test"  (16.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)   (12.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (7.4ms) 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)  (2.6ms) 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")  (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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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') Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 18 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", 15]] Completed 201 Created in 113ms (Views: 6.0ms | ActiveRecord: 72.6ms) 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.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  (12.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.9ms) 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  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.9ms) 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  (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  (15.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.7ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) 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  (10.3ms) 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  (2.5ms) 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  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (12.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.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.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  (7.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.6ms) ROLLBACK  (0.5ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '' LIMIT 1 Completed 500 Internal Server Error in 57ms  (0.4ms) 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  (9.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.5ms) ROLLBACK  (0.7ms) 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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.1ms) 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 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.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  (9.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.5ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::User Load (6.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" = 101 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 1001]] Completed 200 OK in 158ms (Views: 0.2ms | ActiveRecord: 8.4ms)  (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  (9.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.3ms) 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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.1ms) 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 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 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (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  (9.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (3.0ms) ROLLBACK  (0.4ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::User Load (7.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"."id" = 101 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 1001]] Completed 200 OK in 139ms (Views: 0.2ms | ActiveRecord: 9.0ms)  (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  (12.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.4ms) ROLLBACK  (2.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  (7.7ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.7ms) 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 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.9ms) 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  (12.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.1ms) ROLLBACK  (0.8ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Completed 500 Internal Server Error in 1ms  (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  (9.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.5ms) ROLLBACK  (1.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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (11.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.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.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  (9.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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  (2.9ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Completed 500 Internal Server Error in 1ms  (0.4ms) 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  (9.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (2.3ms) ROLLBACK  (0.7ms) 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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.9ms) 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.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.9ms) 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  (9.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.2ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Completed 500 Internal Server Error in 1ms  (0.4ms) 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  (11.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.2ms) ROLLBACK  (0.7ms) 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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.7ms) 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.6ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Completed 500 Internal Server Error in 5ms  (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  (9.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) 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.6ms) ROLLBACK  (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.4ms) 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  (10.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.2ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (41.3ms) 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  (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  (9.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.9ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) 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  (8.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.6ms) ROLLBACK  (0.7ms) 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  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (26.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.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  (9.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.1ms) ROLLBACK  (0.1ms) BEGIN  (1.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  (9.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  (3.5ms) ROLLBACK  (0.7ms) 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  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (20.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  (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.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  (9.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.9ms) ROLLBACK  (0.7ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Completed 500 Internal Server Error in 1ms  (0.4ms) 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  (10.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.1ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.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 Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Completed 500 Internal Server Error in 1ms  (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  (13.3ms) 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.8ms) 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.4ms) 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  (10.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.3ms) ROLLBACK Connecting to database specified by database.yml  (2.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (11.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.4ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 44ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (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  (10.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.6ms) 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)  (1.1ms) 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  (12.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (24.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:27:15 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$0jTU6FECggJj/iiFvLMEXejH6v31k4ETDenuET7u8RhAw1wff/FZG"], ["updated_at", Sat, 13 Jul 2013 13:27:15 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" = 'test1' LIMIT 1 SQL (4.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", Sat, 13 Jul 2013 13:27:15 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 13:27:15 UTC +00:00]] Cadenero::V1::Account Load (31.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'NRm8348wLsv3CH8pYtvU' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-13 13:27:15.618808', "updated_at" = '2013-07-13 13:27:15.618808', "authentication_token" = 'NRm8348wLsv3CH8pYtvU' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 13:27:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:27:15 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.6ms) CREATE SCHEMA "test1"  (28.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.5ms) 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")  (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)  (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.7ms) 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)   (1.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 ('20130612073709')  (0.2ms) 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-13 08:27:15 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:27:15 -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 ('test1') 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" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 14ms (Views: 0.6ms | 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' LIMIT 1  (5.8ms) 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  (39.9ms) 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 (2.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:27:16 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$lUytr.w4hqoL/QglmgsQFuluA6Ly7IGuAbND5gKsy7xlhNGo.xIAa"], ["updated_at", Sat, 13 Jul 2013 13:27:16 UTC +00:00]]  (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" = 'test2' 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", Sat, 13 Jul 2013 13:27:16 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 13:27:16 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zwDGNtCrmH25vPPQKofx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-13 13:27:16.181896', "updated_at" = '2013-07-13 13:27:16.181896', "authentication_token" = 'zwDGNtCrmH25vPPQKofx' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 13:27:16 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:27:16 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) CREATE SCHEMA "test2"  (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.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.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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.5ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:27:16 -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.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 144ms (Views: 28.6ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:27:16 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-13 08:27:16 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (3.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  (18.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:27:16 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$AayJK.ZyI1LVgR/BSghRvua3M50yyPdGvcFhSzBhCGzIDpd228RoC"], ["updated_at", Sat, 13 Jul 2013 13:27:16 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 (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", Sat, 13 Jul 2013 13:27:16 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 13:27:16 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XBGVE1T1T9eaowXhmf4a' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-13 13:27:16.566265', "updated_at" = '2013-07-13 13:27:16.566265', "authentication_token" = 'XBGVE1T1T9eaowXhmf4a' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:27:16 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:27:16 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.8ms) 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)  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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.3ms) SELECT version FROM "schema_migrations"  (2.0ms) 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-13 08:27:16 -0500 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1  (4.8ms) 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.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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 (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:27:16 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$uimhfmrukNdf2Tqjy3EspOpbBW0Ug2VlWHO2VariJ8oQsqk1PXxmC"], ["updated_at", Sat, 13 Jul 2013 13:27:16 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 (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", Sat, 13 Jul 2013 13:27:16 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 13:27:16 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ihEnqChyg2KLprbHxupv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-13 13:27:16.779344', "updated_at" = '2013-07-13 13:27:16.779344', "authentication_token" = 'ihEnqChyg2KLprbHxupv' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 13:27:16 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:27:16 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (8.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.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (38.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)  (49.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.5ms) 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-13 08:27:16 -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-13 08:27:16 -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 ('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"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 8ms (Views: 1.5ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.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  (14.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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", Sat, 13 Jul 2013 13:27:17 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$UVvdo4utwumyLnMX/dE4tOOFcfeADeHcdXKA5x3ndhEE.m1ngzhya"], ["updated_at", Sat, 13 Jul 2013 13:27:17 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.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", Sat, 13 Jul 2013 13:27:17 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 13:27:17 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rRDF1dYSxPaF3Exhppbj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-13 13:27:17.103519', "updated_at" = '2013-07-13 13:27:17.103519', "authentication_token" = 'rRDF1dYSxPaF3Exhppbj' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:27:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:27:17 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (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)  (1.5ms) 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")  (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.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.4ms) 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", Sat, 13 Jul 2013 13:27:17 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$zworm3rkHp2mvb8gFAy.KuaWuh5hMgrlgZjLiBahhdjpsTIrV4hU2"], ["updated_at", Sat, 13 Jul 2013 13:27:17 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" = 'test6' 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", Sat, 13 Jul 2013 13:27:17 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 13:27:17 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'izUUi5xFuf2W8pNLU9Sc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 2, "created_at" = '2013-07-13 13:27:17.301923', "updated_at" = '2013-07-13 13:27:17.301923', "authentication_token" = 'izUUi5xFuf2W8pNLU9Sc' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Sat, 13 Jul 2013 13:27:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:27:17 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 08:27:17 -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-13 08:27: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 ('test5') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.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  (13.7ms) 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", Sat, 13 Jul 2013 13:27:17 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$0row2PuYzH7rel6Xe9OkF.1R4T.GwN6U3.8APHzYiQqFHBa4brH/6"], ["updated_at", Sat, 13 Jul 2013 13:27:17 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.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", Sat, 13 Jul 2013 13:27:17 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 13:27:17 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GU1q6Rw9RSBzYNQK5g4h' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-13 13:27:17.455262', "updated_at" = '2013-07-13 13:27:17.455262', "authentication_token" = 'GU1q6Rw9RSBzYNQK5g4h' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:27:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:27:17 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) CREATE SCHEMA "test7"  (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.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")  (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)  (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")  (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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 08:27:17 -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-13 08:27:17 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) 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 111ms (Views: 4.6ms | ActiveRecord: 2.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 GET "/v1" for 127.0.0.1 at 2013-07-13 08:27:17 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.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  (12.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 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 08:27:17 -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 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:27:17 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$OwYpP0zWOnxt59.VfC6.FuZwtEGT1TA/WkY2ZEDghM7gDw/65Wvvy"], ["updated_at", Sat, 13 Jul 2013 13:27:17 UTC +00:00]] 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", Sat, 13 Jul 2013 13:27:17 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 13:27:17 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Mfv3NkCh6hYQDTSJjRjm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 13:27:17.777552', "updated_at" = '2013-07-13 13:27:17.777552', "authentication_token" = 'Mfv3NkCh6hYQDTSJjRjm' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:27:17 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:27:17 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 1) LIMIT 1  (0.2ms) CREATE SCHEMA "test"  (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.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.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)   (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")  (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.8ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Completed 201 Created in 168ms (Views: 1.8ms | ActiveRecord: 36.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (12.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  (15.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.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 (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:27:17 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$Kn/a/5Q3vC5ZqUlTwWs0mO1uSHsCr2vDmwa9sqTA4S/zO81.UfqrG"], ["updated_at", Sat, 13 Jul 2013 13:27:17 UTC +00:00]] 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", Sat, 13 Jul 2013 13:27:17 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 13:27:17 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Z8CPyPyrM1y8H69SbQaZ' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 13:27:17.988163', "updated_at" = '2013-07-13 13:27:17.988163', "authentication_token" = 'Z8CPyPyrM1y8H69SbQaZ' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 08:27:17 -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 121ms (Views: 0.3ms | ActiveRecord: 0.7ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.2ms) 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  (11.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.2ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) 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", Sat, 13 Jul 2013 13:27:22 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$y0HeNtvM5zoNsOW25.Qa.eC/w831Gy6CwUdddLtKqlEkbn7eZ2BtC"], ["updated_at", Sat, 13 Jul 2013 13:27:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Sat, 13 Jul 2013 13:27:22 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 13:27:22 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JZDC8GX92X7NubNgyawa' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-13 13:27:22.074432', "updated_at" = '2013-07-13 13:27:22.074432', "authentication_token" = 'JZDC8GX92X7NubNgyawa' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:27:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:27:22 UTC +00:00], ["user_id", 1]]  (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", Sat, 13 Jul 2013 13:27:22 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$bDkPGaNSeKlfJbuNTbwiK.pIAUP8DXyZ9C7iHyn5njSXl6pVa5AZO"], ["updated_at", Sat, 13 Jul 2013 13:27:22 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", Sat, 13 Jul 2013 13:27:22 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$jtMRtCreIFpcbwz6qx0ep.TfWWM/RrLCJ2HeBEtg.fVQAW1rZVaF6"], ["updated_at", Sat, 13 Jul 2013 13:27:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Sat, 13 Jul 2013 13:27:22 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 13:27:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9N5xLFbCqoQ9Nmvof3rr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-13 13:27:22.282958', "updated_at" = '2013-07-13 13:27:22.282958', "authentication_token" = '9N5xLFbCqoQ9Nmvof3rr' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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.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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.3ms) 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')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (4.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  (11.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (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 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:27:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$PSC2ywSINjT8HVgCH7nWqe.IDiDTj5BEwLs4lTEF0vrksovhT/2K6"], ["updated_at", Sat, 13 Jul 2013 13:27:22 UTC +00:00]] 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", Sat, 13 Jul 2013 13:27:22 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 13:27:22 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WcQqWFaKuUzXK6PsnUvQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 13:27:22.514829', "updated_at" = '2013-07-13 13:27:22.514829', "authentication_token" = 'WcQqWFaKuUzXK6PsnUvQ' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:27:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:27:22 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (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  (16.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 (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.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  (11.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 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.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  (12.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 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.2ms) 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  (12.1ms) 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 (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:27:23 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$ZnLvM.5z7Wpy9Ik83wIl/uH2CuaCFWrTGiTLtdQC4yquFExhfHg/."], ["updated_at", Sat, 13 Jul 2013 13:27:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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.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", Sat, 13 Jul 2013 13:27:23 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 13:27:23 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4ubyBVx9avz5ynX2zLRs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-13 13:27:23.045873', "updated_at" = '2013-07-13 13:27:23.045873', "authentication_token" = '4ubyBVx9avz5ynX2zLRs' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:27:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:27:23 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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)  (4.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")  (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)   (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) 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.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 ('20130612073709')  (0.1ms) 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-13 08:27: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:27:23 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$I5.LRzXFyG7IR7hBDR2oV.R0KBICK/KhH/UuX9dhn9b.NO3Lx/Dxq"], ["updated_at", Sat, 13 Jul 2013 13:27: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", 1], ["created_at", Sat, 13 Jul 2013 13:27:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:27:23 UTC +00:00], ["user_id", 2]]  (0.9ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 114ms (Views: 6.1ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-13 08:27:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.7ms)  (2.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.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  (0.1ms) 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", Sat, 13 Jul 2013 13:27:23 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$BTvRS/8kyBfozgAr7GllKeBZC0mUjkf4YYKBjDubgT1MDhV1.odf6"], ["updated_at", Sat, 13 Jul 2013 13:27:23 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" = 'test10' 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", Sat, 13 Jul 2013 13:27:23 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 13:27:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'W8FJwqYyeTSbcr6DVz4J' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-13 13:27:23.424381', "updated_at" = '2013-07-13 13:27:23.424381', "authentication_token" = 'W8FJwqYyeTSbcr6DVz4J' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 13:27:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:27:23 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (27.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.3ms) 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")  (15.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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (11.8ms) SELECT version FROM "schema_migrations"  (0.8ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-13 08:27: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 (16.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1  (0.2ms) SAVEPOINT active_record_1 SQL (3.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:27:23 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$rSmKSIEJBz8hycqFXnhjGOXGWpSFFrIrSEIQ8RkSD1ZmjyYG4ZKwG"], ["updated_at", Sat, 13 Jul 2013 13:27:23 UTC +00:00]] SQL (5.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", Sat, 13 Jul 2013 13:27:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:27:23 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (2.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" = 2 Completed 201 Created in 266ms (Views: 6.5ms | ActiveRecord: 29.1ms) 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/2" for 127.0.0.1 at 2013-07-13 08:27:23 -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" = 'test10' LIMIT 1 Cadenero::User Load (8.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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (51.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (3.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" = 2 Completed 200 OK in 110ms (Views: 8.7ms | ActiveRecord: 63.3ms) Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 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" = 'test11' LIMIT 1 SQL (2.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", Sat, 13 Jul 2013 13:27:24 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 2], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 13:27:24 UTC +00:00]] Cadenero::V1::Account Load (26.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ckENdqW2gMGEsuA4xh4o' LIMIT 1  (11.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 2, "created_at" = '2013-07-13 13:27:24.078949', "updated_at" = '2013-07-13 13:27:24.078949', "authentication_token" = 'ckENdqW2gMGEsuA4xh4o' WHERE "public"."cadenero_accounts"."id" = 2  (1.9ms) 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", Sat, 13 Jul 2013 13:27:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:27:24 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (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)   (0.9ms) 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")  (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)  (4.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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")  (1.7ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (5.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 08:27:24 -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_1 SQL (2.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:27:24 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$I6IP1.GDCDzOEPQ5vBbfJe.hgC3O/6jqDvNLg/93proFx0pr4IF.O"], ["updated_at", Sat, 13 Jul 2013 13:27:24 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", 2], ["created_at", Sat, 13 Jul 2013 13:27:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:27:24 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 135ms (Views: 5.9ms | ActiveRecord: 4.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/2" for 127.0.0.1 at 2013-07-13 08:27:24 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (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"."id" = 2 LIMIT 1 Cadenero::User Load (2.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 17ms (Views: 8.3ms | ActiveRecord: 4.6ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-13 08:27:24 -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" = '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" = 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 17ms (Views: 12.1ms | ActiveRecord: 2.6ms)  (32.3ms) 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.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.7ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Completed 500 Internal Server Error in 0ms  (0.6ms) 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  (41.1ms) 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  (5.3ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Completed 500 Internal Server Error in 1ms  (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  (21.3ms) 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 Connecting to database specified by database.yml  (4.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  (2.5ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (2.0ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 08:31: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.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (6.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:31:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$YnhfOx2iTSJEMZ8nMn26gecxvoWiPL5H0kKZM7hAewpDQLJlYYcNq"], ["updated_at", Sat, 13 Jul 2013 13:31:07 UTC +00:00]] SQL (1.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", Sat, 13 Jul 2013 13:31:07 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 13:31:07 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5BpPbVjRL1pLARpN91YF' LIMIT 1  (5.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 13:31:07.306910', "updated_at" = '2013-07-13 13:31:07.306910', "authentication_token" = '5BpPbVjRL1pLARpN91YF' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:31:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:07 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 1) LIMIT 1  (0.3ms) CREATE SCHEMA "test"  (8.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)  (5.8ms) 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")  (9.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)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (17.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (9.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.4ms) SELECT version FROM "schema_migrations"  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Completed 201 Created in 631ms (Views: 3.1ms | ActiveRecord: 122.5ms) Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (5.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  (42.9ms) 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  (4.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.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:31:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$3auaeCuqLLScQf2YCxf4k.c.Nmxok8kp88e/TiqJXVL65rKBHgXi6"], ["updated_at", Sat, 13 Jul 2013 13:31:07 UTC +00:00]] 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", Sat, 13 Jul 2013 13:31:07 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 13:31:07 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fZvQttVSy4qMg41RynSV' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 13:31:07.813511', "updated_at" = '2013-07-13 13:31:07.813511', "authentication_token" = 'fZvQttVSy4qMg41RynSV' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 08:31: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}  (5.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (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 177ms (Views: 0.3ms | ActiveRecord: 6.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.1ms) ROLLBACK  (0.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  (15.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (4.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 12ms (Views: 11.3ms | ActiveRecord: 0.0ms)  (10.2ms) 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  (21.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 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.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  (16.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (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.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:31:08 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$fQ8HiDL4Qr7eMu9/qyHZ4ev4VqfOclcL7o/yP6ghUc1Ap4P0jsB2m"], ["updated_at", Sat, 13 Jul 2013 13:31:08 UTC +00:00]] 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", Sat, 13 Jul 2013 13:31:08 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 13:31:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wWuGU1wKDMy9x4ULVV7t' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 13:31:08.265115', "updated_at" = '2013-07-13 13:31:08.265115', "authentication_token" = 'wWuGU1wKDMy9x4ULVV7t' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:31:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:08 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (1.2ms) ROLLBACK  (0.7ms) 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  (0.2ms) 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.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  (13.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  (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.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  (16.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.3ms) BEGIN 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  (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  (12.7ms) 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 Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Completed 500 Internal Server Error in 0ms  (1.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  (13.3ms) 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 Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Completed 500 Internal Server Error in 0ms  (0.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  (15.0ms) 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.9ms) BEGIN  (1.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.8ms) 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", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$YOk3kFFidqPgtcwfgR8SQOBH/kyqMhMMymmckpXDUNPEYkyKMjzvG"], ["updated_at", Sat, 13 Jul 2013 13:31:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (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", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 13:31:13 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'D9sxy98LLeXgTgVzWebM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-13 13:31:13.007017', "updated_at" = '2013-07-13 13:31:13.007017', "authentication_token" = 'D9sxy98LLeXgTgVzWebM' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$NmK3Byh1WNKiuUu081V8LuGkiCNRWKNmB3NDlIoghZ12pKb4ynqvK"], ["updated_at", Sat, 13 Jul 2013 13:31:13 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", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$nkQ1ezQ3vNVgZqXweU.ivu.n2Slh8MlRmSBTqRe0HZsiYhZTeKCsW"], ["updated_at", Sat, 13 Jul 2013 13:31:13 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", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 13:31:13 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TjKotPWF3JSZ5qEe8pBW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-13 13:31:13.216246', "updated_at" = '2013-07-13 13:31:13.216246', "authentication_token" = 'TjKotPWF3JSZ5qEe8pBW' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "www"  (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.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")  (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)  (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")  (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.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (5.2ms) 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  (13.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  (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", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$b42Zn6x6L0HIfn11pl6.oefVOiOT/v88pmlCs3Q/QLVzXc6K3veX."], ["updated_at", Sat, 13 Jul 2013 13:31:13 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 (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", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 13:31:13 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GQP3p1VVBeYp13UzJxsj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-13 13:31:13.393799', "updated_at" = '2013-07-13 13:31:13.393799', "authentication_token" = 'GQP3p1VVBeYp13UzJxsj' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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.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.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.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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.3ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$C2TNgfg54wY8Gatwi98zM.LkXmElSkKnqYOPF0ugsmUmywNMlPhIu"], ["updated_at", Sat, 13 Jul 2013 13:31:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 13:31:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LXBYV32K8uxQyWnZHv2k' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 2, "created_at" = '2013-07-13 13:31:13.548901', "updated_at" = '2013-07-13 13:31:13.548901', "authentication_token" = 'LXBYV32K8uxQyWnZHv2k' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 08:31:13 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:31:13 -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 ('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"."email" = 'user4@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.6ms) ROLLBACK  (1.4ms) 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) 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", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$I2EzCQkS2vr7nXkLplZewOFAkopHmkm1EtRnH4JA3I.agq9vV/Nom"], ["updated_at", Sat, 13 Jul 2013 13:31:13 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 (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", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 13:31:13 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'w4oRpjUibMHLEPCbfmgE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-13 13:31:13.714912', "updated_at" = '2013-07-13 13:31:13.714912', "authentication_token" = 'w4oRpjUibMHLEPCbfmgE' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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.3ms) 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)   (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:31:13 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' LIMIT 1  (5.3ms) 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  (13.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.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", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$E3h4ACgsF/5wlHjADIB6IODQC5PnxcgdEhoXSYDrN2pfAtEdUEbwu"], ["updated_at", Sat, 13 Jul 2013 13:31:13 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.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", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 13:31:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nypsZMHNNz8dW2aG6xPe' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-13 13:31:13.897024', "updated_at" = '2013-07-13 13:31:13.897024', "authentication_token" = 'nypsZMHNNz8dW2aG6xPe' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:13 UTC +00:00], ["user_id", 1]]  (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.7ms) 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")  (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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 08:31:13 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:31:13 -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.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" = 'foo@example.com' LIMIT 1 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' LIMIT 1  (2.8ms) 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  (15.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", Sat, 13 Jul 2013 13:31:14 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$1FCMzPz2UANmTOOSTN1dWO2WZqQK2PdM7qeEh.eGjZwytScY0JQm2"], ["updated_at", Sat, 13 Jul 2013 13:31:14 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.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", Sat, 13 Jul 2013 13:31:14 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 13:31:14 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pcdfAw6tPmpph2ra9sp4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-13 13:31:14.094529', "updated_at" = '2013-07-13 13:31:14.094529', "authentication_token" = 'pcdfAw6tPmpph2ra9sp4' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 1], ["created_at", Sat, 13 Jul 2013 13:31:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:14 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.2ms) 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.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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 08:31:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:31:14 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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"."email" = 'user7@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 140ms (Views: 37.6ms | ActiveRecord: 2.5ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-13 08:31:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.3ms)  (7.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  (28.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (2.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:31:14 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$bY.2Ze67adJa7oXKSA0/tepWHbc5onUc10YCLbgX2hwSxgnuhp6Oq"], ["updated_at", Sat, 13 Jul 2013 13:31:14 UTC +00:00]]  (1.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' 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", Sat, 13 Jul 2013 13:31:14 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 13:31:14 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rxxKphab2Z1CzpE9yqk4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-13 13:31:14.639814', "updated_at" = '2013-07-13 13:31:14.639814', "authentication_token" = 'rxxKphab2Z1CzpE9yqk4' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 13:31:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:14 UTC +00:00], ["user_id", 1]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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")  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (14.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)  (5.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:31:14 -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 ('test7') 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" = 'user8@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 189ms (Views: 5.3ms | ActiveRecord: 4.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:31:14 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 1.8ms) Started GET "/v1" for 127.0.0.1 at 2013-07-13 08:31:14 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): false Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (10.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  (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  (1.6ms) SAVEPOINT active_record_1 SQL (8.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:31:15 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$HDWAjicflEX7uWnrgXik9e8t1pxuvj/uIsweV4Q7eCcFLW.wlzqLu"], ["updated_at", Sat, 13 Jul 2013 13:31:15 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" = 'test8' 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", Sat, 13 Jul 2013 13:31:15 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 13:31:15 UTC +00:00]] Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'F2mdeGoDpKRpgFuycxyk' LIMIT 1  (6.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-13 13:31:15.197594', "updated_at" = '2013-07-13 13:31:15.197594', "authentication_token" = 'F2mdeGoDpKRpgFuycxyk' WHERE "public"."cadenero_accounts"."id" = 1  (3.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (8.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 13:31:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:15 UTC +00:00], ["user_id", 1]]  (5.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (11.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)  (3.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")  (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)   (2.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.0ms) SELECT version FROM "schema_migrations"  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.3ms) 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-13 08:31:15 -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-13 08:31:15 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (3.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 10ms (Views: 0.4ms | ActiveRecord: 5.6ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.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  (24.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.8ms) 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  (5.2ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 SQL (10.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:31:15 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$szEfZGhxF1feJSq11oMczOtCyLC1MZrQ/3elX2FkStzDpudgDpFDe"], ["updated_at", Sat, 13 Jul 2013 13:31:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.5ms) 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", Sat, 13 Jul 2013 13:31:15 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 13:31:15 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VsRD964qSJWdhQ9rUSqu' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-13 13:31:15.585233', "updated_at" = '2013-07-13 13:31:15.585233', "authentication_token" = 'VsRD964qSJWdhQ9rUSqu' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", Sat, 13 Jul 2013 13:31:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:15 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (6.3ms) CREATE SCHEMA "test9"  (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.1ms) 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")  (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)   (4.7ms) 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")  (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)  (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"  (0.3ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-13 08:31:15 -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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1  (1.2ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:31:15 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$WJGxvkLv3wrDZQkwiQ2oLeX7X9N4j.ViSz6sKTvnQ5JrnEEjucssy"], ["updated_at", Sat, 13 Jul 2013 13:31:15 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", 1], ["created_at", Sat, 13 Jul 2013 13:31:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:15 UTC +00:00], ["user_id", 2]]  (6.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (3.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (14.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" = 2 Completed 201 Created in 209ms (Views: 20.7ms | ActiveRecord: 28.8ms) Cadenero::V1::Account Load (9.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-13 08:31:15 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} env['warden'].authenticated?(:user): true Cadenero::V1::Account Load (8.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 25ms (Views: 5.5ms | ActiveRecord: 10.0ms)  (3.1ms) ROLLBACK  (2.4ms) 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.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (6.2ms) 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", Sat, 13 Jul 2013 13:31:16 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$3kYDKHGZFQJIS8SEXGV8jOxNjuMqxjrZZS.UpO0p6XUSbVHigxvIW"], ["updated_at", Sat, 13 Jul 2013 13:31:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) 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 (1.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", Sat, 13 Jul 2013 13:31:16 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 13:31:16 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PfnCA2Cjd29xdGs6WjtR' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-13 13:31:16.164299', "updated_at" = '2013-07-13 13:31:16.164299', "authentication_token" = 'PfnCA2Cjd29xdGs6WjtR' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Sat, 13 Jul 2013 13:31:16 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:16 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.6ms) CREATE SCHEMA "test10"  (13.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)   (5.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (13.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)  (4.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 08:31:16 -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" = 'test10' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (3.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:31:16 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Wq063Wk4MMLb44yjxTL55.yctyOeTI94V1/qFpDoC91LYv80g4VbW"], ["updated_at", Sat, 13 Jul 2013 13:31:16 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", Sat, 13 Jul 2013 13:31:16 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:16 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (2.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 149ms (Views: 5.1ms | ActiveRecord: 7.8ms) Cadenero::V1::Account Load (20.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-13 08:31:16 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} env['warden'].authenticated?(:user): true Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (6.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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 19ms (Views: 5.5ms | ActiveRecord: 9.8ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (1.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", Sat, 13 Jul 2013 13:31:16 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 2], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 13:31:16 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Maxq63fjjkVnbgFs2gLp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 2, "created_at" = '2013-07-13 13:31:16.498833', "updated_at" = '2013-07-13 13:31:16.498833', "authentication_token" = 'Maxq63fjjkVnbgFs2gLp' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.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", Sat, 13 Jul 2013 13:31:16 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:16 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (5.9ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (5.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)   (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (5.5ms) SELECT version FROM "schema_migrations"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 08:31:16 -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" = 'test11' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (2.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:31:16 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$fNivOgCDMtrydBCj6dOSvuGsiDe94980GSelCXnt8I.cujBKx5h5W"], ["updated_at", Sat, 13 Jul 2013 13:31:16 UTC +00:00]] SQL (3.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Sat, 13 Jul 2013 13:31:16 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:16 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 146ms (Views: 5.2ms | ActiveRecord: 8.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-13 08:31:16 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} env['warden'].authenticated?(:user): true Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 14ms (Views: 6.1ms | ActiveRecord: 2.9ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-13 08:31:16 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} env['warden'].authenticated?(:user): true Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.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 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 (3.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 25ms (Views: 11.1ms | ActiveRecord: 11.7ms)  (8.8ms) ROLLBACK  (1.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  (38.7ms) 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 Connecting to database specified by database.yml  (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  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (22.3ms) 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.4ms) BEGIN  (12.8ms) SAVEPOINT active_record_1 SQL (13.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:31:46 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$1vnJleDbcVtgD77B83r23.CUrjBPOd7MyVYcWWRG.0jwyLaMcbwK."], ["updated_at", Sat, 13 Jul 2013 13:31:46 UTC +00:00]]  (3.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Sat, 13 Jul 2013 13:31:46 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 13:31:46 UTC +00:00]] Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tqwsWDHagsk49y5xS1w4' LIMIT 1  (1.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-13 13:31:46.624124', "updated_at" = '2013-07-13 13:31:46.624124', "authentication_token" = 'tqwsWDHagsk49y5xS1w4' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.7ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 13:31:46 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:46 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (20.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.6ms) 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")  (5.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)  (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.4ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 08:31:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 68ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:31:47 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (12.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (14.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 Cadenero::V1::Account Load (17.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 Completed 201 Created in 245ms (Views: 57.6ms | ActiveRecord: 46.1ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 08:31:47 -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" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.5ms)  (5.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  (22.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (9.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  (1.9ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:31:47 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$/shcjXPuK17mIyP8H.vQt.1b6gm/Fb7Y9eN4FHk40v/90OYKgURXW"], ["updated_at", Sat, 13 Jul 2013 13:31:47 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" = 'test2' 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", Sat, 13 Jul 2013 13:31:47 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 13:31:47 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'uyJ4UqYzBXnnmQKqVRpM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-13 13:31:47.562130', "updated_at" = '2013-07-13 13:31:47.562130', "authentication_token" = 'uyJ4UqYzBXnnmQKqVRpM' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:31:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:47 UTC +00:00], ["user_id", 1]]  (8.8ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test2"  (62.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)   (3.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")  (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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("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.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 ('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-13 08:31:47 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:31:47 -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 ('test2') LIMIT 1 Cadenero::User Load (14.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 Completed 422 Unprocessable Entity in 33ms (Views: 0.4ms | ActiveRecord: 15.3ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (19.5ms) ROLLBACK  (11.7ms) 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  (77.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.1ms) 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", Sat, 13 Jul 2013 13:31:48 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$pKy0AZ1v7a/2IJ1Rmokpy.UOfHEjVZ5wh.h.usotTW2p14F6LsM46"], ["updated_at", Sat, 13 Jul 2013 13:31:48 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 (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", Sat, 13 Jul 2013 13:31:48 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 13:31:48 UTC +00:00]] Cadenero::V1::Account Load (3.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fzwzpGGx9KtPCzMUP6zR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-13 13:31:48.123672', "updated_at" = '2013-07-13 13:31:48.123672', "authentication_token" = 'fzwzpGGx9KtPCzMUP6zR' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Sat, 13 Jul 2013 13:31:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:48 UTC +00:00], ["user_id", 1]]  (4.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (14.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" ("authentication_token")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (10.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (14.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.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')  (18.4ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:31:48 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$TkCXRukqUzryiiUtHC4xaulKPG2SOM.2EThPpzIkKeXTiNgHc6Ljm"], ["updated_at", Sat, 13 Jul 2013 13:31:48 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Sat, 13 Jul 2013 13:31:48 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 2], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 13:31:48 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nSxEMB8f6krQns4EMxa8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 2, "created_at" = '2013-07-13 13:31:48.453341', "updated_at" = '2013-07-13 13:31:48.453341', "authentication_token" = 'nSxEMB8f6krQns4EMxa8' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["created_at", Sat, 13 Jul 2013 13:31:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:48 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 08:31:48 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:31:48 -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" = 1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.5ms | 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  (7.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  (49.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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.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", Sat, 13 Jul 2013 13:31:48 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$nZl8gnPlGt7H2n280BcOTu4fW0EIER8ZeotdZZ5ZNABWOGPhz/C32"], ["updated_at", Sat, 13 Jul 2013 13:31:48 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.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", Sat, 13 Jul 2013 13:31:48 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 13:31:48 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vx3trZLaNJisM1KYp34c' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-13 13:31:48.721938', "updated_at" = '2013-07-13 13:31:48.721938', "authentication_token" = 'vx3trZLaNJisM1KYp34c' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:31:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:48 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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.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")  (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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:31:48 -0500 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' LIMIT 1  (4.8ms) 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  (22.2ms) 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.1ms) 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", Sat, 13 Jul 2013 13:31:48 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$utX5093aQq0WZeJ21USW6uPKJVkKFh54wqOZN.de36JfsBHhlDf3e"], ["updated_at", Sat, 13 Jul 2013 13:31:48 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.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", Sat, 13 Jul 2013 13:31:48 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 13:31:48 UTC +00:00]] Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wRU5e8EPLog4q964RWTe' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-13 13:31:48.927532', "updated_at" = '2013-07-13 13:31:48.927532', "authentication_token" = 'wRU5e8EPLog4q964RWTe' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Sat, 13 Jul 2013 13:31:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:48 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)   (2.8ms) 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.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)  (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.0ms) 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.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 ('20130612073709')  (0.1ms) 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-13 08:31:48 -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.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 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 114ms (Views: 5.0ms | ActiveRecord: 4.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:31:49 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-13 08:31:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.3ms) ROLLBACK  (3.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  (15.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", Sat, 13 Jul 2013 13:31:49 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$xL9f3iD27yY1ojkt8xSeheQHZ1rS/Nur9ZmlEO10AcVk/TmjKWqUe"], ["updated_at", Sat, 13 Jul 2013 13:31:49 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 (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", Sat, 13 Jul 2013 13:31:49 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 13:31:49 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'uvG2Hv2pS9qrYy9FMjQj' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-13 13:31:49.256923', "updated_at" = '2013-07-13 13:31:49.256923', "authentication_token" = 'uvG2Hv2pS9qrYy9FMjQj' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:31:49 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:49 UTC +00:00], ["user_id", 1]]  (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)   (1.8ms) 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.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)  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 08:31:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:31:49 -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 ('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" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 57ms (Views: 0.4ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.5ms) ROLLBACK  (0.4ms) 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.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  (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", Sat, 13 Jul 2013 13:31:49 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$K6O8aPdbVWCMavYIALg6Me5voMs0k5jTpu6CeWciHX2WaMp8hQcIC"], ["updated_at", Sat, 13 Jul 2013 13:31:49 UTC +00:00]] 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", Sat, 13 Jul 2013 13:31:49 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 13:31:49 UTC +00:00]] Cadenero::V1::Account Load (9.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '38TZnot3pXsfzjweAY9Q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 13:31:49.519289', "updated_at" = '2013-07-13 13:31:49.519289', "authentication_token" = '38TZnot3pXsfzjweAY9Q' WHERE "public"."cadenero_accounts"."id" = 1  (0.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 08:31:49 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.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  (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 139ms (Views: 0.3ms | ActiveRecord: 0.7ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.3ms) 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.9ms) 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 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 08:31:49 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.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", Sat, 13 Jul 2013 13:31:49 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$eIXrsYAyVX9W5Yvy.9BFTOqXvVg0mT3PNPMw28xfyanVETkEYrcAy"], ["updated_at", Sat, 13 Jul 2013 13:31:49 UTC +00:00]] 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", Sat, 13 Jul 2013 13:31:49 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 13:31:49 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sYTqpLAApov56zYS2mCc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 13:31:49.809879', "updated_at" = '2013-07-13 13:31:49.809879', "authentication_token" = 'sYTqpLAApov56zYS2mCc' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Sat, 13 Jul 2013 13:31:49 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:49 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 1) LIMIT 1  (0.2ms) CREATE SCHEMA "test"  (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" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Completed 201 Created in 161ms (Views: 1.8ms | ActiveRecord: 35.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (2.7ms) ROLLBACK  (0.4ms) 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.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 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.2ms) 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  (13.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  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)  (0.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  (14.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  (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", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$Lom.Hh6rzx7AIRxSPobuhuvyWYquMtpCyuj1NMhi.mbuTo0ElEWEm"], ["updated_at", Sat, 13 Jul 2013 13:31:50 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" = 'test8' 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", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 13:31:50 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wMxWCh6KWJyqazqPUCSu' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-13 13:31:50.058146', "updated_at" = '2013-07-13 13:31:50.058146', "authentication_token" = 'wMxWCh6KWJyqazqPUCSu' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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)   (2.4ms) 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)  (1.1ms) 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")  (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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 08:31:50 -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" = 'test8' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$6/ya/1mG7H0nsV6iG8pQIepZMRkwDnkRxbZCA66OP1G6Sh53yk0bm"], ["updated_at", Sat, 13 Jul 2013 13:31:50 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", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 111ms (Views: 4.9ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-13 08:31:50 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' 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", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 2], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 13:31:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FRYbxfU1pSbLkf1fBxRQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 2, "created_at" = '2013-07-13 13:31:50.245762', "updated_at" = '2013-07-13 13:31:50.245762', "authentication_token" = 'FRYbxfU1pSbLkf1fBxRQ' WHERE "public"."cadenero_accounts"."id" = 2  (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", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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.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)  (1.2ms) 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")  (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)   (1.2ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 08:31:50 -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" = 'test9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$L65v0f5sCVWZgsbfzDkDJuF6J/bCdjQjo1iUPmjo4j6sU21mzyjYu"], ["updated_at", Sat, 13 Jul 2013 13:31:50 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", 2], ["created_at", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 109ms (Views: 4.9ms | ActiveRecord: 2.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/2" for 127.0.0.1 at 2013-07-13 08:31:50 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 1.6ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-13 08:31:50 -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" = '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" = 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 14ms (Views: 9.8ms | ActiveRecord: 2.2ms)  (14.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  (18.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 (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$x5c5v5qEBn0MMwNoGbNrp.fUfhPrESVx9EqrmLWod5k4iBBpsgfgq"], ["updated_at", Sat, 13 Jul 2013 13:31:50 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" = 'test10' 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", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 13:31:50 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 's5Pzu8cFHKLzsHmoszyX' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-13 13:31:50.588409', "updated_at" = '2013-07-13 13:31:50.588409', "authentication_token" = 's5Pzu8cFHKLzsHmoszyX' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.0ms) 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", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["user_id", 1]]  (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.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.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.0ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) 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-13 08:31:50 -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" = 'test10' LIMIT 1  (0.3ms) 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", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$R8jsRTFvlfshItCpBr3XseaIDcLZpa7vAt5B9eL4deC8OeGqHTEzu"], ["updated_at", Sat, 13 Jul 2013 13:31:50 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", 1], ["created_at", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 111ms (Views: 5.2ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-13 08:31:50 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 1.5ms)  (2.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  (12.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.3ms) 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", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$KVo7/ge3YFdC/Lph5QWWlOqJD8rXHyI/gKfwxW.REDZnoYhueXjEi"], ["updated_at", Sat, 13 Jul 2013 13:31:50 UTC +00:00]] 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", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 13:31:50 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WTqtdMUPjN6Jy5gTU69v' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 13:31:50.930515', "updated_at" = '2013-07-13 13:31:50.930515', "authentication_token" = 'WTqtdMUPjN6Jy5gTU69v' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:50 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.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 LIMIT 1  (0.3ms) 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  (15.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.2ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) 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  (12.7ms) 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 (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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  (14.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 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.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  (13.7ms) 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  (1.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (1.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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", Sat, 13 Jul 2013 13:31:55 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$tRPsZ7IjqcAMT3v7Rbm5nOHYWEn3vKLS8n8ra9.jEDlhrZud2kShG"], ["updated_at", Sat, 13 Jul 2013 13:31:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (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", Sat, 13 Jul 2013 13:31:55 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 13:31:55 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'h9yAD6Wko6REyyppd9Kg' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-13 13:31:55.213887', "updated_at" = '2013-07-13 13:31:55.213887', "authentication_token" = 'h9yAD6Wko6REyyppd9Kg' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Sat, 13 Jul 2013 13:31:55 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:31:55 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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", Sat, 13 Jul 2013 13:31:55 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$wSR0.xVBgF/z6id5yBfpyubpK7NOtlBGmgQYt423aVgWCzfExjhuu"], ["updated_at", Sat, 13 Jul 2013 13:31:55 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", Sat, 13 Jul 2013 13:31:55 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$rc0beHSQglmrqsySiQM4eO/cJ987dcsX92JcAmfda7p16/ojSgw6a"], ["updated_at", Sat, 13 Jul 2013 13:31:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Sat, 13 Jul 2013 13:31:55 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 13:31:55 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'cRS8Wz5S8ap3i7KpRUup' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-13 13:31:55.426171', "updated_at" = '2013-07-13 13:31:55.426171', "authentication_token" = 'cRS8Wz5S8ap3i7KpRUup' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (8.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.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")  (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)   (2.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")  (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.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (6.8ms) 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  (13.9ms) 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 Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Completed 500 Internal Server Error in 1ms  (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  (14.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 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.2ms) 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  (12.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 Connecting to database specified by database.yml  (9.9ms) 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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.6ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.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.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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::Account::UsersController#show as JSON Parameters: {"id"=>101} Completed 500 Internal Server Error in 1ms  (6.6ms) ROLLBACK  (0.7ms) 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.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 Connecting to database specified by database.yml  (0.9ms) 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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (18.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.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Completed 500 Internal Server Error in 1ms  (2.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.3ms) 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  (3.7ms) 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) 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  (44.4ms) 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 Connecting to database specified by database.yml  (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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (29.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.6ms) 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.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  (10.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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::Account::UsersController#show as JSON Parameters: {"id"=>101} Completed 500 Internal Server Error in 1ms  (0.4ms) ROLLBACK  (2.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  (51.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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 Connecting to database specified by database.yml  (2.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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 Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.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  (40.7ms) 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 Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Completed 500 Internal Server Error in 1ms  (1.3ms) 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  (29.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (5.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 Connecting to database specified by database.yml  (1.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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (30.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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.6ms) 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)  (3.6ms) 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  (15.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) 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::Account::UsersController#show as JSON Parameters: {"id"=>101} Completed 500 Internal Server Error in 1ms  (6.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  (69.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (26.3ms) 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  (2.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  (2.7ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.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.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  (31.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  (2.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  (13.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 Connecting to database specified by database.yml  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (12.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.0ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Completed 500 Internal Server Error in 1ms  (0.2ms) ROLLBACK  (0.4ms) 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  (22.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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::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) 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  (39.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (8.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  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) 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.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.2ms) 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.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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 Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (2.5ms) 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 177ms (Views: 166.9ms | ActiveRecord: 9.9ms)  (5.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  (45.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (27.1ms) 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.8ms) 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.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  (42.5ms) 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 Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (0.7ms) 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 215ms (Views: 209.1ms | ActiveRecord: 5.0ms)  (0.3ms) 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  (13.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (8.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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (17.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (4.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (2.5ms) 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 236ms (Views: 231.1ms | ActiveRecord: 4.2ms)  (11.1ms) ROLLBACK  (0.4ms) 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.5ms) 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  (1.5ms) 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.9ms | ActiveRecord: 0.0ms)  (2.3ms) 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  (12.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 Cadenero::V1::Account Exists (2.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (11.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:54:23 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$YMvZ4JbYz/uDXLtb770YRe7dKGARCNS/bu27c9oIdW/7VpV7CI6pS"], ["updated_at", Sat, 13 Jul 2013 13:54:23 UTC +00:00]] SQL (2.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", Sat, 13 Jul 2013 13:54:23 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 13:54:23 UTC +00:00]] Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zJDMpDnUyVh14iwviTyy' LIMIT 1  (3.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 13:54:23.887185', "updated_at" = '2013-07-13 13:54:23.887185', "authentication_token" = 'zJDMpDnUyVh14iwviTyy' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.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", Sat, 13 Jul 2013 13:54:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:54:23 UTC +00:00], ["user_id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (0.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  (15.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.6ms) 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  (10.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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  (13.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.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  (13.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:54:24 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$08aBOeg6xrouItAZVW92fuZre3.53gF1px4rd6ck4xzqcc6rhiMb."], ["updated_at", Sat, 13 Jul 2013 13:54:24 UTC +00:00]] 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", Sat, 13 Jul 2013 13:54:24 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 13:54:24 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GMzA6APy2QyJKMjM9mPG' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 13:54:24.570204', "updated_at" = '2013-07-13 13:54:24.570204', "authentication_token" = 'GMzA6APy2QyJKMjM9mPG' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 08:54:24 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (1.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 110ms (Views: 0.3ms | ActiveRecord: 1.4ms) 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.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.3ms) 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 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 08:54:24 -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.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:54:24 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$sk7BfnptQS6ghzSaDx3Cl.OHLev6Lj89wq.vkM27CWtfkOQCnOI2W"], ["updated_at", Sat, 13 Jul 2013 13:54:24 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", Sat, 13 Jul 2013 13:54:24 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 13:54:24 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ee9iDDigbipN75k6vVyC' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 13:54:24.886421', "updated_at" = '2013-07-13 13:54:24.886421', "authentication_token" = 'ee9iDDigbipN75k6vVyC' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:54:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:54:24 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 1) LIMIT 1  (0.5ms) CREATE SCHEMA "test"  (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)   (2.6ms) 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.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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Completed 201 Created in 237ms (Views: 1.8ms | ActiveRecord: 43.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (4.1ms) ROLLBACK  (0.7ms) 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.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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.1ms) BEGIN  (3.0ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (1.8ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:54:28 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$HJ1OEKW9JQUGUT4ZqWNfeOn7jWVQy4WLElsGf3amKpR.8ge6SUo3m"], ["updated_at", Sat, 13 Jul 2013 13:54:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Sat, 13 Jul 2013 13:54:28 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 13:54:28 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DMYDMWhT62hQXwxNNeUe' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-13 13:54:28.935410', "updated_at" = '2013-07-13 13:54:28.935410', "authentication_token" = 'DMYDMWhT62hQXwxNNeUe' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:54:28 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:54:28 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", Sat, 13 Jul 2013 13:54:29 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$6O.p9C5Xf9iOJ..T8vDu3eyqhO327vDbE9a46nMuS.56.QkHGR0pS"], ["updated_at", Sat, 13 Jul 2013 13:54:29 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", Sat, 13 Jul 2013 13:54:29 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$PLN/Er5RDcNXjcqIGjtRm.Wme1dT1oOqw4mDw/E/.FkTn8vv1zBvC"], ["updated_at", Sat, 13 Jul 2013 13:54:29 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", Sat, 13 Jul 2013 13:54:29 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 13:54:29 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TaoNfu1k2KCDsSnzMysk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-13 13:54:29.144565', "updated_at" = '2013-07-13 13:54:29.144565', "authentication_token" = 'TaoNfu1k2KCDsSnzMysk' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) 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")  (5.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)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (5.0ms) ROLLBACK  (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.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | 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  (13.1ms) 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 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)  (0.1ms) 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.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.5ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:54:29 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$bANM6mbf3XtQldLV1EoPYuaJpEwwpnzF/4t4dtY0R.5ocvQMTsBsG"], ["updated_at", Sat, 13 Jul 2013 13:54:29 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" = 'test2' 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", Sat, 13 Jul 2013 13:54:29 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 13:54:29 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'A2oFxCLXYLGsJryiSbKH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-13 13:54:29.389085', "updated_at" = '2013-07-13 13:54:29.389085', "authentication_token" = 'A2oFxCLXYLGsJryiSbKH' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:54:29 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:54:29 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (9.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")  (0.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)   (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) 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-13 08:54:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:54:29 -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 ('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"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.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  (13.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.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", Sat, 13 Jul 2013 13:54:29 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$tKrCqPE3R2Y7D1jP8FE3J.08PX8jUOj28rOcm.ghfCB.hvm.FFMDS"], ["updated_at", Sat, 13 Jul 2013 13:54:29 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", Sat, 13 Jul 2013 13:54:29 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 13:54:29 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DtieskTQW5kcpHKc4cUC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-13 13:54:29.603279', "updated_at" = '2013-07-13 13:54:29.603279', "authentication_token" = 'DtieskTQW5kcpHKc4cUC' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:54:29 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:54:29 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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)  (1.1ms) 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")  (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)   (1.0ms) 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")  (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.3ms) 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') Started GET "/v1" for 127.0.0.1 at 2013-07-13 08:54:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:54:29 -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 ('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"."email" = 'user@example.com' LIMIT 1 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' LIMIT 1  (3.3ms) ROLLBACK  (1.7ms) 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.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 (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:54:29 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$eRQRuQ4DpsZFswAPF5HLjOP5m5qarHBXXKMenqw1/KZz6pLxCdf3a"], ["updated_at", Sat, 13 Jul 2013 13:54:29 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 (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", Sat, 13 Jul 2013 13:54:29 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 13:54:29 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'x4z6uM4YBri5MnEEg8a1' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-13 13:54:29.792754', "updated_at" = '2013-07-13 13:54:29.792754', "authentication_token" = 'x4z6uM4YBri5MnEEg8a1' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 13:54:29 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:54:29 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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)  (1.2ms) 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")  (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.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:54:29 -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 ('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"."email" = 'user5@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) 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 108ms (Views: 4.8ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:54:29 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-13 08:54:29 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (2.6ms) 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  (12.7ms) 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", Sat, 13 Jul 2013 13:54:30 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$QXHtbJzG3qDoLjXQRTYJlub0it6q3KcAqNXYOEVRTZQf3Qruqh9Bu"], ["updated_at", Sat, 13 Jul 2013 13:54:30 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.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", Sat, 13 Jul 2013 13:54:30 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 13:54:30 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oNpzYy3tzjkQfif4CkuS' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-13 13:54:30.100914', "updated_at" = '2013-07-13 13:54:30.100914', "authentication_token" = 'oNpzYy3tzjkQfif4CkuS' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:54:30 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:54:30 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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)  (2.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")  (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)   (1.0ms) 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")  (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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Sat, 13 Jul 2013 13:54:30 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$qxLj8JkGuthWV0hRmDn8J.J1n/Y5GxoMxqwUFnd3SnMo3L98LRRou"], ["updated_at", Sat, 13 Jul 2013 13:54: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" = 'test6' LIMIT 1 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", Sat, 13 Jul 2013 13:54:30 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 13:54:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'BWEiyZqYwasRheeTjiZh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 2, "created_at" = '2013-07-13 13:54:30.251126', "updated_at" = '2013-07-13 13:54:30.251126', "authentication_token" = 'BWEiyZqYwasRheeTjiZh' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Sat, 13 Jul 2013 13:54:30 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:54:30 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 08:54:30 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:54:30 -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 ('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" = 1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.5ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.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  (130.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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  (12.9ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 SQL (15.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:54:30 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$Uw77IhKerjMN8Tp4Q663pePrtGehp/459kUa53gk7SZwj3l4p3tQG"], ["updated_at", Sat, 13 Jul 2013 13:54:30 UTC +00:00]]  (10.8ms) RELEASE SAVEPOINT active_record_1  (4.0ms) 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 (1.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", Sat, 13 Jul 2013 13:54:30 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 13:54:30 UTC +00:00]] Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dmxTashb8j4kqk3bd7YA' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-13 13:54:30.718437', "updated_at" = '2013-07-13 13:54:30.718437', "authentication_token" = 'dmxTashb8j4kqk3bd7YA' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Sat, 13 Jul 2013 13:54:30 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:54:30 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (4.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")  (13.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)   (3.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.1ms) 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.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.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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:54:30 -0500 Cadenero::V1::Account Load (5.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@example.com' LIMIT 1  (7.8ms) 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.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (2.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:54:30 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$XkIymQfQrzMICkwuT4sk9OYLsutI2awIScccMasStAJ4QQhj2DEDW"], ["updated_at", Sat, 13 Jul 2013 13:54:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Sat, 13 Jul 2013 13:54:30 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 13:54:30 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '58CA2HskYro9zAz9Vx2z' LIMIT 1  (1.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-13 13:54:30.982951', "updated_at" = '2013-07-13 13:54:30.982951', "authentication_token" = '58CA2HskYro9zAz9Vx2z' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 13:54:30 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:54:30 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (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)  (9.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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)   (1.2ms) 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")  (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)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (6.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (1.8ms) 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-13 08:54:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 08:54:31 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.0ms) 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 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (2.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 190ms (Views: 5.0ms | ActiveRecord: 5.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 08:54:31 -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" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (5.3ms) 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  (27.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 (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:54:31 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$DGm/PZ/H.zlIaYtIOk9BKOjCLet1ZfVeIWWBUuU5cezlE7RnhPzI."], ["updated_at", Sat, 13 Jul 2013 13:54:31 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.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", Sat, 13 Jul 2013 13:54:31 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 13:54:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fZupxqFsyT9q5zjzjiyC' LIMIT 1  (4.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-13 13:54:31.563946', "updated_at" = '2013-07-13 13:54:31.563946', "authentication_token" = 'fZupxqFsyT9q5zjzjiyC' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 13:54:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:54:31 UTC +00:00], ["user_id", 1]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (2.8ms) CREATE SCHEMA "test9"  (11.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)  (4.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) 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)   (5.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (4.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 08:54:31 -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" = 'test9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:54:31 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$B7AW3uobCALc0lm4Oiq.H.8Hxh50B8L.RTqpJI0iL.JaQtUa9Gycq"], ["updated_at", Sat, 13 Jul 2013 13:54:31 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", Sat, 13 Jul 2013 13:54:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:54:31 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 138ms (Views: 6.3ms | ActiveRecord: 4.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-13 08:54:31 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (6.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"."id" = 2 LIMIT 1 Cadenero::User Load (2.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 80ms (Views: 5.8ms | ActiveRecord: 9.1ms) Cadenero::User Load (2.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (6.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' 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", Sat, 13 Jul 2013 13:54:31 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 2], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 13:54:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8a3mewApsgqKdVu4qqwY' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 2, "created_at" = '2013-07-13 13:54:31.901120', "updated_at" = '2013-07-13 13:54:31.901120', "authentication_token" = '8a3mewApsgqKdVu4qqwY' WHERE "public"."cadenero_accounts"."id" = 2  (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", Sat, 13 Jul 2013 13:54:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:54:31 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (10.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)  (7.4ms) 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")  (5.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)   (3.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.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)   (27.7ms) 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 ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 08:54:32 -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" = 'test10' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:54:32 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$GxRz7HvPLpp4NFyOUsrXmOh/JJcPPYpOquuiuX/XJAehLlPGL9ak6"], ["updated_at", Sat, 13 Jul 2013 13:54:32 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", 2], ["created_at", Sat, 13 Jul 2013 13:54:32 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:54:32 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 161ms (Views: 6.4ms | 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/2" for 127.0.0.1 at 2013-07-13 08:54:32 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 14ms (Views: 5.8ms | ActiveRecord: 1.8ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-13 08:54:32 -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" = '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" = 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 15ms (Views: 11.5ms | ActiveRecord: 2.0ms)  (12.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  (24.9ms) 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 (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:54:32 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$VmiN4DtrzIURXqqmF6AZ.uODQ5OCTSM2veefAOOe11NEn3TDgpXTy"], ["updated_at", Sat, 13 Jul 2013 13:54:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (1.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", Sat, 13 Jul 2013 13:54:32 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 13:54:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'aWtThRjPsztNywDM5NpB' LIMIT 1  (1.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-13 13:54:32.450648', "updated_at" = '2013-07-13 13:54:32.450648', "authentication_token" = 'aWtThRjPsztNywDM5NpB' WHERE "public"."cadenero_accounts"."id" = 1  (2.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", Sat, 13 Jul 2013 13:54:32 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:54:32 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (14.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)  (3.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (1.5ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-13 08:54:32 -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" = 'test11' LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (20.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 13:54:32 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ZSJfxc3NLKuAzH1xg9QNQundKuLXUk9hVswU27r8BxSycK4Qfcq2C"], ["updated_at", Sat, 13 Jul 2013 13:54:32 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", Sat, 13 Jul 2013 13:54:32 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 13:54:32 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 160ms (Views: 22.2ms | ActiveRecord: 25.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-13 08:54:32 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (11.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 Cadenero::User Load (2.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"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 24ms (Views: 5.0ms | ActiveRecord: 14.6ms)  (8.9ms) 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  (34.1ms) 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.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.3ms) 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 (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (2.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  (12.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (5.7ms) 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  (2.0ms) 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  (9.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.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.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  (10.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.7ms) 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 (6.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 14:29:00 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$xGdI3GnOi1Gc4uiZhnF15OO4T0/WywnnF00z4rTsscQ/FUcPLPmIm"], ["updated_at", Sat, 13 Jul 2013 14:29:00 UTC +00:00]] SQL (2.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 14:29:00 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 14:29:00 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GFHqB4mCqDzzcBGsH1sG' 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"], ["subdomain", "test"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 14:29:00 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:00 UTC +00:00], ["id", 1], ["authentication_token", "GFHqB4mCqDzzcBGsH1sG"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", Sat, 13 Jul 2013 14:29:00 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:00 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_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" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 1]]  (0.4ms) 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  (9.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.7ms) ROLLBACK  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 09:29:00 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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 (1.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 14:29:00 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$bahlxYKQzWoG3s7phl3qJePnCRMcUJ/Ba9x7pGs02JmClefFtZrJ6"], ["updated_at", Sat, 13 Jul 2013 14:29:00 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", Sat, 13 Jul 2013 14:29:00 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 14:29:00 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VrybzpDyCuhqipRtUQ2t' 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", "Testy"], ["subdomain", "test"], ["owner_id", 2], ["created_at", Sat, 13 Jul 2013 14:29:00 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:00 UTC +00:00], ["id", 2], ["authentication_token", "VrybzpDyCuhqipRtUQ2t"]]  (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", 2], ["created_at", Sat, 13 Jul 2013 14:29:00 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:00 UTC +00:00], ["user_id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 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" != 2) LIMIT 1  (0.4ms) 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)  (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")  (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)   (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")  (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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 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", 2]] Completed 201 Created in 181ms (Views: 10.6ms | ActiveRecord: 39.4ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.7ms) ROLLBACK  (0.2ms) 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.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 14:29:00 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$C68IVoVmkQPDV2GSNtGnReetmpsvnimyL/8eq15ybjUKikPv4Mz6m"], ["updated_at", Sat, 13 Jul 2013 14:29:00 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", Sat, 13 Jul 2013 14:29:00 UTC +00:00], ["name", "Testy"], ["owner_id", 3], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 14:29:00 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ctSqMzhigmhricnjVXoy' 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", "Testy"], ["subdomain", "test"], ["owner_id", 3], ["created_at", Sat, 13 Jul 2013 14:29:00 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:00 UTC +00:00], ["id", 3], ["authentication_token", "ctSqMzhigmhricnjVXoy"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 09:29:00 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 14ms (Views: 0.4ms | ActiveRecord: 0.9ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.8ms) ROLLBACK  (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.4ms) 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  (15.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (5.1ms) ROLLBACK  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"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 (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 52ms (Views: 49.2ms | ActiveRecord: 2.0ms)  (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  (24.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.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", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$cR5Waa8ZVrD2PVHpLfTRGu/9RgDqEl./8qqRkNaPLiC70LTWJF1Cq"], ["updated_at", Sat, 13 Jul 2013 14:29:01 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" = '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", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 4], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ub3jLmNgmxQvXn8Pk3QY' 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" = 4 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 4], ["created_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["id", 4], ["authentication_token", "ub3jLmNgmxQvXn8Pk3QY"]]  (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", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["user_id", 4]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test1"  (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.3ms) 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")  (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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) 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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 09:29:01 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (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  (10.9ms) 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  (4.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", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$KLLpscZ13v8AKZSuLdeMfee1yMimzXbKcPdkY2WEvaECG2e/0oNzq"], ["updated_at", Sat, 13 Jul 2013 14:29:01 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.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 5], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6MAFTMpqwmrxDyTqexYx' 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 #2"], ["subdomain", "test2"], ["owner_id", 5], ["created_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["id", 5], ["authentication_token", "6MAFTMpqwmrxDyTqexYx"]]  (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", 5], ["created_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.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)  (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)   (2.0ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 09:29:01 -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.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" = 'user2@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" = 5 LIMIT 1 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.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", 5]] Completed 201 Created in 17ms (Views: 5.5ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-13 09:29:01 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"5", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 5 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-13 09:29:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (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  (9.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (10.4ms) 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", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$C8mTFW8QR0m6IOznTCwJo.W3Z2L7WIX9Jq7wTP5NxHhYWyc/yK3Yy"], ["updated_at", Sat, 13 Jul 2013 14:29:01 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.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 6], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EnuRY3pdvUGt5oF8Ms5T' 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 #3"], ["subdomain", "test3"], ["owner_id", 6], ["created_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["id", 6], ["authentication_token", "EnuRY3pdvUGt5oF8Ms5T"]]  (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", 6], ["created_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (6.4ms) 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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.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 ('20130612073709')  (3.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 09:29:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 09:29:01 -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 ('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" = 'foo@example.com' LIMIT 1 [["account_id", 6]] 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (9.0ms) ROLLBACK  (0.1ms) BEGIN  (2.0ms) 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", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$Mbe8VXClgqx.I6QNwnRGp.w4ClA1zHBhU901BNDaBu293qsZyZkJe"], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 7], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oyGx9wLunzMAksidJ9eY' 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 #4"], ["subdomain", "test4"], ["owner_id", 7], ["created_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["id", 7], ["authentication_token", "oyGx9wLunzMAksidJ9eY"]]  (0.2ms) 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", 7], ["created_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["user_id", 7]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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.3ms) 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")  (8.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)  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 09:29:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 09:29:01 -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.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", 7]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 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 15ms (Views: 5.4ms | ActiveRecord: 2.7ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 09:29:01 -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" = 7 LIMIT 1 Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.4ms)  (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  (14.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (15.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", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$5K7Q2Sqe2E8dW6mhOr3TbuGJzBGOK.cHes8T/5dsuRGboXGDxU0qu"], ["updated_at", Sat, 13 Jul 2013 14:29:01 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" = 'test5' 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", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 8], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vUduzvP7pb1wwxahYYp6' 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" = 8 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 8], ["created_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["id", 8], ["authentication_token", "vUduzvP7pb1wwxahYYp6"]]  (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", 8], ["created_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["user_id", 8]]  (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)   (8.7ms) 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")  (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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.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)  (15.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$yZCHvnMYb/lC/2FUPbZvGuMV0y7WiefuAFw1tupHDNWyjgUA11K6a"], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00]]  (1.0ms) 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" = 'test6' 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", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 9], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XCWZpS9UcofzgcaN15xm' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (3.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" = 9 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 9], ["created_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["id", 9], ["authentication_token", "XCWZpS9UcofzgcaN15xm"]]  (0.2ms) 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", 9], ["created_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["user_id", 9]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 09:29:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 09:29:01 -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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') 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" = 'user6@example.com' LIMIT 1 [["account_id", 8]] Completed 422 Unprocessable Entity in 10ms (Views: 0.4ms | ActiveRecord: 1.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  (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  (42.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (10.8ms) ROLLBACK  (0.3ms) 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", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$rLYKKs6y.EpqYMfrGJ4jF.qLn79fWFKOoHdhD6/4XDlxK98JJrrEi"], ["updated_at", Sat, 13 Jul 2013 14:29:01 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" = '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", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 10], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CFgExPTs4xjFTmEaisNr' 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 #7"], ["subdomain", "test7"], ["owner_id", 10], ["created_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["id", 10], ["authentication_token", "CFgExPTs4xjFTmEaisNr"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["user_id", 10]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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.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)  (1.2ms) 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")  (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.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 ('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-13 09:29:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 09:29:01 -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.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", 10]] 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (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", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$gstVdwlAYBkj9Vzg4KviXuIi.ZhyDgXE/TSNdbCWzo7/oplYHMhIq"], ["updated_at", Sat, 13 Jul 2013 14:29:01 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", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 11], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3Vsb4iTW4VcXyASzodH3' 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 #8"], ["subdomain", "test8"], ["owner_id", 11], ["created_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["id", 11], ["authentication_token", "3Vsb4iTW4VcXyASzodH3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:01 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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.1ms) 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")  (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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.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 ('20130612073709')  (0.2ms) 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-13 09:29: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' ORDER BY "public"."cadenero_accounts"."id" ASC 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", Sat, 13 Jul 2013 14:29:02 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$8jeQc7q7V.KIw8jmxiDBB.NJ4hR98u0c1cPD.82uobBRmXDbIqq/y"], ["updated_at", Sat, 13 Jul 2013 14:29: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", 11], ["created_at", Sat, 13 Jul 2013 14:29:02 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:02 UTC +00:00], ["user_id", 12]]  (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" = 12 LIMIT 1 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.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", 12]] Completed 201 Created in 18ms (Views: 5.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/12" for 127.0.0.1 at 2013-07-13 09:29:02 -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" = '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"."id" = 12 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 11]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 12 LIMIT 1 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 10ms (Views: 4.7ms | ActiveRecord: 2.1ms)  (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  (9.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (4.3ms) ROLLBACK  (0.1ms) 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", Sat, 13 Jul 2013 14:29:02 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$21Q3jcypt1uFOBZSGNNOSuW5XAhXeivWPnOrrkoGveh1bkwpqrWJq"], ["updated_at", Sat, 13 Jul 2013 14:29:02 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", Sat, 13 Jul 2013 14:29:02 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 13], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 14:29:02 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MwzEpx3ycygR5k8kRwBY' 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 #9"], ["subdomain", "test9"], ["owner_id", 13], ["created_at", Sat, 13 Jul 2013 14:29:02 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:02 UTC +00:00], ["id", 12], ["authentication_token", "MwzEpx3ycygR5k8kRwBY"]]  (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", Sat, 13 Jul 2013 14:29:02 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:02 UTC +00:00], ["user_id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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")  (4.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("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)   (1.1ms) 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")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) 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-13 09:29: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' 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", Sat, 13 Jul 2013 14:29:02 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$jOzsZkRkwEqMMM64M.E2cenVezvAXqZ4yAYncCUJWzYW7XERz2O5K"], ["updated_at", Sat, 13 Jul 2013 14:29: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", 12], ["created_at", Sat, 13 Jul 2013 14:29:02 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:02 UTC +00:00], ["user_id", 14]]  (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" = 14 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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", 14]] Completed 201 Created in 19ms (Views: 5.2ms | 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' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1/users/14" for 127.0.0.1 at 2013-07-13 09:29:02 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"14"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (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"."id" = 14 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 12]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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", 14]] Completed 200 OK in 12ms (Views: 5.2ms | ActiveRecord: 2.5ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 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" = '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", Sat, 13 Jul 2013 14:29:02 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 14], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 14:29:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7gyxw8ks5rJPpRcdD1ze' 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" = 13 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 14], ["created_at", Sat, 13 Jul 2013 14:29:02 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:02 UTC +00:00], ["id", 13], ["authentication_token", "7gyxw8ks5rJPpRcdD1ze"]]  (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", 13], ["created_at", Sat, 13 Jul 2013 14:29:02 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:02 UTC +00:00], ["user_id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (4.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.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)   (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")  (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.4ms) 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 ('20130612073709')  (0.2ms) 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-13 09:29: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' 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", Sat, 13 Jul 2013 14:29:02 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$mgJTiTUI3b/h0uCN9h31NOp5B8vi5RMCY4/dJ7kzdYHDhSC8IahWi"], ["updated_at", Sat, 13 Jul 2013 14:29:02 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", 13], ["created_at", Sat, 13 Jul 2013 14:29:02 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:02 UTC +00:00], ["user_id", 15]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 15 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 15]] 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", 15]] Completed 201 Created in 18ms (Views: 5.1ms | ActiveRecord: 3.7ms) 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/14" for 127.0.0.1 at 2013-07-13 09:29:02 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"14"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (0.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" = 14 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 12]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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", 14]] Completed 200 OK in 12ms (Views: 6.6ms | ActiveRecord: 2.0ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-13 09:29:02 -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" = 'test9' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 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 [["account_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", 13]] 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", 13]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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", 14]] Completed 200 OK in 18ms (Views: 12.1ms | ActiveRecord: 3.4ms)  (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  (8.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (7.2ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1001]] Completed 201 Created in 5ms (Views: 3.4ms | ActiveRecord: 0.9ms)  (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  (9.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.0ms) 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.2ms | ActiveRecord: 0.0ms)  (0.4ms) 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  (11.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.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.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 14:29:06 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$arMOGUeqJl7VRmqoYnnqcOp4jdDaN5i/YYKKh5ReveNr2UiqLEKne"], ["updated_at", Sat, 13 Jul 2013 14:29:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 14:29:06 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 16], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 14:29:06 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yzjAZXWqjkf8XUGyCy36' 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", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 16], ["created_at", Sat, 13 Jul 2013 14:29:06 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:06 UTC +00:00], ["id", 14], ["authentication_token", "yzjAZXWqjkf8XUGyCy36"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 14], ["created_at", Sat, 13 Jul 2013 14:29:06 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:06 UTC +00:00], ["user_id", 16]]  (0.7ms) 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", Sat, 13 Jul 2013 14:29:06 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$mbWnlC7M41dttP3D4jesZOC0YZvZmdj9nmcRN1GNefzMYUDDzvF/O"], ["updated_at", Sat, 13 Jul 2013 14:29:06 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_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", Sat, 13 Jul 2013 14:29:06 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$BYdXAlB2iMrigC9wSxXGe.3Yv0BFnyKqQskD3Vr/1Wh5slGhIkNri"], ["updated_at", Sat, 13 Jul 2013 14:29:06 UTC +00:00]]  (0.3ms) 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", Sat, 13 Jul 2013 14:29:06 UTC +00:00], ["name", "Root"], ["owner_id", 18], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 14:29:06 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8Tyj7SqdvMj9FA2Hz6Ue' 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", "Root"], ["subdomain", "www"], ["owner_id", 18], ["created_at", Sat, 13 Jul 2013 14:29:06 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 14:29:06 UTC +00:00], ["id", 15], ["authentication_token", "8Tyj7SqdvMj9FA2Hz6Ue"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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" ("authentication_token")  (4.6ms) 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)  (3.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (12.4ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.9ms) 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.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.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  (9.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.9ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.3ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (6.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] 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", 101]] Completed 200 OK in 124ms (Views: 114.3ms | ActiveRecord: 9.1ms)  (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  (9.9ms) 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  (10.8ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.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  (1.7ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (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  (9.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.4ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (6.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] 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", 101]] Completed 200 OK in 74ms (Views: 64.9ms | ActiveRecord: 8.9ms)  (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  (9.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.6ms) 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.4ms) 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  (9.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.1ms) 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.4ms) 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  (9.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.7ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.7ms) 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 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.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  (11.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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) ROLLBACK  (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.4ms) 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  (9.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.1ms) ROLLBACK  (0.3ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (7.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] 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", 101]] Completed 200 OK in 76ms (Views: 65.7ms | ActiveRecord: 9.7ms)  (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  (11.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.8ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (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  (9.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.2ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.1ms) 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 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.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  (12.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.1ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.5ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (6.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] 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", 101]] Completed 200 OK in 118ms (Views: 108.4ms | ActiveRecord: 9.0ms)  (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  (10.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.8ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (0.7ms) 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 6ms (Views: 4.4ms | ActiveRecord: 1.3ms)  (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  (8.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.9ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (18.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.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.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  (10.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.9ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (6.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] 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", 101]] Completed 200 OK in 118ms (Views: 108.7ms | ActiveRecord: 8.9ms)  (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  (11.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.2ms) ROLLBACK  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (0.7ms) 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 6ms (Views: 4.1ms | ActiveRecord: 1.3ms)  (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  (9.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.5ms) ROLLBACK  (0.7ms) 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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.9ms) 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 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.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  (10.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.9ms) 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.4ms) 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  (10.0ms) 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) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (6.1ms) 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 119ms (Views: 109.8ms | ActiveRecord: 8.7ms)  (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  (12.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.7ms) ROLLBACK  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] 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", 101]] Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 1.5ms)  (0.9ms) 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  (10.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.1ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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 Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (6.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] 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", 101]] Completed 200 OK in 112ms (Views: 102.0ms | ActiveRecord: 9.3ms)  (0.4ms) 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  (12.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.5ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"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.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", 101]] Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 1.8ms)  (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  (10.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  (2.2ms) 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.4ms) 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  (38.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (5.2ms) 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.4ms) 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  (8.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.9ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.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.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  (14.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (11.9ms) 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.4ms) 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  (9.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.6ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (5.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] 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", 101]] Completed 200 OK in 123ms (Views: 114.1ms | ActiveRecord: 8.4ms)  (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  (10.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.4ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 101]] Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 2.1ms)  (0.4ms) 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  (11.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (6.1ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.9ms) 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 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.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  (12.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.5ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.9ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (6.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] 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", 101]] Completed 200 OK in 122ms (Views: 112.0ms | ActiveRecord: 9.2ms)  (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  (10.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.3ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (0.7ms) 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 6ms (Views: 4.0ms | ActiveRecord: 1.3ms)  (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  (29.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.3ms) 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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.7ms) 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 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.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  (11.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.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.4ms) 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  (29.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (9.1ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (6.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] 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", 101]] Completed 200 OK in 75ms (Views: 65.9ms | ActiveRecord: 8.9ms)  (0.7ms) 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  (11.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.1ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (0.7ms) 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 6ms (Views: 3.9ms | ActiveRecord: 1.3ms)  (42.4ms) 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  (9.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.7ms) 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  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.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.2ms) BEGIN 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.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  (10.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (3.3ms) ROLLBACK  (0.6ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (7.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 [["account_id", 1001]] Completed 201 Created in 131ms (Views: 107.9ms | ActiveRecord: 10.6ms)  (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  (13.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) 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  (6.2ms) ROLLBACK  (0.2ms) BEGIN  (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" = 'test' LIMIT 1 SQL (5.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 15:07:10 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$v.zrs9Tlr.PgnDPx2gNJg.cKaGtDiR0uQf89WE0SVtEsZoSjE.5fq"], ["updated_at", Sat, 13 Jul 2013 15:07:10 UTC +00:00]] SQL (1.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 15:07:10 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 15:07:10 UTC +00:00]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3m9Lr9a9NxdsbMNsqzGr' 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" = 1 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 15:07:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:10 UTC +00:00], ["id", 1], ["authentication_token", "3m9Lr9a9NxdsbMNsqzGr"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 10:07:10 -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.4ms) 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 24ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.4ms) 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  (12.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (6.4ms) ROLLBACK  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 10:07:10 -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.3ms) 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.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 15:07:10 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$9xh9fBH5gNVmsz2RG/dDBe4Xe8c2r6ShFgvrhRw5arrP7GggG9Lfe"], ["updated_at", Sat, 13 Jul 2013 15:07:10 UTC +00:00]] SQL (35.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 15:07:10 UTC +00:00], ["name", "Testy"], ["owner_id", 2], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 15:07:10 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JGsU93Uq34YLykxWpESC' 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", Sat, 13 Jul 2013 15:07:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:10 UTC +00:00], ["id", 2], ["authentication_token", "JGsU93Uq34YLykxWpESC"]]  (0.2ms) 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", 2], ["created_at", Sat, 13 Jul 2013 15:07:10 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:10 UTC +00:00], ["user_id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1 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" != 2) LIMIT 1  (0.4ms) CREATE SCHEMA "test"  (8.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.9ms) 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")  (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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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)  (7.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 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", 2]] Completed 201 Created in 286ms (Views: 10.4ms | ActiveRecord: 92.0ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (16.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (52.9ms) ROLLBACK  (0.2ms) 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", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$7UeqiyyO4qh159N9PDlgVOKUZzTH5np6Ck.QC42C3S8zeNw13lPUm"], ["updated_at", Sat, 13 Jul 2013 15:07:11 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" = '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", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 3], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'u1C2fN2EYsWzxqzRZPeV' 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", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["id", 3], ["authentication_token", "u1C2fN2EYsWzxqzRZPeV"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["user_id", 3]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test1"  (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)  (4.6ms) 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.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)   (10.7ms) 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")  (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)   (2.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 10:07:11 -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' 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", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$jPLlsNoywfh7Bj4Fo/1L7e.cs2.3Ycrm/bU9BWxi4g/P0zrmS3NAS"], ["updated_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00]] SQL (4.0ms) 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", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["user_id", 4]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 4]] Cadenero::V1::Account Load (3.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" = $1 [["user_id", 4]] Completed 201 Created in 66ms (Views: 30.9ms | ActiveRecord: 11.3ms) Cadenero::V1::Account Load (3.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/4" for 127.0.0.1 at 2013-07-13 10:07:11 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"4"} Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (10.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", 3]] Cadenero::User Load (5.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 LIMIT 1 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 31ms (Views: 6.1ms | ActiveRecord: 18.6ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 4 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" = '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", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 4], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fMFo5Vtk719qddhNHGds' 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 #2"], ["subdomain", "test2"], ["owner_id", 4], ["created_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["id", 4], ["authentication_token", "fMFo5Vtk719qddhNHGds"]]  (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", 4], ["created_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.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.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)   (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) 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)  (8.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.9ms) SELECT version FROM "schema_migrations"  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) 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-13 10:07:11 -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", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$QQZkgNOxc2Vf5eec.c3P0OS1.kHg3Xpnp5q9sZlQ7BGn9IhmrTSNm"], ["updated_at", Sat, 13 Jul 2013 15:07:11 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", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["user_id", 5]]  (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" = 5 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 5]] 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", 5]] Completed 201 Created in 18ms (Views: 5.2ms | ActiveRecord: 3.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 Started GET "/v1/users/4" for 127.0.0.1 at 2013-07-13 10:07:11 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"4"} 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" = $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::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.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 11ms (Views: 6.4ms | ActiveRecord: 1.8ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-13 10:07:11 -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" WHERE "public"."cadenero_users"."id" = 4 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", 3]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 3]] 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", 3]] 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.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 17ms (Views: 11.9ms | ActiveRecord: 2.8ms)  (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  (10.0ms) 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  (12.0ms) ROLLBACK  (0.1ms) BEGIN  (2.5ms) SAVEPOINT active_record_1 SQL (6.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$JrSRs6/tKuBufLf6oEdQqukzo7tcnLvcY10Rs72Qb2m8q5c3.E9Ly"], ["updated_at", Sat, 13 Jul 2013 15:07:11 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 (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", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 6], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00]] Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'upsB5PjXYEruti7tNFUs' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (1.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" = 5 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 6], ["created_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["id", 5], ["authentication_token", "upsB5PjXYEruti7tNFUs"]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (3.3ms) 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", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["user_id", 6]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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)  (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")  (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)   (3.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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)  (1.3ms) 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.3ms) 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/users" for 127.0.0.1 at 2013-07-13 10:07:11 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.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.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", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$dMEl686rYh24MYXLQhlyMOktitz.i0ll/dSAkvkb44VkL6WF8f5GS"], ["updated_at", Sat, 13 Jul 2013 15:07:11 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", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["user_id", 7]]  (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" = 7 LIMIT 1 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 (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", 7]] Completed 201 Created in 22ms (Views: 5.4ms | ActiveRecord: 6.5ms) 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 Started GET "/v1/users/7" for 127.0.0.1 at 2013-07-13 10:07:11 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"7"} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (4.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"."id" = 7 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 5]] Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Cadenero::V1::Account Load (4.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 7]] Cadenero::V1::Account Load (9.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 200 OK in 29ms (Views: 5.5ms | ActiveRecord: 19.3ms)  (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  (16.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (16.0ms) ROLLBACK  (24.7ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON 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 (2.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 18ms (Views: 14.6ms | ActiveRecord: 3.2ms)  (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  (15.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.8ms) 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.9ms) ROLLBACK  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (6.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] 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", 101]] Completed 200 OK in 13ms (Views: 4.4ms | ActiveRecord: 8.5ms)  (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  (34.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (4.4ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.6ms) ROLLBACK  (14.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)  (3.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.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (3.8ms) 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  (4.6ms) ROLLBACK  (0.3ms) BEGIN  (0.3ms) 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", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$L9t8f3hWtASGTP656V3UxuEJqPQKQ8bgH7g.TxiqPLKiFK6J.cWlK"], ["updated_at", Sat, 13 Jul 2013 15:07:11 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", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 8], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00]] Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'uAkVuBTihPia4yUwdQUz' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (3.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" = 6 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 8], ["created_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["id", 6], ["authentication_token", "uAkVuBTihPia4yUwdQUz"]]  (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", 6], ["created_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:11 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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)   (2.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")  (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)  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) 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-13 10:07:12 -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 ('test4') 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" = 'user3@example.com' LIMIT 1 [["account_id", 6]] Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 8]] 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", 8]] Completed 201 Created in 21ms (Views: 6.3ms | ActiveRecord: 3.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-13 10:07:12 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"8", "default"=>:json} Cadenero::User Load (0.3ms) 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.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-13 10:07:12 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (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  (10.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.0ms) 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", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$EiMY/V5tCOJR77nT3f75h.a6p4V6PX18EhnXe3ZaGnIudIPAvVIvW"], ["updated_at", Sat, 13 Jul 2013 15:07:12 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.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 9], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2MjTzBUcvBbAMHncaJVz' 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", 9], ["created_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["id", 7], ["authentication_token", "2MjTzBUcvBbAMHncaJVz"]]  (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", 7], ["created_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["user_id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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")  (5.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.4ms) 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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 10:07:12 -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-13 10:07:12 -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.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", 7]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] 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", 9]] Completed 201 Created in 14ms (Views: 5.1ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 10:07:12 -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" = 9 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (6.1ms) 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", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$6cnZbqW7YKVZ63u7bnwI7u4iw//B1ztX1RR3ojn1cd73PWs6ZgbSK"], ["updated_at", Sat, 13 Jul 2013 15:07:12 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.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 10], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Xq5UuSicsFvv6MNowNAq' 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", 10], ["created_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["id", 8], ["authentication_token", "Xq5UuSicsFvv6MNowNAq"]]  (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", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["user_id", 10]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.2ms) 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.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.1ms) 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)  (1.2ms) 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 ('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-13 10:07:12 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (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  (9.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (5.1ms) 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", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$WwgwfYIc9BWMHokGsS4/0e.iuqfWOy3YRMpNZuhxQghbu2b/DAV26"], ["updated_at", Sat, 13 Jul 2013 15:07:12 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" = '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", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 11], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zG3q9xKr7VmC86yrJxX6' 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", 11], ["created_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["id", 9], ["authentication_token", "zG3q9xKr7VmC86yrJxX6"]]  (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", 9], ["created_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["user_id", 11]]  (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)   (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")  (5.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)  (1.2ms) 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")  (8.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.8ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 10:07:12 -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-13 10:07:12 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 'user@example.com' LIMIT 1 [["account_id", 9]] Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | 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  (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  (9.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (6.0ms) 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", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$K8JLS4P.JkZV6Vlue6rryOgYGuA0.rZ1R6GXzyib1z68hZlhVsR4m"], ["updated_at", Sat, 13 Jul 2013 15:07:12 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", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 12], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sqeYU2atKUzgsebJe333' 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", 12], ["created_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["id", 10], ["authentication_token", "sqeYU2atKUzgsebJe333"]]  (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", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["user_id", 12]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$vXwCG5bArxON2DGzaU99BOqoTxrIZ/EvszqrJApnuL/j9RqWZBhcS"], ["updated_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 13], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fBnydAb5zqY89z9iC4sE' 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", 13], ["created_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["id", 11], ["authentication_token", "fBnydAb5zqY89z9iC4sE"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.6ms) 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", 11], ["created_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["user_id", 13]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 10:07:12 -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-13 10:07:12 -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", 10]] 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (7.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", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$zi4c9Del1ob3MxmIXxdAJuY9Mv6bj3gyqIoDkmk7pp9HRaVh1.1K."], ["updated_at", Sat, 13 Jul 2013 15:07:12 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" = '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", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 14], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xqz48K27a7tpvSpESqPe' 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", 14], ["created_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["id", 12], ["authentication_token", "xqz48K27a7tpvSpESqPe"]]  (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", 12], ["created_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:12 UTC +00:00], ["user_id", 14]]  (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.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.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.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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 10:07:12 -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-13 10:07:12 -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 ('test10') 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", 12]] 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.0ms) 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  (6.6ms) ROLLBACK  (0.9ms) 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", Sat, 13 Jul 2013 15:07:15 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$tM22WpaD37hVBe.KXm/bnO.LbUL2tBEo2gtHKrTBJ3TktcSC95O.."], ["updated_at", Sat, 13 Jul 2013 15:07:15 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 15:07:15 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 15], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 15:07:15 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ND8rE9sdDs5rpfweFHFp' 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", 15], ["created_at", Sat, 13 Jul 2013 15:07:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:15 UTC +00:00], ["id", 13], ["authentication_token", "ND8rE9sdDs5rpfweFHFp"]]  (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", Sat, 13 Jul 2013 15:07:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:15 UTC +00:00], ["user_id", 15]]  (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", Sat, 13 Jul 2013 15:07:15 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$LPyKtxZLSnnnvG//CvbaVOIuYAlJzOd3S6PRTVCqYFOTlYdop40g."], ["updated_at", Sat, 13 Jul 2013 15:07:15 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", Sat, 13 Jul 2013 15:07:15 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$m1N15unlVam5fDsM7M7ad.eIKZ4rBmAFEjKneExwaDlEPBFFRFW26"], ["updated_at", Sat, 13 Jul 2013 15:07:15 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", Sat, 13 Jul 2013 15:07:15 UTC +00:00], ["name", "Root"], ["owner_id", 17], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 15:07:15 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2uaiqW5qy1P3eu3AdyTH' 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", "Root"], ["subdomain", "www"], ["owner_id", 17], ["created_at", Sat, 13 Jul 2013 15:07:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:15 UTC +00:00], ["id", 14], ["authentication_token", "2uaiqW5qy1P3eu3AdyTH"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (7.5ms) 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", Sat, 13 Jul 2013 15:07:15 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$wB2y3Gw1cDBXFMm.Vkh97esORnUT5izP9RG.DrUF87QI4ksS7kFba"], ["updated_at", Sat, 13 Jul 2013 15:07:15 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", Sat, 13 Jul 2013 15:07:15 UTC +00:00], ["name", "Test Account"], ["owner_id", 18], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 15:07:15 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'k7F7BJ3ohrFnzqVqaEpo' 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"], ["subdomain", "test"], ["owner_id", 18], ["created_at", Sat, 13 Jul 2013 15:07:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:15 UTC +00:00], ["id", 15], ["authentication_token", "k7F7BJ3ohrFnzqVqaEpo"]]  (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", 15], ["created_at", Sat, 13 Jul 2013 15:07:15 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:07:15 UTC +00:00], ["user_id", 18]]  (0.2ms) RELEASE SAVEPOINT active_record_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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 15]]  (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  (13.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.6ms) ROLLBACK  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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  (10.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.5ms) ROLLBACK  (0.1ms) 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.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  (16.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.0ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.2ms) ROLLBACK Connecting to database specified by database.yml  (3.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  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (45.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  (15.7ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 18ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (14.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  (34.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 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)  (1.3ms) 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.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.6ms) BEGIN Cadenero::V1::Account Exists (10.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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  (22.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  (2.7ms) BEGIN  (8.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (7.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 15:49:20 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$6kk3kCA4yhs68cSccDgjqu4NHkgFdJ/ROfeBe/RK18hJpPaSqkVZK"], ["updated_at", Sat, 13 Jul 2013 15:49:20 UTC +00:00]] 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", Sat, 13 Jul 2013 15:49:20 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 15:49:20 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vSW65ngiY8Qqz3qG5qxy' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 15:49:20.100651', "updated_at" = '2013-07-13 15:49:20.100651', "authentication_token" = 'vSW65ngiY8Qqz3qG5qxy' WHERE "public"."cadenero_accounts"."id" = 1  (1.0ms) RELEASE SAVEPOINT active_record_1  (10.9ms) SAVEPOINT active_record_1 SQL (3.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", Sat, 13 Jul 2013 15:49:20 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:49:20 UTC +00:00], ["user_id", 1]]  (0.1ms) 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  (0.5ms) ROLLBACK  (0.7ms) 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  (11.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.4ms) BEGIN Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (1.8ms) ROLLBACK  (1.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  (14.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.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  (29.2ms) 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.9ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 10:49:20 -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}  (11.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 15:49:20 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$w5NitISZnFTByzcrWXlrneBazj5IVM/HnOZO/2zf/Xz/1oMav4QJy"], ["updated_at", Sat, 13 Jul 2013 15:49:20 UTC +00:00]] 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", Sat, 13 Jul 2013 15:49:20 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 15:49:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Tp8qhdwBynsZKBuzAH8X' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 15:49:20.982190', "updated_at" = '2013-07-13 15:49:20.982190', "authentication_token" = 'Tp8qhdwBynsZKBuzAH8X' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 15:49:20 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:49:20 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 1) LIMIT 1  (0.5ms) CREATE SCHEMA "test"  (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)  (3.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (24.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (14.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)   (9.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (14.8ms) 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.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (6.7ms) 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 ('20130612073709')  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (3.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Completed 201 Created in 476ms (Views: 2.0ms | ActiveRecord: 152.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (10.0ms) 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  (17.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) 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  (1.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (8.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (3.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 15:49:21 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$JsMTLw73tT0cpPXExpXNXOZiJ./93l5ZwK2ZReHAmz0vscLSPr0EG"], ["updated_at", Sat, 13 Jul 2013 15:49:21 UTC +00:00]] 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", Sat, 13 Jul 2013 15:49:21 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 15:49:21 UTC +00:00]] Cadenero::V1::Account Load (19.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RJ7fr97c7PzJQozp5Js8' LIMIT 1  (21.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 15:49:21.505662', "updated_at" = '2013-07-13 15:49:21.505662', "authentication_token" = 'RJ7fr97c7PzJQozp5Js8' WHERE "public"."cadenero_accounts"."id" = 1  (4.2ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 10:49:21 -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}  (7.6ms) 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  (4.0ms) 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 147ms (Views: 0.3ms | ActiveRecord: 12.3ms) Cadenero::V1::Account Load (5.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (8.4ms) ROLLBACK  (2.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  (13.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  (1.6ms) BEGIN  (8.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", Sat, 13 Jul 2013 15:49:21 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$oK0.06BrfP1xgiaavpmvvuiF12n3Y3TQO4D/WoEvMqK1JX8bieyoO"], ["updated_at", Sat, 13 Jul 2013 15:49:21 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (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", Sat, 13 Jul 2013 15:49:21 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 15:49:21 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rHJnxh4fRNxFqBim5fvp' LIMIT 1  (1.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-13 15:49:21.974738', "updated_at" = '2013-07-13 15:49:21.974738', "authentication_token" = 'rHJnxh4fRNxFqBim5fvp' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 15:49:21 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:49:21 UTC +00:00], ["user_id", 1]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (2.0ms) CREATE SCHEMA "test1"  (3.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.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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)   (3.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 10:49: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.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Sat, 13 Jul 2013 15:49:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$OmUCAsYDI7mZ7xQ9FDl.duPd11f58J6jWoFGAogNf9thQ7AH.FNBi"], ["updated_at", Sat, 13 Jul 2013 15:49:22 UTC +00:00]] SQL (5.0ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 15:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:49:22 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (2.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" = 2 Completed 201 Created in 161ms (Views: 37.5ms | ActiveRecord: 11.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-13 10:49:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (1.1ms) 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 14ms (Views: 5.5ms | ActiveRecord: 3.5ms)  (5.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  (18.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (12.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (6.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 15:49:22 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$EyEwiWVcBK0mAz2RZUhA5uQ0p8EH8qV3rYe1cUvjn34mEdAOQUg0W"], ["updated_at", Sat, 13 Jul 2013 15:49:22 UTC +00:00]]  (6.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (5.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Sat, 13 Jul 2013 15:49:22 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 15:49:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'KVxrDfocCrZAd4iZKEVq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-13 15:49:22.526996', "updated_at" = '2013-07-13 15:49:22.526996', "authentication_token" = 'KVxrDfocCrZAd4iZKEVq' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Sat, 13 Jul 2013 15:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:49:22 UTC +00:00], ["user_id", 1]]  (2.3ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test2"  (9.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)  (8.5ms) 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")  (8.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)   (1.9ms) 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")  (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.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 10:49: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 (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (4.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 15:49:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$/KScWbbmH8lRDr7bEBdQjuujxyOrJngkjKpFzO.rmL73RN8ponJbe"], ["updated_at", Sat, 13 Jul 2013 15:49: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", 1], ["created_at", Sat, 13 Jul 2013 15:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:49:22 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 141ms (Views: 6.2ms | ActiveRecord: 8.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-13 10:49:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 1.4ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 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.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", Sat, 13 Jul 2013 15:49:22 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 15:49:22 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TwPpjm8VGMUB9RqZsGux' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 2, "created_at" = '2013-07-13 15:49:22.786979', "updated_at" = '2013-07-13 15:49:22.786979', "authentication_token" = 'TwPpjm8VGMUB9RqZsGux' WHERE "public"."cadenero_accounts"."id" = 2  (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", Sat, 13 Jul 2013 15:49:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:49:22 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) CREATE SCHEMA "test3"  (8.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" ("authentication_token")  (2.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.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)   (3.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (5.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 10:49: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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.5ms) 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", Sat, 13 Jul 2013 15:49:23 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$vayxfLw22rYi09GXNLZFbe1uXvT/lahjFjzKY8jc9mv1nCS/ZLCXW"], ["updated_at", Sat, 13 Jul 2013 15:49:23 UTC +00:00]] SQL (106.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Sat, 13 Jul 2013 15:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:49:23 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 244ms (Views: 5.7ms | ActiveRecord: 110.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/2" for 127.0.0.1 at 2013-07-13 10:49:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (5.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 18ms (Views: 6.3ms | ActiveRecord: 8.0ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-13 10:49:23 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (5.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" = 1 Cadenero::User Load (3.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 25ms (Views: 11.9ms | ActiveRecord: 10.7ms)  (20.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  (21.7ms) 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.4ms) 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", Sat, 13 Jul 2013 15:49:23 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$Elk2fZp2QajPdz34yJAO3OkQWGDA8lkW56eIu9eraS6JE60Qi8.IG"], ["updated_at", Sat, 13 Jul 2013 15:49:23 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 (2.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", Sat, 13 Jul 2013 15:49:23 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 15:49:23 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PBsP8LusYuq3Rh3dzJ9D' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-13 15:49:23.447255', "updated_at" = '2013-07-13 15:49:23.447255', "authentication_token" = 'PBsP8LusYuq3Rh3dzJ9D' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.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", Sat, 13 Jul 2013 15:49:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:49:23 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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)  (2.4ms) 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")  (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)   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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)  (3.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.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.7ms) 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-13 10:49: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-13 10:49: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 (2.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') 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" = 'user3@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 134ms (Views: 4.4ms | ActiveRecord: 4.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 10:49: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" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.0ms) ROLLBACK  (1.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.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (17.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 15:49:23 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$SKYG//sZE/2eUkgsNVdB4uabEcMzFAZHqxYBM3qLULWrkDcHmNOPe"], ["updated_at", Sat, 13 Jul 2013 15:49:23 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (20.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' 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", Sat, 13 Jul 2013 15:49:24 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 15:49:24 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'KMmuegmLi5ffWFWLHTz7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-13 15:49:24.049219', "updated_at" = '2013-07-13 15:49:24.049219', "authentication_token" = 'KMmuegmLi5ffWFWLHTz7' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Sat, 13 Jul 2013 15:49:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:49:24 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (30.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)  (12.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.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)   (5.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.4ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 10:49:24 -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 (9.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" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) 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 142ms (Views: 4.7ms | ActiveRecord: 10.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-13 10:49:24 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-13 10:49: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.2ms | ActiveRecord: 0.0ms)  (7.0ms) 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  (32.7ms) 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.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", Sat, 13 Jul 2013 15:49:24 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$U6zGb2Fod3noI93sbh0oiuvY9YZm1ygK.GTcI4w5PEjSZLN1JrZIS"], ["updated_at", Sat, 13 Jul 2013 15:49:24 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 (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", Sat, 13 Jul 2013 15:49:24 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 15:49:24 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ktMXyUdJ7YVcfKsLqhYY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-13 15:49:24.558339', "updated_at" = '2013-07-13 15:49:24.558339', "authentication_token" = 'ktMXyUdJ7YVcfKsLqhYY' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 15:49:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:49:24 UTC +00:00], ["user_id", 1]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test6"  (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)   (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")  (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.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.8ms) 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-13 10:49: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-13 10:49: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 ('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"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (1.9ms) 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  (13.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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.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", Sat, 13 Jul 2013 15:49:24 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$b0u3g/8N4yHy5996ujNZ8eiyOaDvUskqOaE.43XJoj0XqPS231jLq"], ["updated_at", Sat, 13 Jul 2013 15:49:24 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.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", Sat, 13 Jul 2013 15:49:24 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 15:49:24 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wxwjzTpByLq2MjKtHtsi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-13 15:49:24.779722', "updated_at" = '2013-07-13 15:49:24.779722', "authentication_token" = 'wxwjzTpByLq2MjKtHtsi' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.1ms) SAVEPOINT active_record_1 SQL (3.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", Sat, 13 Jul 2013 15:49:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:49:24 UTC +00:00], ["user_id", 1]]  (1.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (12.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" ("authentication_token")  (5.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 10:49:24 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1  (4.9ms) 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  (25.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.8ms) 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  (2.0ms) 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", Sat, 13 Jul 2013 15:49:25 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$UrKE.jWSLuCWfsIgUv9ps.ztpbh5DkH470S99G3ZU0bYtR7jmuemC"], ["updated_at", Sat, 13 Jul 2013 15:49:25 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" = 'test8' 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", Sat, 13 Jul 2013 15:49:25 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 15:49:25 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'jZ9xCh5tN7351uTotZEk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-13 15:49:25.022824', "updated_at" = '2013-07-13 15:49:25.022824', "authentication_token" = 'jZ9xCh5tN7351uTotZEk' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (10.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", Sat, 13 Jul 2013 15:49:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:49:25 UTC +00:00], ["user_id", 1]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (8.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.4ms) 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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.7ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Sat, 13 Jul 2013 15:49:25 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$uyyuHPdbhS5hgH1oP0zJS.yTaDzqaI42hURnI5wtRmcVaTs65aKUa"], ["updated_at", Sat, 13 Jul 2013 15:49:25 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", Sat, 13 Jul 2013 15:49:25 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 2], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 15:49:25 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qPs2JVNzraMEzrS519z6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 2, "created_at" = '2013-07-13 15:49:25.199708', "updated_at" = '2013-07-13 15:49:25.199708', "authentication_token" = 'qPs2JVNzraMEzrS519z6' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Sat, 13 Jul 2013 15:49:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:49:25 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 10:49:25 -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-13 10:49:25 -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.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" = 'user8@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | 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  (6.9ms) 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  (14.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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 (1.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 15:49:25 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$KylX7vNO2BGYNGj0UQbBCedBJnmlC6eqxAzJBfYBHCPJr7oZ09cZq"], ["updated_at", Sat, 13 Jul 2013 15:49:25 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" = 'test10' 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", Sat, 13 Jul 2013 15:49:25 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 15:49:25 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4p4J5hVhEYpsAUzxhicy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-13 15:49:25.365130', "updated_at" = '2013-07-13 15:49:25.365130', "authentication_token" = '4p4J5hVhEYpsAUzxhicy' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 15:49:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:49:25 UTC +00:00], ["user_id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test10"  (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.7ms) 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")  (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)   (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (37.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 10:49:25 -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-13 10:49:25 -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 ('test10') 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 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.3ms) 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.2ms) 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.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.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  (16.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 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.2ms) 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  (16.1ms) 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.4ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (0.6ms) 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 6ms (Views: 4.6ms | ActiveRecord: 1.1ms)  (0.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  (17.3ms) 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  (1.5ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (1.2ms) 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 8ms (Views: 5.5ms | ActiveRecord: 1.8ms)  (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  (17.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.8ms) BEGIN  (3.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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", Sat, 13 Jul 2013 15:49:29 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$NgUoPhuLc9hbC2pXKQv1Ge..t0uMJ/lnDxnTUnDP.V.s/YVJ9JYhi"], ["updated_at", Sat, 13 Jul 2013 15:49:29 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (0.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", Sat, 13 Jul 2013 15:49:29 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 15:49:29 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'R1gkej6xpBgGydHncHtT' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-13 15:49:29.964303', "updated_at" = '2013-07-13 15:49:29.964303', "authentication_token" = 'R1gkej6xpBgGydHncHtT' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Sat, 13 Jul 2013 15:49:29 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 15:49:29 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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", Sat, 13 Jul 2013 15:49:30 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$Bw7U9J5M3VKCHGJSBtM/7eNxIQnHMPt7J/1KX2LivNOliXNuFr45q"], ["updated_at", Sat, 13 Jul 2013 15:49:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_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", Sat, 13 Jul 2013 15:49:30 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$5mLAykdvAdnQ/aWzEkVXneGPYysWs5AZ2aiBjoy3es5evTwxLqWci"], ["updated_at", Sat, 13 Jul 2013 15:49: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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Sat, 13 Jul 2013 15:49:30 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 15:49:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TRwVzSHxBs3p9N3QF9ka' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-13 15:49:30.188308', "updated_at" = '2013-07-13 15:49:30.188308', "authentication_token" = 'TRwVzSHxBs3p9N3QF9ka' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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" ("authentication_token")  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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.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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (5.2ms) ROLLBACK  (0.4ms) 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  (18.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 Connecting to database specified by database.yml  (30.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  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (29.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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.7ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (10.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:16:34 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$EdahU3GsZhvDlw/ZRcmaKOXx/svKa6qZ/yoaKqEv2zY0UmRnhqeT."], ["updated_at", Sat, 13 Jul 2013 16:16:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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" = 'test1' LIMIT 1 SQL (1.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", Sat, 13 Jul 2013 16:16:34 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 16:16:34 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eduSLTrhRCcz8JFwKM8K' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-13 16:16:34.616319', "updated_at" = '2013-07-13 16:16:34.616319', "authentication_token" = 'eduSLTrhRCcz8JFwKM8K' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 16:16:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:16:34 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", Sat, 13 Jul 2013 16:16:34 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$qVcxJCNh.aFN7QKOYDkIduMU2IIGf//p3CaEwsXCnpHm47EaGJ6PS"], ["updated_at", Sat, 13 Jul 2013 16:16:34 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", Sat, 13 Jul 2013 16:16:34 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$ykFLsd7KkU1Xgp6Sn8CwiuCi/nqAzUFFznTENwFnW5jG6AIYRimLG"], ["updated_at", Sat, 13 Jul 2013 16:16:34 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", Sat, 13 Jul 2013 16:16:34 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 16:16:34 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Gpd1G9MyGa6PVpgwSYhY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-13 16:16:34.922437', "updated_at" = '2013-07-13 16:16:34.922437', "authentication_token" = 'Gpd1G9MyGa6PVpgwSYhY' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www"  (7.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" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.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)  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.7ms) 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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (4.6ms) 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  (47.3ms) 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) 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  (15.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.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.4ms | 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  (18.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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.6ms) 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.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  (14.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 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" = 101 Completed 200 OK in 31ms (Views: 29.6ms | ActiveRecord: 1.4ms)  (0.2ms) 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  (14.9ms) 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 Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (0.6ms) 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 6ms (Views: 4.5ms | ActiveRecord: 1.1ms)  (0.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  (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  (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", Sat, 13 Jul 2013 16:16:35 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$8gdEh8OmZwuz7JOZkgs5cueYkAsOzf5s60YAE1QR4jZD0yyq9ygDa"], ["updated_at", Sat, 13 Jul 2013 16:16:35 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" = 'test2' 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", Sat, 13 Jul 2013 16:16:35 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 16:16:35 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EqAFA8qPpM1ristRBSqr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-13 16:16:35.878655', "updated_at" = '2013-07-13 16:16:35.878655', "authentication_token" = 'EqAFA8qPpM1ristRBSqr' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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", Sat, 13 Jul 2013 16:16:35 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:16:35 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)   (2.2ms) 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.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)  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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-13 11:16: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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 11:16:35 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 10ms (Views: 0.4ms | ActiveRecord: 1.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.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  (13.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:16:36 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$JNUprz68HjM.Az/9omdzTOk.stFeKa6GPFK869B5OQWseOAbmOg/G"], ["updated_at", Sat, 13 Jul 2013 16:16:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (9.9ms) 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 (1.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", Sat, 13 Jul 2013 16:16:36 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 16:16:36 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RcfsUDgkWq2Y2dAXVP2w' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-13 16:16:36.177295', "updated_at" = '2013-07-13 16:16:36.177295', "authentication_token" = 'RcfsUDgkWq2Y2dAXVP2w' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 16:16:36 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:16:36 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (28.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.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (5.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 ('20130612073709')  (11.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 11:16:36 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (7.7ms) 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" = 'user4@example.com' LIMIT 1 Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 Cadenero::V1::Account Load (10.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" = 1 Completed 201 Created in 183ms (Views: 8.1ms | ActiveRecord: 20.2ms) Cadenero::V1::Account Load (11.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-13 11:16:36 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 1.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:16: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.7ms | ActiveRecord: 0.0ms)  (5.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  (15.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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.4ms) 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", Sat, 13 Jul 2013 16:16:36 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$aqg4QFdncnBdJpRj3.6NAehRmSwAYM2EH7zWo6pknSfHRxqhPeCmu"], ["updated_at", Sat, 13 Jul 2013 16:16:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) 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 (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", Sat, 13 Jul 2013 16:16:36 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 16:16:36 UTC +00:00]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7pWbLZrgsGzNsyu6Rspy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-13 16:16:36.784383', "updated_at" = '2013-07-13 16:16:36.784383', "authentication_token" = '7pWbLZrgsGzNsyu6Rspy' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 16:16:36 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:16:36 UTC +00:00], ["user_id", 1]]  (2.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (8.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)   (5.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (9.8ms) 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)  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.3ms) 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-13 11:16: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.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 11:16:36 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (15.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (19.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" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 40ms (Views: 0.4ms | ActiveRecord: 35.0ms) Cadenero::V1::Account Load (11.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (20.4ms) ROLLBACK  (2.4ms) 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  (54.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (3.3ms) 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.7ms) BEGIN  (0.3ms) 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", Sat, 13 Jul 2013 16:16:37 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$EsJX4nB9fMzpezWK2NTwSe8OKUnMiDabsxY4yqhIMrACjOtIK4SwC"], ["updated_at", Sat, 13 Jul 2013 16:16:37 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (8.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (2.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", Sat, 13 Jul 2013 16:16:37 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 16:16:37 UTC +00:00]] Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fs1wkAaqk9pTj8Vfzi1J' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-13 16:16:37.162211', "updated_at" = '2013-07-13 16:16:37.162211', "authentication_token" = 'fs1wkAaqk9pTj8Vfzi1J' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Sat, 13 Jul 2013 16:16:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:16:37 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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.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)  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.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.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.0ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Sat, 13 Jul 2013 16:16:37 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$dNCpHfVUHcus1B291PxIK.G2bZwoXNo.ug0dLb/9udY/aPc2nwje6"], ["updated_at", Sat, 13 Jul 2013 16:16:37 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", Sat, 13 Jul 2013 16:16:37 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 16:16:37 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XjxeswpmC5xt1zHBy9tk' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 2, "created_at" = '2013-07-13 16:16:37.408904', "updated_at" = '2013-07-13 16:16:37.408904', "authentication_token" = 'XjxeswpmC5xt1zHBy9tk' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Sat, 13 Jul 2013 16:16:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:16:37 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:16: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.5ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 11:16:37 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (6.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (7.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" = 'user7@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 27ms (Views: 8.9ms | ActiveRecord: 13.8ms) Cadenero::V1::Account Load (2.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (8.0ms) 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  (15.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  (12.3ms) SAVEPOINT active_record_1 SQL (4.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:16:37 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$.vQ69ciIfr9oXplGxV.eTen2j1.Jz3GWUGYzY3MCicSCu7q.58XPi"], ["updated_at", Sat, 13 Jul 2013 16:16:37 UTC +00:00]]  (2.2ms) RELEASE SAVEPOINT active_record_1  (1.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (8.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", Sat, 13 Jul 2013 16:16:37 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 16:16:37 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VqFr7LRbzGoByT2ZnqTn' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-13 16:16:37.736071', "updated_at" = '2013-07-13 16:16:37.736071', "authentication_token" = 'VqFr7LRbzGoByT2ZnqTn' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Sat, 13 Jul 2013 16:16:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:16:37 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (8.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)   (2.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.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")  (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)   (3.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:16: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-13 11:16:37 -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.6ms) 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" = 'user8@example.com' LIMIT 1 Cadenero::User Load (7.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 166ms (Views: 4.9ms | ActiveRecord: 10.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:16:38 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (3.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 3.4ms)  (12.1ms) ROLLBACK  (0.7ms) 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  (29.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) 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.7ms) BEGIN  (1.0ms) 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", Sat, 13 Jul 2013 16:16:38 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$z4zWDCDgBDGo3L1IPV9x8eX1BcvL2MoWORTl4n0XAUJOI4KaR76.K"], ["updated_at", Sat, 13 Jul 2013 16:16:38 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" = 'test8' LIMIT 1 SQL (4.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", Sat, 13 Jul 2013 16:16:38 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 16:16:38 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yCuiEUkJCSc59XfGgzTU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-13 16:16:38.261712', "updated_at" = '2013-07-13 16:16:38.261712', "authentication_token" = 'yCuiEUkJCSc59XfGgzTU' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 16:16:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:16:38 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (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")  (3.1ms) 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)  (2.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (5.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.3ms) SELECT version FROM "schema_migrations"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.3ms) 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-13 11:16:38 -0500 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@example.com' LIMIT 1  (8.3ms) 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  (22.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.3ms) 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.6ms) BEGIN  (7.7ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:16:38 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$IaBIuIXRr2.D2Pxie1QLaOsqC977sJZIwxbtw0CDxvAyqUSCSjwEu"], ["updated_at", Sat, 13 Jul 2013 16:16: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" = 'test9' 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", Sat, 13 Jul 2013 16:16:38 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 16:16:38 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nbo6g8DuzZkTPDVzy6D1' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-13 16:16:38.556770', "updated_at" = '2013-07-13 16:16:38.556770', "authentication_token" = 'nbo6g8DuzZkTPDVzy6D1' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 16:16:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:16:38 UTC +00:00], ["user_id", 1]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (1.2ms) CREATE SCHEMA "test9"  (8.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)   (8.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.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)  (3.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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)   (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (3.5ms) 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/users" for 127.0.0.1 at 2013-07-13 11:16: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.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:16:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$k9ufh6rJ0apGTxXb93fm2eyAU6hlgjKEBOP2NLGNZP8O2R9Vro1jG"], ["updated_at", Sat, 13 Jul 2013 16:16:38 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", 1], ["created_at", Sat, 13 Jul 2013 16:16:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:16:38 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 148ms (Views: 5.1ms | ActiveRecord: 3.2ms) Cadenero::V1::Account Load (9.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-13 11:16:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (5.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (4.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"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 19ms (Views: 5.4ms | ActiveRecord: 9.9ms)  (7.0ms) ROLLBACK  (0.9ms) 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  (27.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.5ms) BEGIN  (1.6ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:16:39 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$sbllnbATYyzT7079gzbu2eHb3BKRvUoUxJfq3bruTIsBvhhem8lXi"], ["updated_at", Sat, 13 Jul 2013 16:16:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (1.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", Sat, 13 Jul 2013 16:16:39 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 16:16:39 UTC +00:00]] Cadenero::V1::Account Load (4.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4YLTLWeedBM2boMqv79j' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-13 16:16:39.142337', "updated_at" = '2013-07-13 16:16:39.142337', "authentication_token" = '4YLTLWeedBM2boMqv79j' WHERE "public"."cadenero_accounts"."id" = 1  (0.8ms) 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", Sat, 13 Jul 2013 16:16:39 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:16:39 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (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.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.8ms) 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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.1ms) 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)  (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.8ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 11:16:39 -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" = 'test10' LIMIT 1  (1.0ms) 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", Sat, 13 Jul 2013 16:16:39 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$IKa8C4/pyQFilBgCMGUN2OWCMoOA08tjqlEEKIRVWvIzbJZu5rR/W"], ["updated_at", Sat, 13 Jul 2013 16:16:39 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", Sat, 13 Jul 2013 16:16:39 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:16:39 UTC +00:00], ["user_id", 2]]  (5.0ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (4.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 198ms (Views: 5.7ms | ActiveRecord: 15.3ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-13 11:16:39 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' 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"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 12ms (Views: 5.7ms | ActiveRecord: 2.5ms) Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' 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", Sat, 13 Jul 2013 16:16:39 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 2], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 16:16:39 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3riTqUQWspWYnwpd25sR' LIMIT 1  (9.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 2, "created_at" = '2013-07-13 16:16:39.455285', "updated_at" = '2013-07-13 16:16:39.455285', "authentication_token" = '3riTqUQWspWYnwpd25sR' WHERE "public"."cadenero_accounts"."id" = 2  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", Sat, 13 Jul 2013 16:16:39 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:16:39 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (13.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)  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) 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)   (5.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.6ms) 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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.7ms) 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') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 11:16:39 -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' LIMIT 1  (0.4ms) SAVEPOINT active_record_1 SQL (5.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:16:39 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$0g0gcAG373sIfgHymRt9YeUF2pFSEkyoqw43MqGcXVhqS1wr1nh/C"], ["updated_at", Sat, 13 Jul 2013 16:16:39 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", 2], ["created_at", Sat, 13 Jul 2013 16:16:39 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:16:39 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 176ms (Views: 6.4ms | ActiveRecord: 8.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-13 11:16:39 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 13ms (Views: 6.4ms | ActiveRecord: 3.4ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-13 11:16:39 -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" = '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 Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 17ms (Views: 11.7ms | ActiveRecord: 3.9ms)  (15.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  (38.9ms) 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 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)  (14.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.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (3.8ms) 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"}} Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.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  (11.9ms) 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  (1.9ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 11:16:40 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (1.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (2.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:16:40 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$A1JjGFd1.RTy48Cv6UqX3O9TEEzyB5iK2KWQtr81/aJIbI9jquCzm"], ["updated_at", Sat, 13 Jul 2013 16:16:40 UTC +00:00]] 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", Sat, 13 Jul 2013 16:16:40 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 16:16:40 UTC +00:00]] Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rxbHqmb9s3xpLnCAKKU7' LIMIT 1  (9.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 16:16:40.239707', "updated_at" = '2013-07-13 16:16:40.239707', "authentication_token" = 'rxbHqmb9s3xpLnCAKKU7' WHERE "public"."cadenero_accounts"."id" = 1  (2.5ms) 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", Sat, 13 Jul 2013 16:16:40 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:16:40 UTC +00:00], ["user_id", 1]]  (0.9ms) RELEASE SAVEPOINT active_record_1 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" != 1) LIMIT 1  (0.1ms) CREATE SCHEMA "test"  (10.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.7ms) 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")  (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)  (1.7ms) 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")  (5.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.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Completed 201 Created in 249ms (Views: 1.7ms | ActiveRecord: 77.8ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.9ms) 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;  (11.3ms) 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  (2.5ms) BEGIN  (3.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (7.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:16:40 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$swryQMfITRHD4mlE.Ci1kelqpQh7TqfdkaKcFNtLP4XWEFnd3meJq"], ["updated_at", Sat, 13 Jul 2013 16:16:40 UTC +00:00]] 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", Sat, 13 Jul 2013 16:16:40 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 16:16:40 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RAEpokGNHSutVCLesySL' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 16:16:40.560706', "updated_at" = '2013-07-13 16:16:40.560706', "authentication_token" = 'RAEpokGNHSutVCLesySL' WHERE "public"."cadenero_accounts"."id" = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 11:16:40 -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.8ms) 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  (9.0ms) 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 210ms (Views: 0.3ms | ActiveRecord: 18.1ms) Cadenero::V1::Account Load (3.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.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  (24.9ms) 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.3ms) BEGIN Cadenero::V1::Account Exists (2.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' 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  (24.9ms) 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.3ms) 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.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  (19.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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  (16.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) 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  (2.4ms) 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 (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:16:41 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$tRAWsInc6H9ggMtacVxJIOviuqh2GAq7WsHXZ66Fn.NokRcw8Y3F."], ["updated_at", Sat, 13 Jul 2013 16:16:41 UTC +00:00]] 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", Sat, 13 Jul 2013 16:16:41 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 16:16:41 UTC +00:00]] Cadenero::V1::Account Load (5.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gLmqx2r5BH9qBkfJAzDe' LIMIT 1  (4.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 16:16:41.507145', "updated_at" = '2013-07-13 16:16:41.507145', "authentication_token" = 'gLmqx2r5BH9qBkfJAzDe' WHERE "public"."cadenero_accounts"."id" = 1  (9.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 SQL (2.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", Sat, 13 Jul 2013 16:16:41 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:16:41 UTC +00:00], ["user_id", 1]]  (6.3ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 LIMIT 1  (2.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  (19.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (14.2ms) 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.8ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 24ms (Views: 2.9ms | 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  (28.6ms) 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  (6.9ms) 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) 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  (43.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.3ms) BEGIN  (2.1ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (10.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:19:50 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$Zejf/8mYDlYqkkM/B7hgV.lF2Mqh.mqA7cLGSlplVrlyQKgk/Mq86"], ["updated_at", Sat, 13 Jul 2013 16:19:50 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" = 'test1' 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", Sat, 13 Jul 2013 16:19:50 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 16:19:50 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3d4qtdELPuLSQXmwyNR3' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-13 16:19:50.426439', "updated_at" = '2013-07-13 16:19:50.426439', "authentication_token" = '3d4qtdELPuLSQXmwyNR3' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 16:19:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:19:50 UTC +00:00], ["user_id", 1]]  (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", Sat, 13 Jul 2013 16:19:50 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$/2aGYuJxb6qd2NUBQfe.ze8l9AOPHaHcMLz0jYcIN4IBdHyxxtRL."], ["updated_at", Sat, 13 Jul 2013 16:19:50 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", Sat, 13 Jul 2013 16:19:50 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$C6IU78bBoK50T6a/76z7lOJBRWnfxOrEaBe8LuhrhopDzm1LJiugC"], ["updated_at", Sat, 13 Jul 2013 16:19:50 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.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", Sat, 13 Jul 2013 16:19:50 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 16:19:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'B5tbPqsCpEnviJQyZq8q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-13 16:19:50.736708', "updated_at" = '2013-07-13 16:19:50.736708', "authentication_token" = 'B5tbPqsCpEnviJQyZq8q' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www"  (6.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.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)  (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")  (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.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.9ms) SELECT version FROM "schema_migrations"  (0.5ms) 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')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (5.3ms) 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  (13.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.2ms) BEGIN  (0.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  (13.5ms) 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  (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", Sat, 13 Jul 2013 16:19:50 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$ezzY/1FPmJmFIgCCvjC/i.YMY.pqQAOWw.Fpv3poy138Sb9DJDuRu"], ["updated_at", Sat, 13 Jul 2013 16:19:50 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" = 'test2' LIMIT 1 SQL (1.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", Sat, 13 Jul 2013 16:19:50 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 16:19:50 UTC +00:00]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'NqMnDajpysEtQ12qxHYR' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-13 16:19:50.996166', "updated_at" = '2013-07-13 16:19:50.996166', "authentication_token" = 'NqMnDajpysEtQ12qxHYR' WHERE "public"."cadenero_accounts"."id" = 1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Sat, 13 Jul 2013 16:19:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:19:51 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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.5ms) 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")  (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.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")  (9.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.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:19: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 5ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 11:19:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.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 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 180ms (Views: 69.8ms | ActiveRecord: 2.9ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:19: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" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (5.8ms) ROLLBACK  (0.4ms) 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  (11.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.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", Sat, 13 Jul 2013 16:19:51 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$KMSGGdIbLYxSe3kMLQhzoOtKEfOp5NwbGfrbst0eOaUWMMExESaaK"], ["updated_at", Sat, 13 Jul 2013 16:19:51 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 (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", Sat, 13 Jul 2013 16:19:51 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 16:19:51 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1k4DE4Bz8fxFzG3z2i9U' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-13 16:19:51.426320', "updated_at" = '2013-07-13 16:19:51.426320', "authentication_token" = '1k4DE4Bz8fxFzG3z2i9U' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) 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", 1], ["created_at", Sat, 13 Jul 2013 16:19:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:19:51 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test3"  (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.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.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)  (2.5ms) 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")  (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.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 ('20130612073709')  (0.1ms) 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-13 11:19:51 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1  (3.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  (11.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  (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", Sat, 13 Jul 2013 16:19:51 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$RwjJnpJdPkW9zfHnvzEqDeDUwSrxEEdsHt1juaqysXrouOWIM5JHy"], ["updated_at", Sat, 13 Jul 2013 16:19:51 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 (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", Sat, 13 Jul 2013 16:19:51 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 16:19:51 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FUctBNUfgpqX1LkyKHUg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-13 16:19:51.624123', "updated_at" = '2013-07-13 16:19:51.624123', "authentication_token" = 'FUctBNUfgpqX1LkyKHUg' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Sat, 13 Jul 2013 16:19:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:19:51 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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.4ms) 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)  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Sat, 13 Jul 2013 16:19:51 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$gj271E62GUGJdC3r9VLkFeF4rNZo4PwkN8szWCjGsMl0ab5vThDpK"], ["updated_at", Sat, 13 Jul 2013 16:19:51 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Sat, 13 Jul 2013 16:19:51 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 2], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 16:19:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GX7GF6kz5dsKyR9Bh4vD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 2, "created_at" = '2013-07-13 16:19:51.783258', "updated_at" = '2013-07-13 16:19:51.783258', "authentication_token" = 'GX7GF6kz5dsKyR9Bh4vD' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Sat, 13 Jul 2013 16:19:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:19:51 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:19: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-13 11:19: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 (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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"."email" = 'user6@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 1.1ms | ActiveRecord: 1.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  (5.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  (15.1ms) 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.7ms) BEGIN  (7.3ms) 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", Sat, 13 Jul 2013 16:19:52 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$OWSpjtbDtOcIhjQhOK64N.Ix3A/9gEVa8i.VhSVKEd/tmSl62tXRC"], ["updated_at", Sat, 13 Jul 2013 16:19:52 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 (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", Sat, 13 Jul 2013 16:19:52 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 16:19:52 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4tQ5mEVdf5p3GfBcC3Bu' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-13 16:19:52.024332', "updated_at" = '2013-07-13 16:19:52.024332', "authentication_token" = '4tQ5mEVdf5p3GfBcC3Bu' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.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", Sat, 13 Jul 2013 16:19:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:19:52 UTC +00:00], ["user_id", 1]]  (5.7ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test6"  (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" ("authentication_token")  (6.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)  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (7.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.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 ('20130612073709')  (0.1ms) 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-13 11:19:52 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') 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" = 'user7@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 Cadenero::V1::Account Load (3.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 267ms (Views: 5.1ms | ActiveRecord: 5.6ms) 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-13 11:19:52 -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 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:19: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.2ms | ActiveRecord: 0.0ms)  (7.6ms) 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  (19.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.4ms) 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", Sat, 13 Jul 2013 16:19:52 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$04puOsaz93FQ/E3ys/81uup.FWaPCX1kDpoczuft9EvjpDJRiFB0q"], ["updated_at", Sat, 13 Jul 2013 16:19:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (3.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", Sat, 13 Jul 2013 16:19:52 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 16:19:52 UTC +00:00]] Cadenero::V1::Account Load (16.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rZbJLygyMGphaUpGRj7v' LIMIT 1  (12.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-13 16:19:52.658104', "updated_at" = '2013-07-13 16:19:52.658104', "authentication_token" = 'rZbJLygyMGphaUpGRj7v' WHERE "public"."cadenero_accounts"."id" = 1  (0.4ms) 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", Sat, 13 Jul 2013 16:19:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:19:52 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)   (4.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("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)  (7.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (9.5ms) 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)   (2.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.3ms) SELECT version FROM "schema_migrations"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.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-13 11:19: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-13 11:19: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.9ms) 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" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.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  (4.6ms) ROLLBACK  (0.7ms) 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  (15.3ms) 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.6ms) BEGIN  (0.1ms) 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", Sat, 13 Jul 2013 16:19:53 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$b5AR7pVQv5obBrpTY3uAfuRSDaMttflVGrq7h.5Yah5ZGJPNMQAQ2"], ["updated_at", Sat, 13 Jul 2013 16:19:53 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" = 'test8' 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", Sat, 13 Jul 2013 16:19:53 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 16:19:53 UTC +00:00]] Cadenero::V1::Account Load (3.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TypoJjeHpTqNfsB5qhAX' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-13 16:19:53.040543', "updated_at" = '2013-07-13 16:19:53.040543', "authentication_token" = 'TypoJjeHpTqNfsB5qhAX' WHERE "public"."cadenero_accounts"."id" = 1  (7.4ms) RELEASE SAVEPOINT active_record_1  (0.6ms) 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", 1], ["created_at", Sat, 13 Jul 2013 16:19:53 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:19:53 UTC +00:00], ["user_id", 1]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (12.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.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) 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)  (8.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (11.6ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:19:53 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 11:19:53 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (3.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 4.1ms) Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.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.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  (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)  (2.6ms) ROLLBACK  (6.7ms) 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.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (7.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.5ms) 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)  (10.2ms) 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  (21.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  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (2.2ms) 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 9ms (Views: 5.6ms | ActiveRecord: 2.7ms)  (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.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) 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.3ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (0.6ms) 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 11ms (Views: 9.3ms | ActiveRecord: 1.0ms)  (0.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  (19.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (7.8ms) 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.0ms) BEGIN  (7.2ms) 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", Sat, 13 Jul 2013 16:19:54 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$.cd29XM54ioI8pVlFXhk5ebjVcdbJv8LOmtuso/XFkebK2Sk32NcC"], ["updated_at", Sat, 13 Jul 2013 16:19:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (1.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", Sat, 13 Jul 2013 16:19:54 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 16:19:54 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'J55uzzibwqyjvDni3S6x' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-13 16:19:54.399313', "updated_at" = '2013-07-13 16:19:54.399313', "authentication_token" = 'J55uzzibwqyjvDni3S6x' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 16:19:54 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:19:54 UTC +00:00], ["user_id", 1]]  (1.7ms) RELEASE SAVEPOINT active_record_1  (1.1ms) 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.5ms) 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.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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (27.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (19.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)   (26.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (10.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')  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 11:19:54 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (5.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:19:54 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$tk5yW75ur4IuOXRI7r6nLeKxeTbQm7MbxeMujwClzrKiPu9ZcvxoC"], ["updated_at", Sat, 13 Jul 2013 16:19:54 UTC +00:00]] SQL (10.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 16:19:54 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:19:54 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (6.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 154ms (Views: 7.2ms | ActiveRecord: 25.0ms) Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-13 11:19:54 -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" = '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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 2 Completed 200 OK in 12ms (Views: 5.8ms | ActiveRecord: 2.7ms)  (6.3ms) ROLLBACK  (0.4ms) 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.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.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", Sat, 13 Jul 2013 16:19:55 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$VSO02q42/X2M2Jg62ae3WuAnffT2hx5ozFBul2uolocH./Zez1swO"], ["updated_at", Sat, 13 Jul 2013 16:19:55 UTC +00:00]]  (4.0ms) RELEASE SAVEPOINT active_record_1  (3.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (1.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", Sat, 13 Jul 2013 16:19:55 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 16:19:55 UTC +00:00]] Cadenero::V1::Account Load (5.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2KuCUNKKj3Nwj16v8z2Z' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-13 16:19:55.036769', "updated_at" = '2013-07-13 16:19:55.036769', "authentication_token" = '2KuCUNKKj3Nwj16v8z2Z' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 16:19:55 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:19:55 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (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)  (1.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.7ms) 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)   (2.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.4ms) 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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (5.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 11:19:55 -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" = 'test10' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (4.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:19:55 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$HT.VVo1W4kRYLKqcHzPXFONSjUrsCS4oFNRMfzNXVQlo.dGDIuQ1W"], ["updated_at", Sat, 13 Jul 2013 16:19:55 UTC +00:00]] SQL (5.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 16:19:55 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:19:55 UTC +00:00], ["user_id", 2]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 231ms (Views: 6.6ms | ActiveRecord: 12.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/2" for 127.0.0.1 at 2013-07-13 11:19:55 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (4.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" = 2 Completed 200 OK in 118ms (Views: 107.5ms | ActiveRecord: 6.0ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' 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", Sat, 13 Jul 2013 16:19:55 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 2], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 16:19:55 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dpy8JNZfs5tKyMDDDJpp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 2, "created_at" = '2013-07-13 16:19:55.486014', "updated_at" = '2013-07-13 16:19:55.486014', "authentication_token" = 'dpy8JNZfs5tKyMDDDJpp' WHERE "public"."cadenero_accounts"."id" = 2  (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", Sat, 13 Jul 2013 16:19:55 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:19:55 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (5.3ms) 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")  (10.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)   (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (5.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 11:19:55 -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" = 'test11' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:19:55 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$LY4lIstyRd/ohXR2uQj4wunew92Aj5JQajy185xMnrvIVM5h6LsMe"], ["updated_at", Sat, 13 Jul 2013 16:19:55 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", 2], ["created_at", Sat, 13 Jul 2013 16:19:55 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:19:55 UTC +00:00], ["user_id", 3]]  (5.3ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 148ms (Views: 5.5ms | ActiveRecord: 10.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-13 11:19:55 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.2ms | ActiveRecord: 1.6ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-13 11:19:55 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (9.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 Cadenero::V1::Account Load (4.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 Cadenero::V1::Account Load (5.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 35ms (Views: 12.3ms | ActiveRecord: 20.4ms)  (11.1ms) ROLLBACK  (3.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  (18.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  (1.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 11:19: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}  (13.8ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (17.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (17.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:19:56 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$3SXeGH7OKqwW5doovWipguHMX7xdxccEqlqHLcQZC4A/Dm1/1PRzS"], ["updated_at", Sat, 13 Jul 2013 16:19:56 UTC +00:00]] 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", Sat, 13 Jul 2013 16:19:56 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 16:19:56 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yo6vjCPzc1exzoTMfSwk' LIMIT 1  (3.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 16:19:56.114116', "updated_at" = '2013-07-13 16:19:56.114116', "authentication_token" = 'yo6vjCPzc1exzoTMfSwk' WHERE "public"."cadenero_accounts"."id" = 1  (4.8ms) 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", 1], ["created_at", Sat, 13 Jul 2013 16:19:56 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:19:56 UTC +00:00], ["user_id", 1]]  (1.9ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (5.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (0.2ms) CREATE SCHEMA "test"  (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" ("authentication_token")  (5.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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)  (4.6ms) 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")  (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.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Completed 201 Created in 395ms (Views: 1.9ms | ActiveRecord: 118.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (6.3ms) 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.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (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" = 'test' 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", Sat, 13 Jul 2013 16:19:56 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$yrF1pYYXxM2a0F5Ki0aTQ.lm2sVq28e5Qmw73F88bNb5KHJBnZYxK"], ["updated_at", Sat, 13 Jul 2013 16:19:56 UTC +00:00]] 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", Sat, 13 Jul 2013 16:19:56 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 16:19:56 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'y1q69MQBDDffu9jeFzQ7' LIMIT 1  (1.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 16:19:56.382595', "updated_at" = '2013-07-13 16:19:56.382595', "authentication_token" = 'y1q69MQBDDffu9jeFzQ7' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 11:19:56 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (1.8ms) 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  (1.0ms) 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 234ms (Views: 0.3ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.3ms) 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  (13.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.0ms) 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.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  (24.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (15.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (30.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  (24.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 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.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  (23.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (8.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.8ms) BEGIN  (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 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:19:57 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$vyjPO6AGogmOmG6yTpfVyu4HFaJZUbNy3o2JX6vupTZla8SQ1zDMa"], ["updated_at", Sat, 13 Jul 2013 16:19:57 UTC +00:00]] SQL (4.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", Sat, 13 Jul 2013 16:19:57 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 16:19:57 UTC +00:00]] Cadenero::V1::Account Load (4.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sxdgo59P3XwqU7TkX4ri' LIMIT 1  (2.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 16:19:57.367763', "updated_at" = '2013-07-13 16:19:57.367763', "authentication_token" = 'sxdgo59P3XwqU7TkX4ri' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 16:19:57 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:19:57 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (6.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 LIMIT 1  (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  (33.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (12.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 Connecting to database specified by database.yml  (0.7ms) 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  (11.6ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (47.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (12.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (9.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:28:19 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$FbhdYXlwCF1hxJ6CBDukTudnSmvn2KfI6uEAu7mgjmrUsAhT6z9oO"], ["updated_at", Sat, 13 Jul 2013 16:28:19 UTC +00:00]]  (0.1ms) 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.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", Sat, 13 Jul 2013 16:28:20 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 16:28:20 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Hmdgnxnwzc1FR9UAa6pi' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-13 16:28:20.043578', "updated_at" = '2013-07-13 16:28:20.043578', "authentication_token" = 'Hmdgnxnwzc1FR9UAa6pi' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 16:28:20 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:28:20 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", Sat, 13 Jul 2013 16:28:20 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$Qbum2JfpkP7Cwtmbvr2Ri.Jh6iJYw91lB2K08xzR77Bq/WUleOiCG"], ["updated_at", Sat, 13 Jul 2013 16:28:20 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", Sat, 13 Jul 2013 16:28:20 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$4dssF0w9YTkflE3Wja.zCeme1tIgrX.oGSFrEDQWpgCvqTq9hjU0m"], ["updated_at", Sat, 13 Jul 2013 16:28:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (3.9ms) 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.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", Sat, 13 Jul 2013 16:28:20 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 16:28:20 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1Zmt8xqt8sgmspZZnspE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-13 16:28:20.372494', "updated_at" = '2013-07-13 16:28:20.372494', "authentication_token" = '1Zmt8xqt8sgmspZZnspE' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www"  (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)   (44.5ms) 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")  (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)  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) 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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (4.3ms) 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  (11.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.6ms) BEGIN  (0.2ms) 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  (11.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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 (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.3ms) 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  (16.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.4ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.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  (16.7ms) 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 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", Sat, 13 Jul 2013 16:28:21 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Wsau4TP8tzleaV.hQFK.7.Wls5ka.ZBc/oAe5.i6JhMq5P843thHO"], ["updated_at", Sat, 13 Jul 2013 16:28:21 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", Sat, 13 Jul 2013 16:28:21 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 16:28:21 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QyYFBUUmFJNo6GQVVDGP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 16:28:21.067310', "updated_at" = '2013-07-13 16:28:21.067310', "authentication_token" = 'QyYFBUUmFJNo6GQVVDGP' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Sat, 13 Jul 2013 16:28:21 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:28:21 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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 LIMIT 1  (0.3ms) 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  (19.9ms) 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  (1.0ms) BEGIN Cadenero::V1::Account Exists (3.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) 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  (18.9ms) 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.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", Sat, 13 Jul 2013 16:28:21 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$sa0UYe78cfYayouXiSFLd.kwuwg6A7P1FksJvk7tEInteQ4GjXny."], ["updated_at", Sat, 13 Jul 2013 16:28:21 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" = 'test2' 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", Sat, 13 Jul 2013 16:28:21 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 16:28:21 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'q2v68WAH1Q6pPPxQ5Fg3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-13 16:28:21.380801', "updated_at" = '2013-07-13 16:28:21.380801', "authentication_token" = 'q2v68WAH1Q6pPPxQ5Fg3' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 16:28:21 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:28:21 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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)   (2.5ms) 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.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)  (2.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")  (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.4ms) 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 ('20130612073709')  (6.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:28: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 6ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 11:28: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.9ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.8ms) ROLLBACK  (1.4ms) 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;  (1.1ms) 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.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:28:21 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$ozenWF76UmJhsqlD1neOYeIEP7OgRlUw/KctkAhQRH0JrGYSzqOVq"], ["updated_at", Sat, 13 Jul 2013 16:28:21 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" = 'test3' 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", Sat, 13 Jul 2013 16:28:21 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 16:28:21 UTC +00:00]] Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zXPqF6sKzbjzfjrFudGw' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-13 16:28:21.691947', "updated_at" = '2013-07-13 16:28:21.691947', "authentication_token" = 'zXPqF6sKzbjzfjrFudGw' WHERE "public"."cadenero_accounts"."id" = 1  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (8.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", Sat, 13 Jul 2013 16:28:21 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:28:21 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (9.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")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (28.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)  (3.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (13.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.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (14.4ms) SELECT version FROM "schema_migrations"  (0.5ms) 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')  (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", Sat, 13 Jul 2013 16:28:22 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$cVCkRTcINar223sCNqYKwOnFVDqF7tw26kPlEJTdFeiKsV8zs68zG"], ["updated_at", Sat, 13 Jul 2013 16:28:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (2.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", Sat, 13 Jul 2013 16:28:22 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 2], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 16:28:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sHZ7wZnCccWnL3vzAzbh' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 2, "created_at" = '2013-07-13 16:28:22.132046', "updated_at" = '2013-07-13 16:28:22.132046', "authentication_token" = 'sHZ7wZnCccWnL3vzAzbh' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Sat, 13 Jul 2013 16:28:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:28:22 UTC +00:00], ["user_id", 2]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:28:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 11:28:22 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 'user5@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (8.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  (56.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (2.6ms) BEGIN  (2.9ms) SAVEPOINT active_record_1 SQL (3.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:28:22 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$mNKeW2zLfNJnOeOscu.7jeR7exaDgB4vdCQPQv./m0Bjs76qeB7Ce"], ["updated_at", Sat, 13 Jul 2013 16:28:22 UTC +00:00]]  (4.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' 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", Sat, 13 Jul 2013 16:28:22 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 16:28:22 UTC +00:00]] Cadenero::V1::Account Load (12.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'R46dsTuuvqPxp28D7D8Y' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-13 16:28:22.487538', "updated_at" = '2013-07-13 16:28:22.487538', "authentication_token" = 'R46dsTuuvqPxp28D7D8Y' WHERE "public"."cadenero_accounts"."id" = 1  (13.5ms) 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", 1], ["created_at", Sat, 13 Jul 2013 16:28:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:28:22 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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)   (2.8ms) 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")  (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)  (10.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('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-13 11:28:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 11:28:22 -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 (1.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (8.3ms) 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  (22.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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.1ms) BEGIN  (1.3ms) SAVEPOINT active_record_1 SQL (3.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:28:22 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$RnTpNjEHV2N2eFz79d/QRean3FLpNTngOKz0v0zld.48kflwHTBe6"], ["updated_at", Sat, 13 Jul 2013 16:28:22 UTC +00:00]]  (1.3ms) 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 (16.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", Sat, 13 Jul 2013 16:28:22 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 16:28:22 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zyCYZu7H1VZ5rwnetbDw' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-13 16:28:22.960468', "updated_at" = '2013-07-13 16:28:22.960468', "authentication_token" = 'zyCYZu7H1VZ5rwnetbDw' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 16:28:22 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:28:22 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (9.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)  (3.5ms) 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")  (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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.6ms) 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 ('20130612073709')  (0.1ms) 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-13 11:28:23 -0500 Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' LIMIT 1  (5.6ms) 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.3ms) 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.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:28:23 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$xVV//Pg7ZqxWUqDrwU5jk.lRFZId7PCjm9cxAgeUf6mSkbpok0iOe"], ["updated_at", Sat, 13 Jul 2013 16:28:23 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", Sat, 13 Jul 2013 16:28:23 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 16:28:23 UTC +00:00]] Cadenero::V1::Account Load (3.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sArkRDiPVgK9ny4yiq3x' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-13 16:28:23.273003', "updated_at" = '2013-07-13 16:28:23.273003', "authentication_token" = 'sArkRDiPVgK9ny4yiq3x' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", Sat, 13 Jul 2013 16:28:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:28:23 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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)   (12.3ms) 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")  (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.8ms) 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")  (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)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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-13 11:28:23 -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.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (8.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" = 'user8@example.com' LIMIT 1 Cadenero::User Load (2.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 Cadenero::V1::Account Load (3.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 Completed 201 Created in 239ms (Views: 53.7ms | ActiveRecord: 16.5ms) Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-13 11:28:23 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.8ms) Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:28: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)  (10.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  (28.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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.1ms) BEGIN  (0.1ms) 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", Sat, 13 Jul 2013 16:28:23 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$HkRP/Yut8LZSot.nS0Kitef5bM9zjGZ3vW9BrEh99DX1WTE1gP1Ja"], ["updated_at", Sat, 13 Jul 2013 16:28:23 UTC +00:00]]  (5.2ms) RELEASE SAVEPOINT active_record_1  (4.6ms) 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.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", Sat, 13 Jul 2013 16:28:23 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 16:28:23 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Ga3Ed6VqkiM9yzb3M1qr' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-13 16:28:23.894070', "updated_at" = '2013-07-13 16:28:23.894070', "authentication_token" = 'Ga3Ed6VqkiM9yzb3M1qr' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 16:28:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:28:23 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (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)   (0.9ms) 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.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)  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) 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)  (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 ('20130612073709')  (0.3ms) 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-13 11:28: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-13 11:28:23 -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 ('test8') LIMIT 1 Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user9@example.com' LIMIT 1 Cadenero::User Load (3.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (5.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 207ms (Views: 5.8ms | ActiveRecord: 11.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:28:24 -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" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.5ms)  (13.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  (18.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.6ms) 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.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  (11.1ms) 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 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)  (5.6ms) ROLLBACK  (2.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  (34.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (4.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 17ms (Views: 11.4ms | ActiveRecord: 5.2ms)  (9.6ms) 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  (47.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 Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (4.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" = 101 Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 4.9ms)  (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  (43.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.6ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (2.8ms) 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  (15.9ms) 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  (2.6ms) 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.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  (39.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (15.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  (1.3ms) BEGIN  (4.2ms) 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", Sat, 13 Jul 2013 16:28:25 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$zarAOoFUQRmBKp/aHuAoXe.5WtTYwiz0ISu01xEbaspd2w5plMRzq"], ["updated_at", Sat, 13 Jul 2013 16:28:25 UTC +00:00]]  (1.0ms) 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 (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", Sat, 13 Jul 2013 16:28:25 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 16:28:25 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'KQdnyppZEurh7F1iuBvC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-13 16:28:25.602583', "updated_at" = '2013-07-13 16:28:25.602583', "authentication_token" = 'KQdnyppZEurh7F1iuBvC' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 16:28:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:28:25 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (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)   (5.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (5.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("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)  (5.9ms) 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")  (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.4ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 11:28:25 -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 (3.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (7.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:28:26 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$NW5JdmCSjYQVID4X7mAaGu9HLqp53TgnglfaDfUKem9qDTX3X6jVm"], ["updated_at", Sat, 13 Jul 2013 16:28:26 UTC +00:00]] SQL (43.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 16:28:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:28:26 UTC +00:00], ["user_id", 2]]  (0.8ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 363ms (Views: 5.6ms | ActiveRecord: 55.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/2" for 127.0.0.1 at 2013-07-13 11:28:26 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (2.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (3.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" = 2 Completed 200 OK in 75ms (Views: 61.1ms | ActiveRecord: 9.1ms)  (13.2ms) ROLLBACK  (8.9ms) 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  (44.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.1ms) BEGIN  (15.9ms) 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", Sat, 13 Jul 2013 16:28:26 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$CkdwpWZ0tn/g14R6VJST9Otpxh3pmuCgzbVhOGUppf4HWgkVFvxR."], ["updated_at", Sat, 13 Jul 2013 16:28:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (11.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", Sat, 13 Jul 2013 16:28:26 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 16:28:26 UTC +00:00]] Cadenero::V1::Account Load (6.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rizisdJzswxy8mpSUJfx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-13 16:28:26.549624', "updated_at" = '2013-07-13 16:28:26.549624', "authentication_token" = 'rizisdJzswxy8mpSUJfx' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 16:28:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:28:26 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.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.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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)  (6.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 11:28:26 -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" = 'test10' 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", Sat, 13 Jul 2013 16:28:26 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$iUfepPMFGTkLy65TLudoquwJu.avT2y5lJ7l572.ovsyem6BqXzeC"], ["updated_at", Sat, 13 Jul 2013 16:28:26 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", 1], ["created_at", Sat, 13 Jul 2013 16:28:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:28:26 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (18.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" = 2 Completed 201 Created in 140ms (Views: 6.2ms | ActiveRecord: 21.9ms) 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/2" for 127.0.0.1 at 2013-07-13 11:28:26 -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" = '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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 13ms (Views: 5.8ms | ActiveRecord: 3.8ms) Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' 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", Sat, 13 Jul 2013 16:28:26 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 2], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 16:28:26 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'K8NkWjpsK8mPPwp9Xrpq' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 2, "created_at" = '2013-07-13 16:28:26.836933', "updated_at" = '2013-07-13 16:28:26.836933', "authentication_token" = 'K8NkWjpsK8mPPwp9Xrpq' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (9.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", Sat, 13 Jul 2013 16:28:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:28:26 UTC +00:00], ["user_id", 2]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (7.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)  (4.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("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)   (1.8ms) 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")  (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)  (3.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 ('20130612073709')  (6.0ms) 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-13 11:28:26 -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_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", Sat, 13 Jul 2013 16:28:27 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$2KXF33UQAEKzGDBglANv4u03g/kSfnJtNLhbG1c/JrGKvvuAfnhke"], ["updated_at", Sat, 13 Jul 2013 16:28:27 UTC +00:00]] SQL (3.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 2], ["created_at", Sat, 13 Jul 2013 16:28:27 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:28:27 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 184ms (Views: 5.3ms | ActiveRecord: 7.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/2" for 127.0.0.1 at 2013-07-13 11:28:27 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (7.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (3.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" = 2 Completed 200 OK in 21ms (Views: 5.6ms | ActiveRecord: 11.3ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-13 11:28:27 -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" = '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" = 1 Cadenero::User Load (2.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Cadenero::V1::Account Load (5.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 23ms (Views: 9.9ms | ActiveRecord: 10.7ms)  (12.4ms) ROLLBACK  (1.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  (24.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (5.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.4ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 11:28:27 -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}  (20.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (7.0ms) 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", Sat, 13 Jul 2013 16:28:27 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$xzYlqHN17ueuiY5AytRmKugw.NlF7/reZdSkUk2xamuxw/F4PyCai"], ["updated_at", Sat, 13 Jul 2013 16:28:27 UTC +00:00]] SQL (2.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", Sat, 13 Jul 2013 16:28:27 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 16:28:27 UTC +00:00]] Cadenero::V1::Account Load (17.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LvVuRbePYxArDqU3zzJZ' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 16:28:27.516854', "updated_at" = '2013-07-13 16:28:27.516854', "authentication_token" = 'LvVuRbePYxArDqU3zzJZ' WHERE "public"."cadenero_accounts"."id" = 1  (2.7ms) RELEASE SAVEPOINT active_record_1  (2.0ms) SAVEPOINT active_record_1 SQL (3.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 16:28:27 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:28:27 UTC +00:00], ["user_id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1  (3.0ms) CREATE SCHEMA "test"  (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)   (9.9ms) 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")  (5.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)  (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.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)   (3.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Completed 201 Created in 400ms (Views: 1.7ms | ActiveRecord: 138.7ms) Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.5ms) 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  (17.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  (1.6ms) 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 (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:28:27 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$.mBBz0i5P4d2wPwsHK1ldeIddqXDq4jjRGAUGNmEuv/gg2MqVfktS"], ["updated_at", Sat, 13 Jul 2013 16:28:27 UTC +00:00]] 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", Sat, 13 Jul 2013 16:28:27 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 16:28:27 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wAWraEdmD1MewzSS6YPe' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 16:28:27.879640', "updated_at" = '2013-07-13 16:28:27.879640', "authentication_token" = 'wAWraEdmD1MewzSS6YPe' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 11:28:27 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (1.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (8.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 225ms (Views: 0.3ms | ActiveRecord: 9.8ms) Cadenero::V1::Account Load (4.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (2.3ms) 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  (27.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 Connecting to database specified by database.yml  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (33.0ms) 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.4ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (12.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:31:04 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$02FeFJZ9L80dB/7aNba8Ve9Fx7mCoImbDCcRuQOY6hH55HT7ezuCW"], ["updated_at", Sat, 13 Jul 2013 16:31:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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" = 'test1' LIMIT 1 SQL (1.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", Sat, 13 Jul 2013 16:31:04 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 16:31:04 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dd3PosPsN3pQ7RAFMpjq' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-13 16:31:04.876294', "updated_at" = '2013-07-13 16:31:04.876294', "authentication_token" = 'dd3PosPsN3pQ7RAFMpjq' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 16:31:04 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:31:04 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", Sat, 13 Jul 2013 16:31:05 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$wrN3qjjzQxBPY3FZ1Ce2/uTOdG1StBZPki54hVxQz3wlxNTdy18rC"], ["updated_at", Sat, 13 Jul 2013 16:31:05 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", Sat, 13 Jul 2013 16:31:05 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$ellZ6drHzIJy2Jt.qvijjei0egG2niF8oxViY3fGDICC.4rQB/RPe"], ["updated_at", Sat, 13 Jul 2013 16:31:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Sat, 13 Jul 2013 16:31:05 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 16:31:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'c85gVGxCzEWSsj1ypcBe' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-13 16:31:05.151182', "updated_at" = '2013-07-13 16:31:05.151182', "authentication_token" = 'c85gVGxCzEWSsj1ypcBe' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www"  (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.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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.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.3ms) 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')  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (3.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.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.1ms) BEGIN  (0.2ms) ROLLBACK  (1.7ms) 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  (11.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) 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  (0.7ms) 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  (2.3ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (20.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.1ms) BEGIN  (1.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (2.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (13.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:37:03 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$mmNGo4AI/imlk4d6VlSL1ud0fkF6irkbvL4nIG6GyE/xAHBX8BLXu"], ["updated_at", Sat, 13 Jul 2013 16:37: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" = 'test1' 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", Sat, 13 Jul 2013 16:37:03 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 16:37:03 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Sa3nQrrPTyeagSv4b6FN' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-13 16:37:03.531087', "updated_at" = '2013-07-13 16:37:03.531087', "authentication_token" = 'Sa3nQrrPTyeagSv4b6FN' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", Sat, 13 Jul 2013 16:37:03 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:37:03 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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", Sat, 13 Jul 2013 16:37:03 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$nua4Zo8kFAjiuUK4NHKMduZ9dWqBOIVSaMQ5/1Ax/MknNn5qEsKBW"], ["updated_at", Sat, 13 Jul 2013 16:37:03 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", Sat, 13 Jul 2013 16:37:03 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$BVTlGXFpXsg4Go9bP6CH6egxhFqDB5dJ11GcjeM7nE59VJ/zjQ8vK"], ["updated_at", Sat, 13 Jul 2013 16:37: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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Sat, 13 Jul 2013 16:37:03 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 16:37:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ikca6ZUnfxj9LWKNgGx6' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-13 16:37:03.799163', "updated_at" = '2013-07-13 16:37:03.799163', "authentication_token" = 'ikca6ZUnfxj9LWKNgGx6' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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)   (1.2ms) 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.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)  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) 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 ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (5.5ms) ROLLBACK  (0.7ms) 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  (39.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.4ms) BEGIN  (0.1ms) ROLLBACK  (1.4ms) 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.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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 Connecting to database specified by database.yml  (2.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.3ms) 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.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 Connecting to database specified by database.yml  (3.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  (2.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (13.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.4ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (11.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:37:34 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$qLbTsf3wwHqBsMGcoEZyK.Yq1ecsJbi7OfQd7KDzNjNJIEQnLgLga"], ["updated_at", Sat, 13 Jul 2013 16:37:34 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Sat, 13 Jul 2013 16:37:34 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 16:37:34 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Fi4wixpAqwRgs46oB2fm' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-13 16:37:34.572963', "updated_at" = '2013-07-13 16:37:34.572963', "authentication_token" = 'Fi4wixpAqwRgs46oB2fm' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", Sat, 13 Jul 2013 16:37:34 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:37:34 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", Sat, 13 Jul 2013 16:37:34 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$8OS9zhEqDfdygmMS7r6t/uW50HawlT55Hxr12vAeyhOHLZFfhxkQG"], ["updated_at", Sat, 13 Jul 2013 16:37:34 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", Sat, 13 Jul 2013 16:37:34 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$F2ubJHfGlnvEtfTcmFo.Te1hdrSo4mM021SoIjlmAotvroYiKQ3EK"], ["updated_at", Sat, 13 Jul 2013 16:37:34 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Sat, 13 Jul 2013 16:37:34 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 16:37:34 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fG9WdqrgmgY3Y1A6BVHB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-13 16:37:34.843248', "updated_at" = '2013-07-13 16:37:34.843248', "authentication_token" = 'fG9WdqrgmgY3Y1A6BVHB' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www"  (6.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.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")  (8.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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.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')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (5.2ms) 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  (14.9ms) 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.5ms) BEGIN  (0.5ms) 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  (39.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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 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)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (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  (12.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  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.7ms) BEGIN  (1.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  (48.3ms) 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 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)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) 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  (11.7ms) 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.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (10.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:39:20 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$jICFC/vFepS0sMY2xIOQ0uwc3LvlhoF4PRUn/hr4k4AzS4odBmv86"], ["updated_at", Sat, 13 Jul 2013 16:39:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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" = 'test1' 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", Sat, 13 Jul 2013 16:39:20 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 16:39:20 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rWukHtVz62PppCutSb1S' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-13 16:39:20.526223', "updated_at" = '2013-07-13 16:39:20.526223', "authentication_token" = 'rWukHtVz62PppCutSb1S' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", Sat, 13 Jul 2013 16:39:20 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:39:20 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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", Sat, 13 Jul 2013 16:39:20 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$UFqQSG2odJ5iuqLYrSjGMOnakfUl8.revFBtntDt5sh5TEvdLczeC"], ["updated_at", Sat, 13 Jul 2013 16:39:20 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", Sat, 13 Jul 2013 16:39:20 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$7eM1YPtknZlTQ6mmmaBM9.t.P8PX7Zng5M.f/55A/DdLPtq7qQ/2G"], ["updated_at", Sat, 13 Jul 2013 16:39:20 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Sat, 13 Jul 2013 16:39:20 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 16:39:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DRKy6qPMoA7cwqYFrysv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-13 16:39:20.799878', "updated_at" = '2013-07-13 16:39:20.799878', "authentication_token" = 'DRKy6qPMoA7cwqYFrysv' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www"  (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)   (2.7ms) 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)  (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.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')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (3.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  (39.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 Connecting to database specified by database.yml  (5.7ms) 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  (2.3ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (21.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (10.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:41:25 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$v0u2kKqTtCBNXSlJELVgyu1/Z82dhVU1kTIPBa9fW0tHINNR9FbiW"], ["updated_at", Sat, 13 Jul 2013 16:41:25 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" = 'test1' LIMIT 1 SQL (1.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", Sat, 13 Jul 2013 16:41:25 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 16:41:25 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'C8EQSiHEZXyn7gqsxKND' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-13 16:41:25.743615', "updated_at" = '2013-07-13 16:41:25.743615', "authentication_token" = 'C8EQSiHEZXyn7gqsxKND' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", Sat, 13 Jul 2013 16:41:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:41:25 UTC +00:00], ["user_id", 1]]  (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", Sat, 13 Jul 2013 16:41:25 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$S1hE17TUWOWK0aHBpok14ukCtlwxJQfucCud6Gb6xGq2FTOJWJyGe"], ["updated_at", Sat, 13 Jul 2013 16:41:25 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", Sat, 13 Jul 2013 16:41:26 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$u/er1o33nGs/RyaLJKtKSutwww6ykDC6LAgeFp92yrZSoVc3KH7zy"], ["updated_at", Sat, 13 Jul 2013 16:41:26 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.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", Sat, 13 Jul 2013 16:41:26 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 16:41:26 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XMRzvaNDsSqxaQAZGVJC' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-13 16:41:26.012354', "updated_at" = '2013-07-13 16:41:26.012354', "authentication_token" = 'XMRzvaNDsSqxaQAZGVJC' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www"  (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.5ms) 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)  (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")  (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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (6.5ms) 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  (11.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.2ms) 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)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.4ms) 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  (11.5ms) 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.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  (29.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 Connecting to database specified by database.yml  (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  (2.5ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (32.7ms) 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.9ms) BEGIN  (0.2ms) 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  (23.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.8ms) 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.7ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (11.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:42:54 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$aXISFGdCN/0hufeKYN82H.yklymRFs6lq9Yz53XhKjgV2iTeXixl."], ["updated_at", Sat, 13 Jul 2013 16:42:54 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" = 'test1' LIMIT 1 SQL (1.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", Sat, 13 Jul 2013 16:42:54 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 16:42:54 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DBA1H8J8P39Uxcz1Cxxp' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-13 16:42:54.971187', "updated_at" = '2013-07-13 16:42:54.971187', "authentication_token" = 'DBA1H8J8P39Uxcz1Cxxp' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 16:42:55 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:42:55 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", Sat, 13 Jul 2013 16:42:55 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$zZfp41PpqGVGzSzwhVcLVereUsQMdlqnwG03Z/VOX4EjXvtkYJqXi"], ["updated_at", Sat, 13 Jul 2013 16:42:55 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", Sat, 13 Jul 2013 16:42:55 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$xOkM7jM4v8aFV1V8EQhPS.f6vaBD6JmrNFsq/TbJc2it.eAnPu.3i"], ["updated_at", Sat, 13 Jul 2013 16:42:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Sat, 13 Jul 2013 16:42:55 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 16:42:55 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zMnkEdDe98q3yJnG2eYs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-13 16:42:55.244286', "updated_at" = '2013-07-13 16:42:55.244286', "authentication_token" = 'zMnkEdDe98q3yJnG2eYs' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www"  (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)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) 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.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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")  (1.1ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (6.8ms) 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  (13.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) 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.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)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (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_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  (0.7ms) 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  (3.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (34.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (26.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  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (5.0ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (12.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:43:50 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$Mfk8lPPhAn7xFGfjIo2eKeEGsBULmYUj2mwg9S0v1j0CQOm5bdO1S"], ["updated_at", Sat, 13 Jul 2013 16:43:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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" = 'test1' LIMIT 1 SQL (1.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", Sat, 13 Jul 2013 16:43:50 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 16:43:50 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'K1eXpV8RpzaPAvqZdHkn' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-13 16:43:50.372093', "updated_at" = '2013-07-13 16:43:50.372093', "authentication_token" = 'K1eXpV8RpzaPAvqZdHkn' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 16:43:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:43:50 UTC +00:00], ["user_id", 1]]  (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", Sat, 13 Jul 2013 16:43:50 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$s0CUl4a/KWwEoarOvotd9eCbhGSsFMYPCp3emkBh0B6gdQR8Ei0hC"], ["updated_at", Sat, 13 Jul 2013 16:43:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:43:50 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$FUqC81b/zazBJSR6xbJno.EFGMbsCvN9iDfTIxNa5aNTyT0H5dR2S"], ["updated_at", Sat, 13 Jul 2013 16:43:50 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", Sat, 13 Jul 2013 16:43:50 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 16:43:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ztyVpb6CKy9VoMMKrLYW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-13 16:43:50.644556', "updated_at" = '2013-07-13 16:43:50.644556', "authentication_token" = 'ztyVpb6CKy9VoMMKrLYW' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www"  (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)   (2.2ms) 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)  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.8ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (5.4ms) 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  (17.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  (0.1ms) BEGIN  (0.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  (11.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.8ms) 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)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.3ms) 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.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 Connecting to database specified by database.yml  (0.7ms) 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  (5.7ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.4ms) 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.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  (22.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  (2.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 33ms (Views: 8.7ms | ActiveRecord: 0.0ms)  (6.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  (28.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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::Account::UsersController#index as JSON Cadenero::V1::Account Load (0.7ms) 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 174ms (Views: 167.5ms | ActiveRecord: 5.5ms)  (4.1ms) 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  (33.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (8.3ms) 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.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (4.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 11ms (Views: 4.9ms | ActiveRecord: 5.2ms)  (0.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  (28.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 Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (1.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  (21.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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.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 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (3.5ms) ROLLBACK  (1.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  (40.8ms) 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  (1.3ms) BEGIN  (1.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 (4.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:44:48 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$VC6M96T9AjdNEZjd67l2IudTSAGDEx38kSSuK00SggKNgN0MYundW"], ["updated_at", Sat, 13 Jul 2013 16:44:48 UTC +00:00]] SQL (1.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", Sat, 13 Jul 2013 16:44:48 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 16:44:48 UTC +00:00]] Cadenero::V1::Account Load (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5vuem5WJrM73ifkn9AB7' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 16:44:48.088293', "updated_at" = '2013-07-13 16:44:48.088293', "authentication_token" = '5vuem5WJrM73ifkn9AB7' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 11:44:48 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (1.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (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 161ms (Views: 0.3ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.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  (15.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.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 11:44:48 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (2.6ms) 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.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:44:48 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$3CAW4CD0GrWeW47ySzn2jeR4YcA.eMPpVzSnSdtMPNXdIbZx97Grm"], ["updated_at", Sat, 13 Jul 2013 16:44:48 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", Sat, 13 Jul 2013 16:44:48 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 16:44:48 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'KyiX3MYDqpRtYUwpXrk4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 16:44:48.557203', "updated_at" = '2013-07-13 16:44:48.557203', "authentication_token" = 'KyiX3MYDqpRtYUwpXrk4' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 16:44:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:44:48 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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  (0.3ms) CREATE SCHEMA "test"  (9.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.4ms) 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")  (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)  (2.8ms) 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")  (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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Completed 201 Created in 361ms (Views: 1.8ms | ActiveRecord: 71.6ms) Cadenero::V1::Account Load (3.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (9.8ms) ROLLBACK  (1.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  (21.4ms) 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  (1.0ms) SAVEPOINT active_record_1 SQL (3.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:44:48 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$CAglHKDOF6m.4aXgAB06duDLZAILbiWBHFWBHKWyoKiMdek/k2Orm"], ["updated_at", Sat, 13 Jul 2013 16:44:48 UTC +00:00]]  (1.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (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", Sat, 13 Jul 2013 16:44:48 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 16:44:48 UTC +00:00]] Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zc9868f4Kd4z8j65ddU2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-13 16:44:48.975071', "updated_at" = '2013-07-13 16:44:48.975071', "authentication_token" = 'zc9868f4Kd4z8j65ddU2' WHERE "public"."cadenero_accounts"."id" = 1  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Sat, 13 Jul 2013 16:44:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:44:48 UTC +00:00], ["user_id", 1]]  (6.8ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test1"  (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)   (5.0ms) 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.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)  (4.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.4ms) 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.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:44:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 11:44:49 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@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 ('test1') LIMIT 1 Cadenero::User Load (2.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" = 'user1@example.com' LIMIT 1 Cadenero::User Load (5.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 161ms (Views: 7.8ms | ActiveRecord: 15.0ms) Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:44:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (4.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 4.5ms)  (3.6ms) ROLLBACK  (2.4ms) 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  (15.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:44:49 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$zRJP0NSbZmeXKjN4ndUDKOhccDUOG0q8nteE2iHGLXtCPoGgqSiIS"], ["updated_at", Sat, 13 Jul 2013 16:44:49 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Sat, 13 Jul 2013 16:44:49 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 16:44:49 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'x8oCsSssAARz52evrVvT' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-13 16:44:49.591488', "updated_at" = '2013-07-13 16:44:49.591488', "authentication_token" = 'x8oCsSssAARz52evrVvT' WHERE "public"."cadenero_accounts"."id" = 1  (4.9ms) RELEASE SAVEPOINT active_record_1  (1.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", 1], ["created_at", Sat, 13 Jul 2013 16:44:49 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:44:49 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (6.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.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)  (8.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (16.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (3.1ms) SELECT version FROM "schema_migrations"  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 11:44:49 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (11.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (15.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" = 'user2@example.com' LIMIT 1 Cadenero::User Load (2.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 Cadenero::V1::Account Load (25.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 192ms (Views: 8.9ms | ActiveRecord: 56.0ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-13 11:44:49 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (5.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 5.7ms) Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:44:49 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (8.9ms) ROLLBACK  (8.0ms) 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.4ms) 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  (2.0ms) 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", Sat, 13 Jul 2013 16:44:50 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$4MLn.j2o4gIx.SM4XWXPqu9qLculwMgGWwCybrTEe9hEoIqc/gtDO"], ["updated_at", Sat, 13 Jul 2013 16:44:50 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.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", Sat, 13 Jul 2013 16:44:50 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 16:44:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'c4R2zJUxtJf9L9wodYLz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-13 16:44:50.232371', "updated_at" = '2013-07-13 16:44:50.232371', "authentication_token" = 'c4R2zJUxtJf9L9wodYLz' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", Sat, 13 Jul 2013 16:44:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:44:50 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (7.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.7ms) 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")  (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)  (2.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (6.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.3ms) SELECT version FROM "schema_migrations"  (0.7ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-13 11:44:50 -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-13 11:44:50 -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 ('test3') LIMIT 1 Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 1.8ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (12.3ms) ROLLBACK  (2.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  (26.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (12.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.5ms) BEGIN  (10.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", Sat, 13 Jul 2013 16:44:50 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$6FlVh3ih/QHPKzA8jsqNju/bGXtXdIj7u6QzT7GONzF8J/EyF57aW"], ["updated_at", Sat, 13 Jul 2013 16:44:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (1.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", Sat, 13 Jul 2013 16:44:50 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 16:44:50 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xboAgEoUzE8QfUyT8JKw' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-13 16:44:50.578543', "updated_at" = '2013-07-13 16:44:50.578543', "authentication_token" = 'xboAgEoUzE8QfUyT8JKw' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 1], ["created_at", Sat, 13 Jul 2013 16:44:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:44:50 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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)   (4.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)  (6.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.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)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (1.1ms) 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')  (3.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", Sat, 13 Jul 2013 16:44:50 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$6VCxYgoA2L9E48j3lJtps.BlShDPTOd.Y3mncbDOdx3OB0KnSlMOG"], ["updated_at", Sat, 13 Jul 2013 16:44:50 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (1.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", Sat, 13 Jul 2013 16:44:50 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 2], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 16:44:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yfYjvg8s432V7p7ZLj5C' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 2, "created_at" = '2013-07-13 16:44:50.831459', "updated_at" = '2013-07-13 16:44:50.831459', "authentication_token" = 'yfYjvg8s432V7p7ZLj5C' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Sat, 13 Jul 2013 16:44:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:44:50 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:44:50 -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-13 11:44:50 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.9ms | 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  (13.3ms) 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  (19.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (4.9ms) BEGIN  (1.0ms) 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", Sat, 13 Jul 2013 16:44:51 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$w4vEbbklZN8IBqBbVh6uheCt4q0SlAN70AJXFTuGLPE4njMNUkFoC"], ["updated_at", Sat, 13 Jul 2013 16:44:51 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 (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", Sat, 13 Jul 2013 16:44:51 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 16:44:51 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7X1J6yva6c1suRaZkJb7' LIMIT 1  (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-13 16:44:51.108004', "updated_at" = '2013-07-13 16:44:51.108004', "authentication_token" = '7X1J6yva6c1suRaZkJb7' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (8.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", Sat, 13 Jul 2013 16:44:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:44:51 UTC +00:00], ["user_id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (2.6ms) CREATE SCHEMA "test6"  (13.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.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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)  (3.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (7.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.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.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 ('20130612073709')  (5.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-13 11:44:51 -0500 Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1  (10.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  (31.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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 (13.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:44:51 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$TRFo97JrrtAlH8FFRuQ3u.xQacaKP0P/WLQKEbmHmIU2Bl3oCiA4G"], ["updated_at", Sat, 13 Jul 2013 16:44:51 UTC +00:00]]  (14.7ms) RELEASE SAVEPOINT active_record_1  (1.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (4.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", Sat, 13 Jul 2013 16:44:51 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 16:44:51 UTC +00:00]] Cadenero::V1::Account Load (20.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'KiZMfYWzQqFYzmy8V7iP' LIMIT 1  (10.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-13 16:44:51.461152', "updated_at" = '2013-07-13 16:44:51.461152', "authentication_token" = 'KiZMfYWzQqFYzmy8V7iP' WHERE "public"."cadenero_accounts"."id" = 1  (13.9ms) RELEASE SAVEPOINT active_record_1  (1.5ms) SAVEPOINT active_record_1 SQL (15.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 16:44:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:44:51 UTC +00:00], ["user_id", 1]]  (3.3ms) RELEASE SAVEPOINT active_record_1  (4.4ms) CREATE SCHEMA "test7"  (11.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.7ms) 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)  (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (14.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (30.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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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-13 11:44: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-13 11:44:51 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') 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" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.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  (11.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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", Sat, 13 Jul 2013 16:44:51 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$GPef5UWGHj7NZrxKhUq32umo6dCb.JDdbQ./QAOz5JxRDzf0t8LM."], ["updated_at", Sat, 13 Jul 2013 16:44:51 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" = 'test8' 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", Sat, 13 Jul 2013 16:44:51 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 16:44:51 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qzNScW7DR1vYhKuyyddh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-13 16:44:51.890742', "updated_at" = '2013-07-13 16:44:51.890742', "authentication_token" = 'qzNScW7DR1vYhKuyyddh' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 16:44:51 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:44:51 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (10.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")  (1.5ms) 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)  (3.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (1.2ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-13 11:44:51 -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" = 'test8' LIMIT 1  (0.6ms) 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", Sat, 13 Jul 2013 16:44:52 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$pDosu7./tX9H1csM6gfuBuwiA1ptN0DxfFTIv4u4WEyHMrIa9gOWS"], ["updated_at", Sat, 13 Jul 2013 16:44:52 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", 1], ["created_at", Sat, 13 Jul 2013 16:44:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:44:52 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 111ms (Views: 5.0ms | ActiveRecord: 3.7ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-13 11:44:52 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 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" = 'test9' 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", Sat, 13 Jul 2013 16:44:52 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 2], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 16:44:52 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xzL5UJQHXWE6ipxT3Zvy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 2, "created_at" = '2013-07-13 16:44:52.121523', "updated_at" = '2013-07-13 16:44:52.121523', "authentication_token" = 'xzL5UJQHXWE6ipxT3Zvy' WHERE "public"."cadenero_accounts"."id" = 2  (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", Sat, 13 Jul 2013 16:44:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:44:52 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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.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")  (6.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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) 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)   (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) SELECT version FROM "schema_migrations"  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 11:44:52 -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" = 'test9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:44:52 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$oAVZdiHf9TV15tGrC3WQcO9lCJfLGxD7VBrncqcltkbd2lLpPBq2e"], ["updated_at", Sat, 13 Jul 2013 16:44:52 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", 2], ["created_at", Sat, 13 Jul 2013 16:44:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:44:52 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 111ms (Views: 6.3ms | ActiveRecord: 3.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/2" for 127.0.0.1 at 2013-07-13 11:44:52 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.3ms | ActiveRecord: 1.6ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-13 11:44:52 -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" = '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" = 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 14ms (Views: 10.4ms | ActiveRecord: 2.2ms)  (7.7ms) ROLLBACK  (0.7ms) 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  (15.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:44:52 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$zA2FdpruHQozI1AozG71AuYqLbU3qAZ3MiQ7Bb0zK1vdFrwtJSZ0u"], ["updated_at", Sat, 13 Jul 2013 16:44:52 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" = 'test10' 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", Sat, 13 Jul 2013 16:44:52 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 16:44:52 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'NAiReohVqWakv49TLwRJ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-13 16:44:52.479607', "updated_at" = '2013-07-13 16:44:52.479607', "authentication_token" = 'NAiReohVqWakv49TLwRJ' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Sat, 13 Jul 2013 16:44:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:44:52 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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)   (1.2ms) 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)  (1.8ms) 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")  (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)   (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.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 11:44:52 -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" = 'test10' LIMIT 1  (1.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:44:52 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$UQ9lwqpm2UxiJEMHTKjXCOE.TyseAl0SJ.KvwtiueSMAuYZN9XD3."], ["updated_at", Sat, 13 Jul 2013 16:44:52 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", Sat, 13 Jul 2013 16:44:52 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:44:52 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 115ms (Views: 6.0ms | ActiveRecord: 6.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/2" for 127.0.0.1 at 2013-07-13 11:44:52 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.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" = 2 LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 67ms (Views: 6.5ms | ActiveRecord: 2.4ms)  (6.2ms) ROLLBACK  (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.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  (1.5ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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", Sat, 13 Jul 2013 16:44:56 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$QIavlhm.KZKMqV7jbBA1duOzsR3sEYyv/bYmbqpAZOjkH.CpaikRe"], ["updated_at", Sat, 13 Jul 2013 16:44:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' 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", Sat, 13 Jul 2013 16:44:56 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 16:44:56 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'okuk6KJPRybzzvB8P59U' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-13 16:44:56.599047', "updated_at" = '2013-07-13 16:44:56.599047', "authentication_token" = 'okuk6KJPRybzzvB8P59U' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sat, 13 Jul 2013 16:44:56 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:44:56 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", Sat, 13 Jul 2013 16:44:56 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$c1Gw8tTMSeP.DNcGKtp2C.4tOWyOCFy1phpCBblRy6kTIc/k59bzC"], ["updated_at", Sat, 13 Jul 2013 16:44:56 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", Sat, 13 Jul 2013 16:44:56 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$BOoTAB/Not8I5RDywk8Ktec2y7yOPNkYfan0FHc8oFmMfZc1KEs9a"], ["updated_at", Sat, 13 Jul 2013 16:44:56 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.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", Sat, 13 Jul 2013 16:44:56 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 16:44:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fRrbJF767KJs2spMW44Z' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-13 16:44:56.812334', "updated_at" = '2013-07-13 16:44:56.812334', "authentication_token" = 'fRrbJF767KJs2spMW44Z' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "www"  (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.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.3ms) 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)   (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.8ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (6.3ms) 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.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.7ms) 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)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) 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  (13.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  (1.3ms) BEGIN  (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  (17.3ms) 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 (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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  (17.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.7ms) BEGIN  (0.3ms) 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 (8.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:45:01 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$YoDXKl0vgjosXVhXdc04H.gKAyoOMM.TTdWGGl7rJ4RKFwyHzTFG."], ["updated_at", Sat, 13 Jul 2013 16:45:01 UTC +00:00]] 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", Sat, 13 Jul 2013 16:45:01 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 16:45:01 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rgmK2H7KVWNhKBtjHeMZ' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-13 16:45:01.821114', "updated_at" = '2013-07-13 16:45:01.821114', "authentication_token" = 'rgmK2H7KVWNhKBtjHeMZ' WHERE "public"."cadenero_accounts"."id" = 1  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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", Sat, 13 Jul 2013 16:45:01 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:45:01 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 LIMIT 1  (9.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  (17.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.3ms) BEGIN Cadenero::V1::Account Exists (6.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.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  (17.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) 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.4ms) BEGIN Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.6ms) ROLLBACK  (0.7ms) 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.7ms) 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.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (50.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.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.5ms) SAVEPOINT active_record_1 SQL (130.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:47:19 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$YJtQdjiJWJRzAL4v1knYiugIdERGmVvqO9xUrVxwsHmKHlPI31pki"], ["updated_at", Sat, 13 Jul 2013 16:47:19 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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" = 'test1' LIMIT 1 SQL (1.8ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:47:19 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 16:47:19 UTC +00:00]] Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'W3ygS6t9d3n4rMMiPf7u' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (4.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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 16:47:19 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:19 UTC +00:00], ["id", 1], ["authentication_token", "W3ygS6t9d3n4rMMiPf7u"]]  (0.2ms) 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", Sat, 13 Jul 2013 16:47:19 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:19 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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", Sat, 13 Jul 2013 16:47:19 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$GEu8PiiXn.A8lnKMpklsuOOzO5pyUbZcGfZGUchKEpG88dbzEADRu"], ["updated_at", Sat, 13 Jul 2013 16:47:19 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", Sat, 13 Jul 2013 16:47:19 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$tpwQ7XPdLY7C0vQ75AJ23OhoJEU1KcithbF5ar9W31Le1uiLst9cC"], ["updated_at", Sat, 13 Jul 2013 16:47:19 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (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" = 'www' 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", Sat, 13 Jul 2013 16:47:19 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 16:47:19 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hzW2CxqvKiEh45pumxRa' 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" = 2 [["name", "Root"], ["subdomain", "www"], ["owner_id", 3], ["created_at", Sat, 13 Jul 2013 16:47:19 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:19 UTC +00:00], ["id", 2], ["authentication_token", "hzW2CxqvKiEh45pumxRa"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) CREATE SCHEMA "www"  (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" ("authentication_token")  (2.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)  (5.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (16.2ms) ROLLBACK  (0.3ms) BEGIN  (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  (14.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (15.9ms) ROLLBACK  (1.5ms) BEGIN ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (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  (10.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.8ms) ROLLBACK  (1.9ms) BEGIN  (0.2ms) 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", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$YmeUUjcWv50EKXPojM7b4.7sYORJo4zHQjec1oVngHld0rt5CQ7MO"], ["updated_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 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", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 4], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hG6miXmb3QZbMzzWj3bU' 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", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["id", 3], ["authentication_token", "hG6miXmb3QZbMzzWj3bU"]]  (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", 3], ["created_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2" SQL (0.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (12.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)   (6.8ms) 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.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)  (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_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.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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 11:47:25 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (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  (8.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (7.4ms) ROLLBACK  (0.1ms) 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", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$..8Qrjw5mFfRoXZmonazQuwxj9yx4/zaFwkd0ImKkY5aCSU9GiDMa"], ["updated_at", Sat, 13 Jul 2013 16:47:25 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.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 5], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rScsex18zLpszasDb76X' 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" = 4 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 5], ["created_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["id", 4], ["authentication_token", "rScsex18zLpszasDb76X"]]  (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", 4], ["created_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (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" USING btree ("authentication_token")  (1.8ms) 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)   (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_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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$6nhWbnZusQC/sQetrF4vYOL6xcfrK3Ia.R9ec5pXFUAx/1rjqr.By"], ["updated_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 6], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eguWpJWvyna8WJQDo92T' 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 #4"], ["subdomain", "test4"], ["owner_id", 6], ["created_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["id", 5], ["authentication_token", "eguWpJWvyna8WJQDo92T"]]  (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", 5], ["created_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:47:25 -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 43ms (Views: 0.5ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 11:47:25 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') LIMIT 1 Cadenero::User Load (1.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 [["account_id", 4]] Completed 422 Unprocessable Entity in 70ms (Views: 0.5ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (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  (9.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  (6.4ms) ROLLBACK  (0.1ms) 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", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$.CbsiGaypWZmY1I2bLnizOVOf1i2xpbgXUzYq.P215eU0tqCLLHzq"], ["updated_at", Sat, 13 Jul 2013 16:47:25 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", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 7], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'V9HXcpgqY1xLvU39ZVaZ' 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" = 6 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 7], ["created_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["id", 6], ["authentication_token", "V9HXcpgqY1xLvU39ZVaZ"]]  (0.4ms) 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", 6], ["created_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (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" USING btree ("authentication_token")  (17.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("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" USING btree ("account_id")  (0.9ms) 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)  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:47:25 -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-13 11:47:25 -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 ('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" = 'foo@example.com' LIMIT 1 [["account_id", 6]] 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (71.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.0ms) ROLLBACK  (1.0ms) BEGIN  (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", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$DbIX5LXxfh3vhqalDVt/CusivsKXavXveKIRTvv4QBdqrn3dFFRQK"], ["updated_at", Sat, 13 Jul 2013 16:47:25 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 (2.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 8], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00]] Cadenero::V1::Account Load (38.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6ZSSf59Ls87Ys2HaLdZY' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (31.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 #6"], ["subdomain", "test6"], ["owner_id", 8], ["created_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["id", 7], ["authentication_token", "6ZSSf59Ls87Ys2HaLdZY"]]  (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", 7], ["created_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:25 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (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)  (1.5ms) 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")  (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)   (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.5ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (6.5ms) 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 ('20130612073709')  (4.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:47:26 -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-13 11:47:26 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') 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" = 'user7@example.com' LIMIT 1 [["account_id", 7]] Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 8]] 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", 8]] Completed 201 Created in 76ms (Views: 57.5ms | ActiveRecord: 4.1ms) Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:47:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 8 LIMIT 1 Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.9ms)  (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  (10.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (22.1ms) 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  (27.8ms) ROLLBACK  (14.4ms) BEGIN  (15.9ms) SAVEPOINT active_record_1 SQL (23.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:47:26 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$KfytTu5B77K1JBx4DoW0HuF/5v12QznAZx6CqfAmJ6P8wDkk6L/pW"], ["updated_at", Sat, 13 Jul 2013 16:47:26 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" = '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", Sat, 13 Jul 2013 16:47:26 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 9], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 16:47:26 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yvijxaxHVdibj4ueqNUq' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (5.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" = 8 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 9], ["created_at", Sat, 13 Jul 2013 16:47:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:26 UTC +00:00], ["id", 8], ["authentication_token", "yvijxaxHVdibj4ueqNUq"]]  (3.3ms) RELEASE SAVEPOINT active_record_1  (2.2ms) SAVEPOINT active_record_1 SQL (8.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", Sat, 13 Jul 2013 16:47:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:26 UTC +00:00], ["user_id", 9]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7" SQL (0.1ms) 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)   (6.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (19.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)  (4.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (4.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("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)   (5.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.3ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 11:47:26 -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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 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 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 [["account_id", 8]] Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Cadenero::V1::Account Load (10.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] 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", 9]] Completed 201 Created in 49ms (Views: 6.6ms | ActiveRecord: 14.8ms) Cadenero::V1::Account Load (4.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-13 11:47:26 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"9", "default"=>:json} Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 1.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-13 11:47:26 -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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (24.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.9ms) ROLLBACK  (0.1ms) BEGIN  (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", Sat, 13 Jul 2013 16:47:26 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$dKt2EEIgBw1pkVPP2tkL2usy7sZ5xDpp4oJc7Nt6RDMIrfgIY8GZ2"], ["updated_at", Sat, 13 Jul 2013 16:47:26 UTC +00:00]]  (1.5ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (1.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:47:26 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 10], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 16:47:26 UTC +00:00]] Cadenero::V1::Account Load (21.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6pnVze3ykj5Xk6X96rpy' 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" = 9 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 10], ["created_at", Sat, 13 Jul 2013 16:47:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:26 UTC +00:00], ["id", 9], ["authentication_token", "6pnVze3ykj5Xk6X96rpy"]]  (0.3ms) 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", 9], ["created_at", Sat, 13 Jul 2013 16:47:26 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:26 UTC +00:00], ["user_id", 10]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (3.0ms) CREATE SCHEMA "test8" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (13.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.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")  (17.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)   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (22.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)  (2.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 ('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-13 11:47:27 -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-13 11:47:27 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.0ms) 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" = 'user@example.com' LIMIT 1 [["account_id", 9]] Completed 422 Unprocessable Entity in 7ms (Views: 0.5ms | ActiveRecord: 2.7ms) 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.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  (27.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) 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  (10.1ms) ROLLBACK  (0.8ms) BEGIN  (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", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$b0KMezkdp.JE30t5E1qqQe3AT3DgEz2MGofthHE55PDj4AKCC0JHK"], ["updated_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 11], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00]] Cadenero::V1::Account Load (2.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'j6pabHtmBW7dd9hAQLvz' 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" = 10 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 11], ["created_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["id", 10], ["authentication_token", "j6pabHtmBW7dd9hAQLvz"]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 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", 10], ["created_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["user_id", 11]]  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9" SQL (0.1ms) 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)   (4.7ms) 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")  (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)  (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("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)   (2.6ms) 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"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 11:47:27 -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" = 'test9' 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", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$58DyMODZ3jdEAzKYowlCrurPkC/h/oPRKrfJ9le5NEpyh965yORlO"], ["updated_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00]] 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", 10], ["created_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["user_id", 12]]  (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" = 12 LIMIT 1 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 (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 12]] Completed 201 Created in 23ms (Views: 7.0ms | ActiveRecord: 5.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/12" for 127.0.0.1 at 2013-07-13 11:47:27 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"12"} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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"."id" = 12 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 10]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 12 LIMIT 1 Cadenero::V1::Account Load (3.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 12]] Cadenero::V1::Account Load (4.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", 12]] Completed 200 OK in 23ms (Views: 8.4ms | ActiveRecord: 9.7ms)  (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  (20.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (42.7ms) ROLLBACK  (3.0ms) BEGIN  (3.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", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$u10veYa89w9IcFW0ba7zauPCDdxSNx1IvmncixlLS7MBvHo5JLyG6"], ["updated_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 13], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DadMqTw8m9pPnAHsvv3C' 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" = 11 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 13], ["created_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["id", 11], ["authentication_token", "DadMqTw8m9pPnAHsvv3C"]]  (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", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["user_id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10" SQL (0.4ms) 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.4ms) 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")  (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)  (3.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (4.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("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)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 11:47:27 -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 (3.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (2.8ms) 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", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$SURAzipLvHYr6GBXSpbaJOADcCA0Z/XPlLy3r8rB/kj4faP1O1uBi"], ["updated_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00]] 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", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["user_id", 14]]  (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" = 14 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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", 14]] Completed 201 Created in 33ms (Views: 5.6ms | ActiveRecord: 16.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/14" for 127.0.0.1 at 2013-07-13 11:47:27 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"14"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (14.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"."id" = 14 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 11]] Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 LIMIT 1 Cadenero::V1::Account Load (9.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] Cadenero::V1::Account Load (5.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", 14]] Completed 200 OK in 42ms (Views: 6.5ms | ActiveRecord: 30.5ms) Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1  (10.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (8.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 14], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WQ5GvsrxTwmEnvXqe7eT' 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 #11"], ["subdomain", "test11"], ["owner_id", 14], ["created_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["id", 12], ["authentication_token", "WQ5GvsrxTwmEnvXqe7eT"]]  (0.3ms) 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", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["user_id", 14]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (11.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)  (8.3ms) 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")  (7.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" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 11:47:27 -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 (5.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (2.4ms) SAVEPOINT active_record_1 SQL (10.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$AGYNDhXRN1R5ETvmilRXceOFhgXrfnsZethGejCScJx6n2yN2Kp.O"], ["updated_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00]] SQL (12.9ms) 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", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:27 UTC +00:00], ["user_id", 15]]  (3.6ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (3.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 15 LIMIT 1 Cadenero::V1::Account Load (17.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 15]] 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", 15]] Completed 201 Created in 75ms (Views: 7.3ms | ActiveRecord: 56.8ms) Cadenero::V1::Account Load (2.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 Started GET "/v1/users/14" for 127.0.0.1 at 2013-07-13 11:47:27 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"14"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 14 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 11]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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", 14]] Completed 200 OK in 14ms (Views: 7.7ms | ActiveRecord: 2.1ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-13 11:47:27 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (22.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 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", 11]] Cadenero::V1::Account Load (0.3ms) 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]] Cadenero::V1::Account Load (14.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] Cadenero::V1::Account Load (15.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", 14]] Completed 200 OK in 74ms (Views: 16.8ms | ActiveRecord: 54.5ms)  (15.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  (33.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (10.9ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (7.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", 1001]] Completed 201 Created in 14ms (Views: 3.6ms | ActiveRecord: 7.8ms)  (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  (14.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.4ms) 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.2ms | ActiveRecord: 0.0ms)  (0.4ms) 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  (12.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (24.5ms) ROLLBACK  (2.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 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (3.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  (35.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (10.4ms) ROLLBACK  (0.5ms) 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)  (2.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  (30.1ms) 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.7ms) ROLLBACK  (1.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (4.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (8.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 18ms (Views: 4.1ms | ActiveRecord: 13.5ms)  (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  (19.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (4.5ms) ROLLBACK  (1.4ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (4.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] 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", 101]] Completed 200 OK in 12ms (Views: 6.4ms | ActiveRecord: 5.1ms)  (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  (21.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.5ms) ROLLBACK  (0.6ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 11:47:28 -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 (2.7ms) 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", Sat, 13 Jul 2013 16:47:28 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$VTpGnmBZndtdVvswmUtS.urHNoE9Lco./n/QK8rX.okxyFZQKvUKC"], ["updated_at", Sat, 13 Jul 2013 16:47:28 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", Sat, 13 Jul 2013 16:47:28 UTC +00:00], ["name", "Testy"], ["owner_id", 16], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 16:47:28 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ss8rQvJTq27JV93KYyZZ' 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", "Testy"], ["subdomain", "test"], ["owner_id", 16], ["created_at", Sat, 13 Jul 2013 16:47:28 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:28 UTC +00:00], ["id", 13], ["authentication_token", "ss8rQvJTq27JV93KYyZZ"]]  (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", Sat, 13 Jul 2013 16:47:28 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:28 UTC +00:00], ["user_id", 16]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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  (0.2ms) CREATE SCHEMA "test" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (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)   (5.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (2.9ms) 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)  (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_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)   (4.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (7.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 16 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", 13]] Completed 201 Created in 125ms (Views: 5.7ms | ActiveRecord: 72.1ms) Cadenero::V1::Account Load (4.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.4ms) 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.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (24.8ms) 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.7ms) ROLLBACK  (1.8ms) BEGIN  (0.3ms) 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.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:47:28 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$nVUily84hANvYjfGadax8OQM/3XBBwF.YnqTtnG8e0Zmjaayc0i3m"], ["updated_at", Sat, 13 Jul 2013 16:47:28 UTC +00:00]] SQL (8.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:47:28 UTC +00:00], ["name", "Testy"], ["owner_id", 17], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 16:47:28 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JrmkUNxpXpo5pTrSBKMr' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (2.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", Sat, 13 Jul 2013 16:47:28 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:28 UTC +00:00], ["id", 14], ["authentication_token", "JrmkUNxpXpo5pTrSBKMr"]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 11:47:28 -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.5ms) 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 49ms (Views: 0.4ms | ActiveRecord: 1.1ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (49.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (7.1ms) ROLLBACK  (0.2ms) BEGIN  (7.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (3.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:47:29 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$CmARL2e8QfzPCJWBhSUHxuYA1gcsLRQM/.sRRnMlnw/BjrXc1hCIC"], ["updated_at", Sat, 13 Jul 2013 16:47:29 UTC +00:00]] SQL (4.2ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 16:47:29 UTC +00:00], ["name", "Test Account"], ["owner_id", 18], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 16:47:29 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'jmE77vzqMas2eCpxS3L3' 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" = 15 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 18], ["created_at", Sat, 13 Jul 2013 16:47:29 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:29 UTC +00:00], ["id", 15], ["authentication_token", "jmE77vzqMas2eCpxS3L3"]]  (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", 15], ["created_at", Sat, 13 Jul 2013 16:47:29 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 16:47:29 UTC +00:00], ["user_id", 18]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (7.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 15]]  (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  (15.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  (6.7ms) ROLLBACK  (0.5ms) BEGIN Cadenero::V1::Account Exists (4.0ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.3ms) ROLLBACK  (0.1ms) BEGIN Cadenero::V1::Account Exists (10.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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.9ms) ROLLBACK  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.4ms) 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  (89.9ms) 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  (7.7ms) ROLLBACK  (0.7ms) 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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (19.7ms) 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 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Cadenero::User Load (7.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" = $1 [["account_id", 1001]] Completed 201 Created in 124ms (Views: 97.2ms | ActiveRecord: 10.5ms)  (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  (11.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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) ROLLBACK  (0.3ms) BEGIN 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)  (1.0ms) 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  (9.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (7.0ms) ROLLBACK  (0.1ms) BEGIN  (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" = 'test' LIMIT 1 SQL (5.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:15:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$m/VSWR.VWCioMafkMaZ7NuTfU/bdiUW9Kb8ZjuazPeN1JL.vvo1aS"], ["updated_at", Sat, 13 Jul 2013 17:15:38 UTC +00:00]] SQL (1.9ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:15:38 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 17:15:38 UTC +00:00]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4HYCFWKNVXjNTaxqp1DA' 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" = 1 [["name", "Test Account"], ["subdomain", "test"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 17:15:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:38 UTC +00:00], ["id", 1], ["authentication_token", "4HYCFWKNVXjNTaxqp1DA"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (3.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", Sat, 13 Jul 2013 17:15:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:38 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (8.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", 1]]  (1.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  (42.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.7ms) ROLLBACK  (0.5ms) 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_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;  (0.2ms) 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  (10.0ms) ROLLBACK  (0.1ms) 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.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  (14.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (52.2ms) ROLLBACK  (0.5ms) BEGIN Cadenero::V1::Account Exists (1.2ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (16.4ms) ROLLBACK  (0.2ms) BEGIN  (0.3ms) 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", Sat, 13 Jul 2013 17:15:38 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$dvV1ra8uBnSYbgJMK.zw.OkuylmtOy37d7zJk9xqf7vntV7/9Hzv."], ["updated_at", Sat, 13 Jul 2013 17:15:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 (3.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:15:38 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 2], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 17:15:38 UTC +00:00]] Cadenero::V1::Account Load (5.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MAcTKvd3ptMzbbpCSgUw' 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" = 2 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 2], ["created_at", Sat, 13 Jul 2013 17:15:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:38 UTC +00:00], ["id", 2], ["authentication_token", "MAcTKvd3ptMzbbpCSgUw"]]  (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", 2], ["created_at", Sat, 13 Jul 2013 17:15:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:38 UTC +00:00], ["user_id", 2]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test1" SQL (1.0ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (8.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)   (3.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")  (6.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)  (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("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.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (5.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 12:15:39 -0500 Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (1.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  (13.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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  (12.3ms) ROLLBACK  (0.2ms) BEGIN  (0.8ms) 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", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$hoNVMhwSFEeuHWXEpZFz0.Ljm8sj8u7Yus5uTMDX9J0rgNoYLBtFi"], ["updated_at", Sat, 13 Jul 2013 17:15:39 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", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 3], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZnzzkSF2qR1yzLUU8qZs' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (2.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" = 3 [["name", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 3], ["created_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["id", 3], ["authentication_token", "ZnzzkSF2qR1yzLUU8qZs"]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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", 3], ["created_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["user_id", 3]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test2" SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (8.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.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")  (4.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)   (5.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (6.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)   (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 12:15:39 -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-13 12:15:39 -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 ('test2') 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" = 'foo@example.com' LIMIT 1 [["account_id", 3]] Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 1.5ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.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  (26.0ms) ROLLBACK  (0.1ms) BEGIN  (0.8ms) 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", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$99wecXQfBWY5EpX6YyxsSet6Gh3UJIvnB.SDVIVBJTEFbUQYRapWO"], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 4], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2UVQ5yNFK9Z21592G9zb' 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" = 4 [["name", "Test Account #3"], ["subdomain", "test3"], ["owner_id", 4], ["created_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["id", 4], ["authentication_token", "2UVQ5yNFK9Z21592G9zb"]]  (0.2ms) 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", 4], ["created_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test3" SQL (0.8ms) 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.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")  (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)  (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_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.8ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$p9R//Vtv7eqLn1d3oS6Al.J.FkdFnuhdWogmOwpY/5iIl3kWhR6Ha"], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00]]  (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" = '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", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 5], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1KjsgrZMY5uHaFy5xgB1' 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 #4"], ["subdomain", "test4"], ["owner_id", 5], ["created_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["id", 5], ["authentication_token", "1KjsgrZMY5uHaFy5xgB1"]]  (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", 5], ["created_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["user_id", 5]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 12:15:39 -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-13 12:15:39 -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.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", 4]] 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.9ms) 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  (5.8ms) ROLLBACK  (2.6ms) BEGIN  (0.8ms) 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", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$XCzRfCQgoVqeO5T4bHzcDu9g/ESxfKakh6NvsPdnKqAfMlWZuRFXm"], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' 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", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 6], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rUTuzhzbLhmzZx1jqFZr' 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" = 6 [["name", "Test Account #5"], ["subdomain", "test5"], ["owner_id", 6], ["created_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["id", 6], ["authentication_token", "rUTuzhzbLhmzZx1jqFZr"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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", 6], ["created_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["user_id", 6]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (9.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)  (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")  (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)   (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (10.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)   (2.0ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 12:15:39 -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.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" = 'user5@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" = 6 LIMIT 1 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 6]] 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", 6]] Completed 201 Created in 44ms (Views: 32.4ms | ActiveRecord: 3.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-13 12:15:39 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"6", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 6 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-13 12:15:39 -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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.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  (10.4ms) ROLLBACK  (0.6ms) 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", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$6MT9o1rrV5yssC1TojUhHOTZ9VDySXIjAXXPw0kpdLn37fRLDVmdC"], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' 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", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 7], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CgtTqQ8J6uPqCZ2AFSBv' 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" = 7 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 7], ["created_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["id", 7], ["authentication_token", "CgtTqQ8J6uPqCZ2AFSBv"]]  (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", 7], ["created_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6" SQL (0.3ms) 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.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)  (2.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("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)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (1.1ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-13 12:15:39 -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-13 12:15:39 -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.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", 7]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 7 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 7]] Cadenero::V1::Account Load (3.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 [["user_id", 7]] Completed 201 Created in 19ms (Views: 6.5ms | ActiveRecord: 5.4ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 12:15:39 -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" = 7 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (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  (9.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (7.7ms) ROLLBACK  (0.4ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 SQL (9.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$UcrC1WL/a2/gaCpVs.VIWOE8nadEqsKMO2JUdRspmrGWF6ccaUb1q"], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' 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", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 8], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CrTRncoHpcBCerTkqByB' 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" = 8 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 8], ["created_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["id", 8], ["authentication_token", "CrTRncoHpcBCerTkqByB"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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", 8], ["created_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:39 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test7" 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)  (2.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (4.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)   (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.8ms) 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.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.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-13 12:15:40 -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-13 12:15:40 -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.7ms) 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" = 'user@example.com' LIMIT 1 [["account_id", 8]] Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 1.5ms) Cadenero::V1::Account Load (1.0ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (10.0ms) ROLLBACK  (0.6ms) BEGIN ActiveRecord::SchemaMigration Load (4.8ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (11.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) 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  (10.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.7ms) ROLLBACK  (1.0ms) BEGIN  (0.4ms) 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  (11.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.4ms) ROLLBACK  (7.8ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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", Sat, 13 Jul 2013 17:15:47 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$dUXQhIPT1kINw6XGRdPN6O3nmca0/GsmvhYOXOeYDyaxbOjxra7Bm"], ["updated_at", Sat, 13 Jul 2013 17:15:47 UTC +00:00]]  (0.4ms) 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" = 'test8' 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", Sat, 13 Jul 2013 17:15:47 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 9], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 17:15:47 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Ht3JcrsKRCZB7nNi7igh' 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", 9], ["created_at", Sat, 13 Jul 2013 17:15:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:47 UTC +00:00], ["id", 9], ["authentication_token", "Ht3JcrsKRCZB7nNi7igh"]]  (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", 9], ["created_at", Sat, 13 Jul 2013 17:15:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:47 UTC +00:00], ["user_id", 9]]  (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", Sat, 13 Jul 2013 17:15:47 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$lI51rRBnJm/JNcHpLkNPa.NKwVi.7P9qxunzJEp4Dn.eVnIQ4Yrqy"], ["updated_at", Sat, 13 Jul 2013 17:15:47 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", Sat, 13 Jul 2013 17:15:47 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$gW.B3xgrC43OWDOdmJjS5.IWuwS3.IcCDVl2cbntyenSSXAUa6bMa"], ["updated_at", Sat, 13 Jul 2013 17:15:47 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:15:47 UTC +00:00], ["name", "Root"], ["owner_id", 11], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 17:15:47 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3x4Rxfnf8CKLyhsisvpd' 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", "Root"], ["subdomain", "www"], ["owner_id", 11], ["created_at", Sat, 13 Jul 2013 17:15:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:47 UTC +00:00], ["id", 10], ["authentication_token", "3x4Rxfnf8CKLyhsisvpd"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www" 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")  (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)  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (31.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)  (4.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.4ms) 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.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.5ms) ROLLBACK  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 12:15:47 -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 (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:15:47 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$3OwrUeW4iAjPHOwC/PVVDeJnDHKuYA/cZqnFGo1EKXQLyH3Khq8me"], ["updated_at", Sat, 13 Jul 2013 17:15:47 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", Sat, 13 Jul 2013 17:15:47 UTC +00:00], ["name", "Testy"], ["owner_id", 12], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 17:15:47 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'iv7jpwyzHrP2xoAGhzzi' 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", "Testy"], ["subdomain", "test"], ["owner_id", 12], ["created_at", Sat, 13 Jul 2013 17:15:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:47 UTC +00:00], ["id", 11], ["authentication_token", "iv7jpwyzHrP2xoAGhzzi"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (12.0ms) 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", Sat, 13 Jul 2013 17:15:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:47 UTC +00:00], ["user_id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 11) LIMIT 1  (0.2ms) CREATE SCHEMA "test" SQL (1.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (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)  (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.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)   (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_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.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 12 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", 11]] Completed 201 Created in 100ms (Views: 6.3ms | ActiveRecord: 52.1ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (7.0ms) 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.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$Wcq3aD4Ton2lsaBDrPmEp.wDLOArOKK1LX.Nc1tU7J7U0m4zOZKEe"], ["updated_at", Sat, 13 Jul 2013 17:15:48 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", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["name", "Testy"], ["owner_id", 13], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'iNVEPiJPPJssmczdygMM' 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", "Testy"], ["subdomain", "test"], ["owner_id", 13], ["created_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["id", 12], ["authentication_token", "iNVEPiJPPJssmczdygMM"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 12:15:48 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 13ms (Views: 0.4ms | ActiveRecord: 0.6ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.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.4ms | ActiveRecord: 0.0ms)  (1.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  (20.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (5.6ms) ROLLBACK  (0.7ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] 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", 101]] Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 2.3ms)  (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  (18.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (9.3ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] 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" = $1 [["user_id", 101]] Completed 200 OK in 8ms (Views: 4.9ms | ActiveRecord: 2.3ms)  (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  (16.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (7.0ms) ROLLBACK  (0.1ms) BEGIN  (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", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$W4sDz76CSIlDJrOa.3MjVeocsbi6CagwcQ5wIbyKBbpob.04MVgEK"], ["updated_at", Sat, 13 Jul 2013 17:15:48 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.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 14], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zvyi1S65FCPzZwgVU6Ts' 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 #9"], ["subdomain", "test9"], ["owner_id", 14], ["created_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["id", 13], ["authentication_token", "zvyi1S65FCPzZwgVU6Ts"]]  (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", 13], ["created_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["user_id", 14]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (9.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)  (8.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")  (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)   (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_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.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"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 12:15:48 -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" = 'test9' 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", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$.Q9i10VN9cXBatYuUy1tFeE/W/T4YC8Zl8ZHO/HmJBmt7GPVMkDqW"], ["updated_at", Sat, 13 Jul 2013 17:15:48 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", 13], ["created_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["user_id", 15]]  (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" = 15 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 15]] 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", 15]] Completed 201 Created in 21ms (Views: 7.9ms | 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 Started GET "/v1/users/15" for 127.0.0.1 at 2013-07-13 12:15:48 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"15"} Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 15 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 13]] Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 15 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 15]] 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", 15]] Completed 200 OK in 16ms (Views: 5.7ms | ActiveRecord: 4.1ms)  (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  (9.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  (12.8ms) ROLLBACK  (1.3ms) BEGIN  (1.3ms) 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", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$cDH4Otp/jT2XQ6bzpXi7.u4ogGGNyZ7c67Akyzkw0KgJ4c2oJT/6e"], ["updated_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 16], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FC7AYShpvF9RaVhimSuH' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (1.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" = 14 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 16], ["created_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["id", 14], ["authentication_token", "FC7AYShpvF9RaVhimSuH"]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 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", 14], ["created_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["user_id", 16]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test10" 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.8ms) 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.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)   (3.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.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)  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 12:15:48 -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 (3.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' 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", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$6g4bsMlvb5qVmstYpp6NMeBH4.kVK0B2H87YkTjlWVY5GAiNTIHTi"], ["updated_at", Sat, 13 Jul 2013 17:15:48 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", 14], ["created_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["user_id", 17]]  (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" = 17 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 17]] 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", 17]] Completed 201 Created in 25ms (Views: 8.1ms | ActiveRecord: 6.8ms) 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 Started GET "/v1/users/17" for 127.0.0.1 at 2013-07-13 12:15:48 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"17"} Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (2.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"."id" = 17 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 14]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 17 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 17]] 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", 17]] Completed 200 OK in 13ms (Views: 5.4ms | ActiveRecord: 4.3ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 17 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" = 'test11' LIMIT 1 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", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 17], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9iMnkuxz5QEix56QYpSR' 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", 17], ["created_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["id", 15], ["authentication_token", "9iMnkuxz5QEix56QYpSR"]]  (0.1ms) 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", 15], ["created_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["user_id", 17]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11" SQL (0.1ms) 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.1ms) 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.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.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (6.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.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.8ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 12:15:48 -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" = 'test11' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$Kn16C/JlcesgsD6ONsPpsO2GiZ15W9JzyuHKZaUubHKNc0QPkC87y"], ["updated_at", Sat, 13 Jul 2013 17:15:48 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", 15], ["created_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:15:48 UTC +00:00], ["user_id", 18]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 18 LIMIT 1 Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 18]] 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", 18]] Completed 201 Created in 22ms (Views: 6.1ms | ActiveRecord: 5.8ms) 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/17" for 127.0.0.1 at 2013-07-13 12:15:48 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"17"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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"."id" = 17 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 14]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 17 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 17]] 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", 17]] Completed 200 OK in 15ms (Views: 8.0ms | ActiveRecord: 2.3ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-13 12:15:48 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 17 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", 14]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 16]] 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", 16]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 17]] 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", 17]] Completed 200 OK in 23ms (Views: 16.7ms | ActiveRecord: 3.1ms)  (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  (42.5ms) 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  (25.1ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (21.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.9ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (9.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:17:47 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$m4AqmxDns3mVMkIhzkFfMO8TICFbDyJ1uemXYLMQrbx5fmnRH9JmK"], ["updated_at", Sat, 13 Jul 2013 17:17:47 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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" = 'test1' LIMIT 1 SQL (1.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:17:47 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 17:17:47 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Yb3aNGWQn1QVGbWWANxr' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 17:17:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:17:47 UTC +00:00], ["id", 1], ["authentication_token", "Yb3aNGWQn1QVGbWWANxr"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 17:17:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:17:47 UTC +00:00], ["user_id", 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", Sat, 13 Jul 2013 17:17:47 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$3KGT0oC4mt02CdeRkKovGeHgmHwKCwGujhUSXaYsodQf2DyA34q1i"], ["updated_at", Sat, 13 Jul 2013 17:17:47 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", Sat, 13 Jul 2013 17:17:47 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$G/8VaL6WS.KiW1kHmmVuc.zOGkgNXrlyp61u5xF/bMZjbRNS8XBUG"], ["updated_at", Sat, 13 Jul 2013 17:17:47 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" = '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", Sat, 13 Jul 2013 17:17:47 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 17:17:47 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4uBE4RgfR2Upwk571Cqx' 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", Sat, 13 Jul 2013 17:17:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:17:47 UTC +00:00], ["id", 2], ["authentication_token", "4uBE4RgfR2Upwk571Cqx"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) CREATE SCHEMA "www" SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (6.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.6ms) 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")  (5.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)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (6.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)   (3.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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  (13.2ms) ROLLBACK  (0.7ms) BEGIN ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) 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  (12.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  (4.2ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) 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  (9.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (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  (16.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (5.8ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (20.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.6ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (5.9ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (2.4ms) SAVEPOINT active_record_1 SQL (16.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:19:38 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$PR2CAlts1a/SdiD/f051EeFn3RnO.8is8s64kwdDBo.J1VQRZDmPu"], ["updated_at", Sat, 13 Jul 2013 17:19:38 UTC +00:00]]  (0.3ms) 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", Sat, 13 Jul 2013 17:19:38 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 17:19:38 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Cs9zsqKyQjzm6bwQDtSY' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 17:19:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:19:38 UTC +00:00], ["id", 1], ["authentication_token", "Cs9zsqKyQjzm6bwQDtSY"]]  (0.2ms) 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", Sat, 13 Jul 2013 17:19:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:19:38 UTC +00:00], ["user_id", 1]]  (0.2ms) 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", Sat, 13 Jul 2013 17:19:38 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$S6HyLxUzuP8U6hI.iIoDYOWx8FnMpf6y94rs32e7OODfV3axPFHYi"], ["updated_at", Sat, 13 Jul 2013 17:19:38 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", Sat, 13 Jul 2013 17:19:38 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$XNvVGeQrjEqXSptVaqhBuuDJfJwBwrAOCq9pSwCGfS2Qz/ORym9E."], ["updated_at", Sat, 13 Jul 2013 17:19:38 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Sat, 13 Jul 2013 17:19:38 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 17:19:38 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'U4AbbXz9ALyp2epNEBhu' 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" = 2 [["name", "Root"], ["subdomain", "www"], ["owner_id", 3], ["created_at", Sat, 13 Jul 2013 17:19:38 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:19:38 UTC +00:00], ["id", 2], ["authentication_token", "U4AbbXz9ALyp2epNEBhu"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www" SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (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.2ms) 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.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" USING btree ("account_id")  (1.4ms) 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)   (1.3ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.7ms) 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  (11.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (17.8ms) ROLLBACK  (1.5ms) BEGIN  (0.4ms) 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.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (5.4ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) 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  (11.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (15.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  (4.3ms) ROLLBACK  (0.3ms) BEGIN ActiveRecord::SchemaMigration Load (2.9ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) 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.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.9ms) ROLLBACK  (0.7ms) 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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (18.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.8ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (10.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:19:57 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$.Eumw6TjS4qncNCsRLM.qOAUOJXNdqOnNS73YInXhNwYyCIsYleka"], ["updated_at", Sat, 13 Jul 2013 17:19:57 UTC +00:00]]  (0.1ms) 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.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:19:57 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 17:19:57 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PjqYS1TuJgYgLSxvDXbG' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 17:19:57 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:19:57 UTC +00:00], ["id", 1], ["authentication_token", "PjqYS1TuJgYgLSxvDXbG"]]  (0.2ms) 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", Sat, 13 Jul 2013 17:19:57 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:19:57 UTC +00:00], ["user_id", 1]]  (0.2ms) 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", Sat, 13 Jul 2013 17:19:57 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$sXjfccV2zrHai.ibpgjl.uDLYIQDDdxnd5Cr/A1tm44Mwv8EeL.sO"], ["updated_at", Sat, 13 Jul 2013 17:19:57 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", Sat, 13 Jul 2013 17:19:58 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$xYYpUMycy8Mx5Ew4e4q3DO1ZMAUIZGv64Q0FndSPxQ7uUeawn4Nf2"], ["updated_at", Sat, 13 Jul 2013 17:19: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" = '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", Sat, 13 Jul 2013 17:19:58 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 17:19:58 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2kDwk5eTc11YBv24mgTv' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (1.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", "Root"], ["subdomain", "www"], ["owner_id", 3], ["created_at", Sat, 13 Jul 2013 17:19:58 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:19:58 UTC +00:00], ["id", 2], ["authentication_token", "2kDwk5eTc11YBv24mgTv"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) CREATE SCHEMA "www" 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.4ms) 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.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" USING btree ("account_id")  (1.0ms) 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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.9ms) 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 ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.9ms) ROLLBACK  (1.0ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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) ROLLBACK  (5.0ms) BEGIN  (0.4ms) 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  (10.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.7ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.1ms) 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 (8.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:20:12 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$aCzry3kh32MKM2zSm3fJWuPQ30osF48B71keHxK4IYEWYtjVNu7gO"], ["updated_at", Sat, 13 Jul 2013 17:20:12 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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" = '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", Sat, 13 Jul 2013 17:20:12 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 17:20:12 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MSVoC1X13PxZzdPeG3Av' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 17:20:12 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:12 UTC +00:00], ["id", 1], ["authentication_token", "MSVoC1X13PxZzdPeG3Av"]]  (0.2ms) 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", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1" SQL (0.4ms) 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.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.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)   (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_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.9ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 12:20:13 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (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  (8.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.8ms) ROLLBACK  (0.1ms) 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", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$HeXFTIJolQjg8JETkoPs6OUMR0cbKnHVWEM0H2AegOEXhwSL3RHg2"], ["updated_at", Sat, 13 Jul 2013 17:20:13 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", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FpFLuqstgnNMBpHJdtei' 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", "Test Account #2"], ["subdomain", "test2"], ["owner_id", 2], ["created_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["id", 2], ["authentication_token", "FpFLuqstgnNMBpHJdtei"]]  (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", 2], ["created_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2" 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.2ms) 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.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" USING btree ("account_id")  (2.7ms) 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")  (0.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 12:20:13 -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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') 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" = 'user2@example.com' LIMIT 1 [["account_id", 2]] Cadenero::User Load (0.4ms) 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" = $1 [["owner_id", 2]] 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", 2]] Completed 201 Created in 91ms (Views: 31.5ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-13 12:20:13 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"2", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-13 12:20:13 -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)  (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  (9.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (49.1ms) 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", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$uJtRIeVDv3TDG9lBk5NCnO2sxYlQSiFuX3UveW54xyMwo/rhjoKla"], ["updated_at", Sat, 13 Jul 2013 17:20:13 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", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 3], ["subdomain", "test3"], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WnqGgaLUVemNrjgC8Jzs' 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", 3], ["created_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["id", 3], ["authentication_token", "WnqGgaLUVemNrjgC8Jzs"]]  (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", 3], ["created_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["user_id", 3]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.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")  (5.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)   (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 12:20:13 -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-13 12:20:13 -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 ('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" = 'user@example.com' LIMIT 1 [["account_id", 3]] 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.2ms) ROLLBACK  (0.1ms) 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", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$EsDRQD8rnHIRkdl/u2xQOOlxcdPfQOre4GWZ9.RRzvH9ZVbjwtVOK"], ["updated_at", Sat, 13 Jul 2013 17:20:13 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", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 4], ["subdomain", "test4"], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pYeUHe5FAzFagFfYTXKr' 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" = 4 [["name", "Test Account #4"], ["subdomain", "test4"], ["owner_id", 4], ["created_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["id", 4], ["authentication_token", "pYeUHe5FAzFagFfYTXKr"]]  (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", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4" 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")  (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)  (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.5ms) 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)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 12:20:13 -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-13 12:20:13 -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 ('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" = 'foo@example.com' LIMIT 1 [["account_id", 4]] 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.4ms) 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", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$.mQv9UfPKbtODbURV6/Na.J0EsQ/gu1xCj/QZANaudz3d0427QZXS"], ["updated_at", Sat, 13 Jul 2013 17:20:13 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", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 5], ["subdomain", "test5"], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'y3uzz8UEKkzebtWnVSK5' 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", 5], ["created_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["id", 5], ["authentication_token", "y3uzz8UEKkzebtWnVSK5"]]  (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", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (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)  (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")  (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)   (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_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)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.8ms) 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')  (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", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$U3vtFA6VPJuVWdMxWfxfmudKzT.cSHoS7A/eXEMrsIt/8kC9O0M.a"], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 6], ["subdomain", "test6"], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'G9hmLoWCYjwUeAKa8Yhz' 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", 6], ["created_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["id", 6], ["authentication_token", "G9hmLoWCYjwUeAKa8Yhz"]]  (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", 6], ["created_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["user_id", 6]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 12:20:13 -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-13 12:20:13 -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.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", 5]] 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.1ms) 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", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$3dMpzN.Wl5GeUiB5g7n9Refw3TTGiaKSmStlogxzNgeM2uhGLjYJa"], ["updated_at", Sat, 13 Jul 2013 17:20:13 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", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 7], ["subdomain", "test7"], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RXubcqQQubFHxqmBCh9X' 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", 7], ["created_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["id", 7], ["authentication_token", "RXubcqQQubFHxqmBCh9X"]]  (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", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7" 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)   (1.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (7.1ms) 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)  (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) 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.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 ('20130612073709')  (0.2ms) 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-13 12:20:13 -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-13 12:20:13 -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.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" = 'user7@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" = 7 LIMIT 1 Cadenero::V1::Account Load (0.5ms) 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 14ms (Views: 5.3ms | ActiveRecord: 2.7ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 12:20:13 -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" = 7 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (9.9ms) 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", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$1HEaIvdryWYvHlzFf02D2.ccaHbyx/hLAxo6WZtDlBjECaGt4KZIC"], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 8], ["subdomain", "test8"], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qKLzsqRuA78H4AjrFpBy' 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" = 8 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 8], ["created_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["id", 8], ["authentication_token", "qKLzsqRuA78H4AjrFpBy"]]  (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", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:13 UTC +00:00], ["user_id", 8]]  (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)  (1.7ms) 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)   (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_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)   (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 ('20130612073709')  (0.2ms) 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-13 12:20:13 -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" = 'test8' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$4IQL5yh8TZD4ybhM/RKSx.TvXpB1rqm.5FGIlY/lqnLgu9R4SUSiu"], ["updated_at", Sat, 13 Jul 2013 17:20:14 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", 8], ["created_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["user_id", 9]]  (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" = 9 LIMIT 1 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.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 20ms (Views: 5.2ms | ActiveRecord: 4.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/9" for 127.0.0.1 at 2013-07-13 12:20:14 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"9"} 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.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", 8]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 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 200 OK in 12ms (Views: 5.3ms | ActiveRecord: 2.1ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 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" = 'test9' 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", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 9], ["subdomain", "test9"], ["updated_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'szutHC27b55SrisCQ5KZ' 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", 9], ["created_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["id", 9], ["authentication_token", "szutHC27b55SrisCQ5KZ"]]  (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", 9], ["created_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["user_id", 9]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9" 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.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)  (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_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.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) 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-13 12:20:14 -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" = 'test9' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.5ms) 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", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$l27ZPBTEJVU/wmD0LYj9ye994udofuwlsLiUbWkZVb2KPyIyeFOnO"], ["updated_at", Sat, 13 Jul 2013 17:20:14 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", 9], ["created_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["user_id", 10]]  (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" = 10 LIMIT 1 Cadenero::V1::Account Load (0.7ms) 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 21ms (Views: 7.1ms | ActiveRecord: 4.1ms) 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/9" for 127.0.0.1 at 2013-07-13 12:20:14 -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" = '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" = $1 AND "public"."cadenero_users"."id" = 9 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" = 9 LIMIT 1 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 200 OK in 13ms (Views: 7.3ms | ActiveRecord: 2.0ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-13 12:20:14 -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" = 'test8' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 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", 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.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", 8]] 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 17ms (Views: 12.1ms | ActiveRecord: 2.7ms)  (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  (9.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (10.0ms) 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", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$vMXq.FELZkrwQmsFU3EhY.WoCQFoWjs1XmjX2wVq8bmNGc5qKoxDa"], ["updated_at", Sat, 13 Jul 2013 17:20:14 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" = '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", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 11], ["subdomain", "test10"], ["updated_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FPnjyUxHwwxzdBxXg19y' 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", 11], ["created_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["id", 10], ["authentication_token", "FPnjyUxHwwxzdBxXg19y"]]  (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", 10], ["created_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["user_id", 11]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10" SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (9.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.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)   (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (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)  (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.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) 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-13 12:20:14 -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" = 'test10' 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", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$XnEE0jc2biIn8QREbHvS9un/v9JtN3ZWYL9Pf64Cg8xpF0Q5M0Lqe"], ["updated_at", Sat, 13 Jul 2013 17:20:14 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", 10], ["created_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["user_id", 12]]  (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" = 12 LIMIT 1 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.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", 12]] Completed 201 Created in 19ms (Views: 5.2ms | ActiveRecord: 3.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/12" for 127.0.0.1 at 2013-07-13 12:20:14 -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" = '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"."id" = 12 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 10]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 12 LIMIT 1 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 11ms (Views: 5.0ms | ActiveRecord: 2.0ms)  (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  (9.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (5.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.2ms | ActiveRecord: 0.0ms)  (0.4ms) 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  (9.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.7ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} 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" = $1 [["account_id", 1001]] Completed 201 Created in 5ms (Views: 3.4ms | ActiveRecord: 1.1ms)  (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  (12.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.3ms) ROLLBACK  (0.2ms) 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", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$ktEwG2QTsCB/X20mkNO9JekgcxYiZPi6Dyb1IItl3rHRet3RE46qq"], ["updated_at", Sat, 13 Jul 2013 17:20:14 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", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["name", "Test Account"], ["owner_id", 13], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zFRWbUdzyn2qmZzzt3EA' 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"], ["subdomain", "test"], ["owner_id", 13], ["created_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["id", 11], ["authentication_token", "zFRWbUdzyn2qmZzzt3EA"]]  (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", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:14 UTC +00:00], ["user_id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 11]]  (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  (12.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (519.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.8ms) ROLLBACK  (0.5ms) 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) 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.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.6ms) ROLLBACK  (0.1ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (5.9ms) ROLLBACK  (0.2ms) BEGIN ActiveRecord::SchemaMigration Load (0.6ms) 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_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.2ms) 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  (2.3ms) ROLLBACK  (0.4ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) 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", Sat, 13 Jul 2013 17:20:23 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$9.BAc5573i4T3c0iudQs/.7rZ8pNEHfDygpzvWVMxb6nBDZDQLKFi"], ["updated_at", Sat, 13 Jul 2013 17:20:23 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (2.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:20:23 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 14], ["subdomain", "test11"], ["updated_at", Sat, 13 Jul 2013 17:20:23 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'aoTz3LJNr3kQfoQicsmG' 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 #11"], ["subdomain", "test11"], ["owner_id", 14], ["created_at", Sat, 13 Jul 2013 17:20:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:23 UTC +00:00], ["id", 12], ["authentication_token", "aoTz3LJNr3kQfoQicsmG"]]  (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", 12], ["created_at", Sat, 13 Jul 2013 17:20:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:23 UTC +00:00], ["user_id", 14]]  (2.7ms) RELEASE SAVEPOINT active_record_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", Sat, 13 Jul 2013 17:20:23 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$lm.IZII1k1W8vSF6b49hfuHUU/3W1tixq3z4/jfxowK6stUTBbmtm"], ["updated_at", Sat, 13 Jul 2013 17:20:23 UTC +00:00]]  (0.3ms) 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", Sat, 13 Jul 2013 17:20:23 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$FFd7DrbFoVWTCwTp.6C2Fuh3il7IAoS96G08YBTbVm.IatseeoVTu"], ["updated_at", Sat, 13 Jul 2013 17:20:23 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" = 'www' 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", Sat, 13 Jul 2013 17:20:23 UTC +00:00], ["name", "Root"], ["owner_id", 16], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 17:20:23 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LEAc32ryLozuzEtCDsp2' 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", "Root"], ["subdomain", "www"], ["owner_id", 16], ["created_at", Sat, 13 Jul 2013 17:20:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:23 UTC +00:00], ["id", 13], ["authentication_token", "LEAc32ryLozuzEtCDsp2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (10.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.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (13.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (6.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)   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (9.0ms) 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)  (1.3ms) 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"  (2.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')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (17.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (16.3ms) ROLLBACK  (0.2ms) BEGIN  (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  (12.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (18.4ms) ROLLBACK  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON 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 (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", 101]] Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 1.6ms)  (0.4ms) 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  (15.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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.9ms) ROLLBACK  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (0.7ms) 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 6ms (Views: 4.6ms | ActiveRecord: 1.4ms)  (0.4ms) 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.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (5.9ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.3ms) 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 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (3.0ms) 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  (10.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.3ms) ROLLBACK  (0.2ms) 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.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:20:24 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$kVMt6V0voClPVplYo7dr8.xl5JjUl822/nOxnJmrDWx2WI0d3uGly"], ["updated_at", Sat, 13 Jul 2013 17:20:24 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", Sat, 13 Jul 2013 17:20:24 UTC +00:00], ["name", "Testy"], ["owner_id", 17], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 17:20:24 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ac9Lx8WoaqDz7oDoRzfz' 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", Sat, 13 Jul 2013 17:20:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:24 UTC +00:00], ["id", 14], ["authentication_token", "ac9Lx8WoaqDz7oDoRzfz"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 12:20:24 -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.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 15ms (Views: 0.4ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.4ms) 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  (9.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.5ms) ROLLBACK  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 12:20:24 -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", Sat, 13 Jul 2013 17:20:24 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$FmRHDWfUCxjsWE0M15B9He72lRJY1Vj4Hmdqt99pdThINsaXs88o2"], ["updated_at", Sat, 13 Jul 2013 17:20:24 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", Sat, 13 Jul 2013 17:20:24 UTC +00:00], ["name", "Testy"], ["owner_id", 18], ["subdomain", "test"], ["updated_at", Sat, 13 Jul 2013 17:20:24 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YE2tvV4tN9wpqpmdhj7s' 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", 18], ["created_at", Sat, 13 Jul 2013 17:20:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:24 UTC +00:00], ["id", 15], ["authentication_token", "YE2tvV4tN9wpqpmdhj7s"]]  (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", 15], ["created_at", Sat, 13 Jul 2013 17:20:24 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:20:24 UTC +00:00], ["user_id", 18]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 15) LIMIT 1  (0.2ms) CREATE SCHEMA "test" 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.3ms) 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.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)  (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_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.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') Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 18 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", 15]] Completed 201 Created in 76ms (Views: 6.7ms | ActiveRecord: 37.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.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  (9.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.8ms) ROLLBACK  (3.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  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (30.1ms) 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  (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  (12.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (7.2ms) ROLLBACK  (0.8ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (12.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 17:23:29 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$EI./IvE58w01Y62Me7YwQOgEJYA56o2tBnhv.oxv2cXqJPv9t48dK"], ["updated_at", Sat, 13 Jul 2013 17:23:29 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", Sat, 13 Jul 2013 17:23:29 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 17:23:29 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xhBsYyf3yPZEMx9vjLeL' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 17:23:29 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:23:29 UTC +00:00], ["id", 1], ["authentication_token", "xhBsYyf3yPZEMx9vjLeL"]]  (0.2ms) 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", Sat, 13 Jul 2013 17:23:29 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:23:29 UTC +00:00], ["user_id", 1]]  (0.2ms) 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", Sat, 13 Jul 2013 17:23:29 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$xRergsbRnYac1Zx0aVsX8uv.ATb4skI4HxKiR3wcd7DI2f/460Xgi"], ["updated_at", Sat, 13 Jul 2013 17:23:29 UTC +00:00]]  (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", Sat, 13 Jul 2013 17:23:29 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$bStLyOD098OYgUIu.d1ni.9kWnZKim0w2J7VhTmEdU9q2GeRdhniu"], ["updated_at", Sat, 13 Jul 2013 17:23:29 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (5.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' 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", Sat, 13 Jul 2013 17:23:29 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 17:23:29 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'e6zPfYPsDP9aqbepNZvd' 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" = 2 [["name", "Root"], ["subdomain", "www"], ["owner_id", 3], ["created_at", Sat, 13 Jul 2013 17:23:29 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 17:23:29 UTC +00:00], ["id", 2], ["authentication_token", "e6zPfYPsDP9aqbepNZvd"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www" SQL (0.3ms) 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.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.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)  (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_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)   (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.3ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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.9ms) ROLLBACK  (0.2ms) BEGIN ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) 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  (9.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (5.5ms) ROLLBACK  (0.7ms) 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  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (22.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.2ms) BEGIN ActiveRecord::SchemaMigration Load (3.0ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (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  (12.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.6ms) ROLLBACK  (1.0ms) BEGIN  (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  (11.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.0ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (10.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:02:47 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$b/tz2Epq69tLnCxUkzPREeFonti.jvTx5CoVCDAIXRcssF./C.SB2"], ["updated_at", Sat, 13 Jul 2013 18:02:47 UTC +00:00]]  (0.1ms) 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", Sat, 13 Jul 2013 18:02:47 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 18:02:47 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'd3aoPX9k3UHGxnkqDMwu' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 18:02:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:02:47 UTC +00:00], ["id", 1], ["authentication_token", "d3aoPX9k3UHGxnkqDMwu"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 SQL (11.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", Sat, 13 Jul 2013 18:02:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:02:47 UTC +00:00], ["user_id", 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", Sat, 13 Jul 2013 18:02:47 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$F56hRd85U8ExGQJ8HjlkZO.bfiMy2b2rZppbl9LXWgF1a9cu839tW"], ["updated_at", Sat, 13 Jul 2013 18:02:47 UTC +00:00]]  (0.3ms) 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", Sat, 13 Jul 2013 18:02:47 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$NY5bVhSrwGyXvjmXYD5f8.P.nENgzE4XhzmAsJjkvmkgfAP92WVb2"], ["updated_at", Sat, 13 Jul 2013 18:02:47 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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" = '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", Sat, 13 Jul 2013 18:02:47 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:02:47 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1GTpzL6xZvWxn99ZnwyB' 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", Sat, 13 Jul 2013 18:02:47 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:02:47 UTC +00:00], ["id", 2], ["authentication_token", "1GTpzL6xZvWxn99ZnwyB"]]  (2.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www" SQL (0.3ms) 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")  (4.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("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)   (2.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.0ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) 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  (9.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.5ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (17.9ms) 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 ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (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  (11.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.9ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) 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  (9.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (2.0ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (10.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:09:31 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$bE5sbeF.K5HcFtfAFZsrJeAIevW1s16N.3VOK8OGrgsL7mqVCcvF."], ["updated_at", Sat, 13 Jul 2013 18:09:31 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.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:09:31 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 18:09:31 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wSb85oMpQyyds4rYqGpn' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 18:09:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:09:31 UTC +00:00], ["id", 1], ["authentication_token", "wSb85oMpQyyds4rYqGpn"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", Sat, 13 Jul 2013 18:09:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:09:31 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:09:31 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$ALTCfaDLOe7wXGW.0wq/oeZV0E00aDuXrDQMyCGf8Ipg5m8P6lykO"], ["updated_at", Sat, 13 Jul 2013 18:09:31 UTC +00:00]]  (0.2ms) 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", Sat, 13 Jul 2013 18:09:31 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$TwS.e.8vJNCRBjXpPReHKuHt3Xro88QixCsJ3cmycZFrARMjl1sA2"], ["updated_at", Sat, 13 Jul 2013 18:09:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:09:31 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:09:31 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nwYuRTzqgysmLcmtJd3a' 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", Sat, 13 Jul 2013 18:09:31 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:09:31 UTC +00:00], ["id", 2], ["authentication_token", "nwYuRTzqgysmLcmtJd3a"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www" SQL (0.3ms) 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)  (1.3ms) 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)   (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.2ms) 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)  (1.0ms) 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.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.4ms) 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.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.9ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) 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.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.4ms) 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  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.9ms) 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.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.4ms) 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", Sat, 13 Jul 2013 18:11:07 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$xUieZ7LLnTKZHfZcXy15EuZRawJsrmVUdGnjuqxn149Ks0myKsRGW"], ["updated_at", Sat, 13 Jul 2013 18:11:07 UTC +00:00]]  (0.1ms) 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.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:11:07 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 18:11:07 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8Bizr5zv1zjNzz39eBrm' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 18:11:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:11:07 UTC +00:00], ["id", 1], ["authentication_token", "8Bizr5zv1zjNzz39eBrm"]]  (0.2ms) 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", Sat, 13 Jul 2013 18:11:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:11:07 UTC +00:00], ["user_id", 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", Sat, 13 Jul 2013 18:11:07 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$7NMuqSj1wExip0ni6gOk4e0OpG.Y5XDRAGobukmLiBgf7ZKlkfDhy"], ["updated_at", Sat, 13 Jul 2013 18:11:07 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", Sat, 13 Jul 2013 18:11:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$Y6B2z9WBnX8Pb5S7UdDD2eenUkGZl1i1eHaMjh2zgrKJQKhR3h5Ru"], ["updated_at", Sat, 13 Jul 2013 18:11:07 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", Sat, 13 Jul 2013 18:11:07 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:11:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gP13aRAcVv7252ag6Cr9' 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", Sat, 13 Jul 2013 18:11:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:11:07 UTC +00:00], ["id", 2], ["authentication_token", "gP13aRAcVv7252ag6Cr9"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www" SQL (0.3ms) 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.5ms) 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.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.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (5.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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.9ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) 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  (9.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.6ms) ROLLBACK  (0.5ms) BEGIN  (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", Sat, 13 Jul 2013 18:11:11 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$fXiGTZU1SguoIcLxDcXXM.tat7MmqtIyudI4PmmFPqT1MXbZWSaUW"], ["updated_at", Sat, 13 Jul 2013 18:11:11 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" = 'www' 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", Sat, 13 Jul 2013 18:11:11 UTC +00:00], ["name", "Root"], ["owner_id", 4], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:11:11 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yVZsV8P7ZtqfdyroDz34' 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", "Root"], ["subdomain", "www"], ["owner_id", 4], ["created_at", Sat, 13 Jul 2013 18:11:11 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:11:11 UTC +00:00], ["id", 3], ["authentication_token", "yVZsV8P7ZtqfdyroDz34"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www" 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.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")  (6.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.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) 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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (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  (9.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.4ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.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  (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  (10.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.0ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (8.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:12:36 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$aeGz1wvmm6fKR97P5iUXMOG3keWwNAyIhDeDfdmzrIFkTr/h0vaXS"], ["updated_at", Sat, 13 Jul 2013 18:12:36 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", Sat, 13 Jul 2013 18:12:36 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 18:12:36 UTC +00:00]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'g4ujm3bJCzKkM3LvqE7H' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 18:12:36 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:12:36 UTC +00:00], ["id", 1], ["authentication_token", "g4ujm3bJCzKkM3LvqE7H"]]  (0.2ms) 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", Sat, 13 Jul 2013 18:12:36 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:12:36 UTC +00:00], ["user_id", 1]]  (0.2ms) 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", Sat, 13 Jul 2013 18:12:36 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$elp0IQtnWdCpoYvXnjXZ4.97NBb.4x9CaC.Gl/j9rL26JvMFwD.nW"], ["updated_at", Sat, 13 Jul 2013 18:12:36 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", Sat, 13 Jul 2013 18:12:36 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$N.v7TxGB4J25KlZvf/8ayeQ6RF94Ce.sv3aRjXSUUhTT0gKqF296C"], ["updated_at", Sat, 13 Jul 2013 18:12: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" = '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", Sat, 13 Jul 2013 18:12:36 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:12:36 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mf5nE8s9kbyxTSngNGSf' 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", Sat, 13 Jul 2013 18:12:36 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:12:36 UTC +00:00], ["id", 2], ["authentication_token", "mf5nE8s9kbyxTSngNGSf"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www" SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (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)   (1.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")  (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)  (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_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)   (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (5.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (5.8ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.4ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) 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  (9.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.6ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (17.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  (0.1ms) BEGIN  (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  (10.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (7.3ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (8.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:13:59 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$Gl/kY96V5IKH/ne6WiAXJeVca49XzhqRhCcwUxrShJZ8Kk2h2o6Om"], ["updated_at", Sat, 13 Jul 2013 18:13:59 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", Sat, 13 Jul 2013 18:13:59 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 18:13:59 UTC +00:00]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tqxB9zXREpS6i1zkq8oy' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 18:13:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:13:59 UTC +00:00], ["id", 1], ["authentication_token", "tqxB9zXREpS6i1zkq8oy"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 18:13:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:13:59 UTC +00:00], ["user_id", 1]]  (1.7ms) RELEASE SAVEPOINT active_record_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", Sat, 13 Jul 2013 18:13:59 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$a6CVej7Df75AKVBLRTITGuyn3iviTc0wygZBw44RQKLYiovtT.7Ye"], ["updated_at", Sat, 13 Jul 2013 18:13:59 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", Sat, 13 Jul 2013 18:13:59 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$E4CT6W4PinqM1reNR6KBl.AbUL1mP4pic0blSmmqxO2IWCcKkRM6G"], ["updated_at", Sat, 13 Jul 2013 18:13: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", Sat, 13 Jul 2013 18:13:59 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:13:59 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'miripSHyq7oMPD2wtkxP' 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", Sat, 13 Jul 2013 18:13:59 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:13:59 UTC +00:00], ["id", 2], ["authentication_token", "miripSHyq7oMPD2wtkxP"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www" SQL (0.3ms) 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.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.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)  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.4ms) 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.9ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.7ms) 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  (12.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (7.3ms) ROLLBACK  (0.2ms) BEGIN ActiveRecord::SchemaMigration Load (1.0ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (18.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.4ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) 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  (9.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.6ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.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.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (11.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:15:03 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$QgrnLyyO2K1IlFcneUBew.f1.Tq4y0sB95gRJgY8iGHV4o/J5mi8."], ["updated_at", Sat, 13 Jul 2013 18:15:03 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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.6ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:15:03 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 18:15:03 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fAvkQXRbPqitqja28Nbh' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (1.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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 18:15:03 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:15:03 UTC +00:00], ["id", 1], ["authentication_token", "fAvkQXRbPqitqja28Nbh"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Sat, 13 Jul 2013 18:15:03 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:15:03 UTC +00:00], ["user_id", 1]]  (0.2ms) 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", Sat, 13 Jul 2013 18:15:03 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$rQASzhe2wLC7o4eaLV9SuOEQsXU1NEs45WGd2FsdEKpY.t/t7oebG"], ["updated_at", Sat, 13 Jul 2013 18:15:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:15:03 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$CSVZuTR4C0tFUa5jucrWiu4aTvO7iKjduVjiIPvaPaL9uPFsE/1TW"], ["updated_at", Sat, 13 Jul 2013 18:15: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" = '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", Sat, 13 Jul 2013 18:15:03 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:15:03 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2cScJgGfMxyCsxAF1Xzw' 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", Sat, 13 Jul 2013 18:15:03 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:15:03 UTC +00:00], ["id", 2], ["authentication_token", "2cScJgGfMxyCsxAF1Xzw"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www" SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (14.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.7ms) 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.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (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)  (2.2ms) 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.8ms) 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')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (5.8ms) ROLLBACK  (0.2ms) BEGIN ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (3.4ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) 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  (10.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.1ms) ROLLBACK  (0.5ms) BEGIN  (0.4ms) 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  (9.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.3ms) ROLLBACK  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (2.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:15:08 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$DUaTnUA02cZ/UhfFUY9DPe25d9h97fMKKtN8GwWPErwO7OQH6Mveq"], ["updated_at", Sat, 13 Jul 2013 18:15:08 UTC +00:00]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (2.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:15:08 UTC +00:00], ["name", "Root"], ["owner_id", 4], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:15:08 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'NMwn7sMQzDsWRYJPFm9e' 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" = 3 [["name", "Root"], ["subdomain", "www"], ["owner_id", 4], ["created_at", Sat, 13 Jul 2013 18:15:08 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:15:08 UTC +00:00], ["id", 3], ["authentication_token", "NMwn7sMQzDsWRYJPFm9e"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www" 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.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.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) 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)  (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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (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  (10.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.9ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.1ms) 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 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (4.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (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  (11.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.4ms) ROLLBACK  (1.6ms) BEGIN  (0.4ms) 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  (11.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.1ms) ROLLBACK  (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 (8.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:16:33 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$TMiNOqk6izCvQyQSBTQh9uk/iVqfIW6knaUDxHalRPBJu2LchVwbq"], ["updated_at", Sat, 13 Jul 2013 18:16:33 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.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:16:33 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 18:16:33 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vuFkQ8qWE7tbXTRpQpXN' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 18:16:33 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:16:33 UTC +00:00], ["id", 1], ["authentication_token", "vuFkQ8qWE7tbXTRpQpXN"]]  (0.2ms) 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", Sat, 13 Jul 2013 18:16:33 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:16:33 UTC +00:00], ["user_id", 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", Sat, 13 Jul 2013 18:16:33 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$RHqvocxp8c7IhVViKGHqBe4vBae3.QOpzUPvogSv20ek1tr1pk8Vm"], ["updated_at", Sat, 13 Jul 2013 18:16:33 UTC +00:00]]  (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", Sat, 13 Jul 2013 18:16:33 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$qXzAFeaYkDzT.hWWHHWwYeOBCtyk0m7ydOeKHYgzYlpCK6BnHXDRC"], ["updated_at", Sat, 13 Jul 2013 18:16:33 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.5ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:16:33 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:16:33 UTC +00:00]] Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XxSF5ehPqJsXRx7myoqr' 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", "Root"], ["subdomain", "www"], ["owner_id", 3], ["created_at", Sat, 13 Jul 2013 18:16:33 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:16:33 UTC +00:00], ["id", 2], ["authentication_token", "XxSF5ehPqJsXRx7myoqr"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www" SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (8.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")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (4.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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.2ms) 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.4ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.9ms) 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", Sat, 13 Jul 2013 18:16:33 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$XCkrenMOioc5iomZP93/Dux6/4QUVl3R2/I4EUd6rMjrX5PPIi2mm"], ["updated_at", Sat, 13 Jul 2013 18:16:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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" = 'www' 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", Sat, 13 Jul 2013 18:16:33 UTC +00:00], ["name", "Root"], ["owner_id", 4], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:16:33 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Zqvss7dprzywiKdTyRtj' 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", "Root"], ["subdomain", "www"], ["owner_id", 4], ["created_at", Sat, 13 Jul 2013 18:16:33 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:16:33 UTC +00:00], ["id", 3], ["authentication_token", "Zqvss7dprzywiKdTyRtj"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www" SQL (0.1ms) 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.3ms) 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)  (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.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)   (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) 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  (8.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (7.0ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.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.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (9.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:19:07 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$DRX6CGFG.bqfn7n5LihxRe5vQ.qI31c13G0Ja8grk8F0T9G2zOQZ2"], ["updated_at", Sat, 13 Jul 2013 18:19:07 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.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:19:07 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 18:19:07 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ysTQJsRaMtRXxPRWaxnp' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 18:19:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:19:07 UTC +00:00], ["id", 1], ["authentication_token", "ysTQJsRaMtRXxPRWaxnp"]]  (0.2ms) 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", Sat, 13 Jul 2013 18:19:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:19:07 UTC +00:00], ["user_id", 1]]  (0.2ms) 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", Sat, 13 Jul 2013 18:19:07 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$ni/772GSOZHdrHQjrVPoR.S2gQT6iIIFo1U0zVLHG6zcC8Yj1cUQ2"], ["updated_at", Sat, 13 Jul 2013 18:19:07 UTC +00:00]]  (0.2ms) 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", Sat, 13 Jul 2013 18:19:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$E6yfBAk7dAtlWZcFtpz0D.w6k/oF0VqPH7g2d4lVW71qsBho1BI02"], ["updated_at", Sat, 13 Jul 2013 18:19:07 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", Sat, 13 Jul 2013 18:19:07 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:19:07 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zpzpTJ9yAD3CbP2CfBPQ' 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", Sat, 13 Jul 2013 18:19:07 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:19:07 UTC +00:00], ["id", 2], ["authentication_token", "zpzpTJ9yAD3CbP2CfBPQ"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www" SQL (0.3ms) 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)  (1.4ms) 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)   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) 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)  (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.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) 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  (8.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.5ms) ROLLBACK  (0.2ms) BEGIN ActiveRecord::SchemaMigration Load (2.7ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.4ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) 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  (11.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.6ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.9ms) 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.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) SAVEPOINT active_record_1 SQL (11.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:21:48 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$VPqe56ahLeycA6zHun5anOrNw4Rv5wYFbKF6ZPpC85l2tI4RMnBeC"], ["updated_at", Sat, 13 Jul 2013 18:21:48 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", Sat, 13 Jul 2013 18:21:48 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 18:21:48 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ngeC8JG3MHyJjDynFpk5' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 18:21:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:21:48 UTC +00:00], ["id", 1], ["authentication_token", "ngeC8JG3MHyJjDynFpk5"]]  (0.4ms) 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", Sat, 13 Jul 2013 18:21:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:21:48 UTC +00:00], ["user_id", 1]]  (0.2ms) 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", Sat, 13 Jul 2013 18:21:48 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$R9A5hlcwQrGtORLZnDC2yOppLUaswK/HWMgEx8WkWw/.yxSaHhiIC"], ["updated_at", Sat, 13 Jul 2013 18:21:48 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", Sat, 13 Jul 2013 18:21:48 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$Mcz4rr8o26b9tuk7q7msSOG.0O6Y53U12jFb7vsi/KzcRZ0tZ9lF."], ["updated_at", Sat, 13 Jul 2013 18:21:48 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.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:21:48 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:21:48 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pRsUfymQqMMpz4gzsYbJ' 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", Sat, 13 Jul 2013 18:21:48 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:21:48 UTC +00:00], ["id", 2], ["authentication_token", "pRsUfymQqMMpz4gzsYbJ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www" SQL (0.5ms) 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.0ms) 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.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)   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (6.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (14.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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (15.1ms) ROLLBACK  (0.2ms) BEGIN ActiveRecord::SchemaMigration Load (1.5ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (7.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  (11.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.3ms) ROLLBACK  (0.5ms) BEGIN  (0.4ms) 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  (10.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.2ms) ROLLBACK  (0.2ms) BEGIN  (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  (17.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.4ms) ROLLBACK  (0.7ms) 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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.2ms) BEGIN ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (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  (13.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.9ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) 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  (11.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.7ms) ROLLBACK  (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 (8.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:23:16 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$a8FQyJw90ZKQsZd0IPOfcuTubMuR6NJWJa8P5xODjnw8L7J4r2IdS"], ["updated_at", Sat, 13 Jul 2013 18:23:16 UTC +00:00]]  (0.1ms) 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", Sat, 13 Jul 2013 18:23:16 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 18:23:16 UTC +00:00]] Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5hTruxRpT5qp25zFcykz' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 18:23:16 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:23:16 UTC +00:00], ["id", 1], ["authentication_token", "5hTruxRpT5qp25zFcykz"]]  (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", Sat, 13 Jul 2013 18:23:16 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:23:16 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_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", Sat, 13 Jul 2013 18:23:16 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$WBr5IS3aRXKaJ0Gew/77JOHH8Jr0orWgeSqKwT42hd5q.AllzDQzi"], ["updated_at", Sat, 13 Jul 2013 18:23:16 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", Sat, 13 Jul 2013 18:23:16 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$.8cSluCjnqDzyLCzdJ/A9.UWB2ht6jOw9GedTP1MHnTEEcLzRqqAG"], ["updated_at", Sat, 13 Jul 2013 18:23:16 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Sat, 13 Jul 2013 18:23:16 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:23:16 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Ab6c1q4ptGCJkyN7AvCd' 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", "Root"], ["subdomain", "www"], ["owner_id", 3], ["created_at", Sat, 13 Jul 2013 18:23:16 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:23:16 UTC +00:00], ["id", 2], ["authentication_token", "Ab6c1q4ptGCJkyN7AvCd"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www" SQL (0.3ms) 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.8ms) 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.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)   (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_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.9ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (1.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  (9.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.3ms) ROLLBACK  (0.2ms) BEGIN  (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  (10.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.5ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.1ms) 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  (1.1ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (9.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:24:56 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$mIiBwM7aK9eIntPMlquVXOKDtDXhkoUBU3wKot88HC5Bl.2gweluq"], ["updated_at", Sat, 13 Jul 2013 18:24:56 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 (5.0ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:24:57 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 18:24:57 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FKrzZwkpxeKNRZN2yv4x' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (4.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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 18:24:57 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:24:57 UTC +00:00], ["id", 1], ["authentication_token", "FKrzZwkpxeKNRZN2yv4x"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 1], ["created_at", Sat, 13 Jul 2013 18:24:57 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:24:57 UTC +00:00], ["user_id", 1]]  (0.2ms) 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", Sat, 13 Jul 2013 18:24:57 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$VEuFj7u0C5rp50k0ML3eS.H.NKylgPIilwQqc1TZWj6bNpEdlOODW"], ["updated_at", Sat, 13 Jul 2013 18:24:57 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", Sat, 13 Jul 2013 18:24:57 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$vANCv86Qb9rzwxgcIWD7iulT/kHoSBwOIKraT00srAZa3IPsPhwqS"], ["updated_at", Sat, 13 Jul 2013 18:24:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Sat, 13 Jul 2013 18:24:57 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:24:57 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pXBUAr3zZ8pDN8avyiv3' 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" = 2 [["name", "Root"], ["subdomain", "www"], ["owner_id", 3], ["created_at", Sat, 13 Jul 2013 18:24:57 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:24:57 UTC +00:00], ["id", 2], ["authentication_token", "pXBUAr3zZ8pDN8avyiv3"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www" SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (9.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.8ms) 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.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)   (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_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.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (7.7ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) 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  (11.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.1ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.2ms) ROLLBACK  (0.7ms) 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  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (25.7ms) 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  (5.8ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (11.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:30:42 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$eGHIgPHwkbaEhpB2E5sQkOVvkTz6mJHb9BDbD5.N8L5dHYtTVDswu"], ["updated_at", Sat, 13 Jul 2013 18:30:42 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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" = '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", Sat, 13 Jul 2013 18:30:42 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 18:30:42 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SQQxHpjpaXe1Shg2HWms' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 18:30:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:30:42 UTC +00:00], ["id", 1], ["authentication_token", "SQQxHpjpaXe1Shg2HWms"]]  (0.2ms) 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", Sat, 13 Jul 2013 18:30:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:30:42 UTC +00:00], ["user_id", 1]]  (0.4ms) 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", Sat, 13 Jul 2013 18:30:42 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$oFbt.MLdOvlHoKRU5K56AeIDwcDveV3oI.sn6nSKOD4q/FcmyeY7i"], ["updated_at", Sat, 13 Jul 2013 18:30:42 UTC +00:00]]  (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", Sat, 13 Jul 2013 18:30:42 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$DTS3Ki0f0/KTGWs2dmBCj.soa8riu6GBPYFHav7vK2bQ1hj6BKjo2"], ["updated_at", Sat, 13 Jul 2013 18:30:42 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.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:30:42 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:30:42 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VcTLpwNxRmyykxJ5RyLV' 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", Sat, 13 Jul 2013 18:30:42 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:30:42 UTC +00:00], ["id", 2], ["authentication_token", "VcTLpwNxRmyykxJ5RyLV"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www" SQL (0.3ms) 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.2ms) 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")  (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)   (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_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.9ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (2.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  (10.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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 ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) 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  (12.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.0ms) ROLLBACK  (0.5ms) BEGIN  (0.4ms) 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  (10.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.6ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.8ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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  (21.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.0ms) ROLLBACK  (0.8ms) BEGIN  (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  (11.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (9.2ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.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.2ms) BEGIN  (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  (9.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.8ms) ROLLBACK  (3.4ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (9.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:31:23 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$ft/m0UddqOKi6QtW3e61N.rtyrg6PGUCH8m017e00p/HCjWgIIEwm"], ["updated_at", Sat, 13 Jul 2013 18:31:23 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", Sat, 13 Jul 2013 18:31:23 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 18:31:23 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nwFkHpiSEazyWDj5MWpV' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 18:31:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:31:23 UTC +00:00], ["id", 1], ["authentication_token", "nwFkHpiSEazyWDj5MWpV"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", Sat, 13 Jul 2013 18:31:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:31:23 UTC +00:00], ["user_id", 1]]  (0.2ms) 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", Sat, 13 Jul 2013 18:31:23 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$9uRlwZhQiq5jsS28Ah7Lu.02tha4oLJQXodUhaKLKfeodiPsUlkYO"], ["updated_at", Sat, 13 Jul 2013 18:31:23 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", Sat, 13 Jul 2013 18:31:23 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$HyxAws/thqa.RgDgCZfXUeOACmwIiGeGvJbjWqAYFLAvqkd/PaMOK"], ["updated_at", Sat, 13 Jul 2013 18:31:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:31:23 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:31:23 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'NWwZ5MZpJyiXiTAPggyU' 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", Sat, 13 Jul 2013 18:31:23 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:31:23 UTC +00:00], ["id", 2], ["authentication_token", "NWwZ5MZpJyiXiTAPggyU"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www" SQL (0.3ms) 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.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (2.0ms) 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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.8ms) 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.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (1.4ms) 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  (10.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.6ms) ROLLBACK  (0.1ms) BEGIN ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (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  (19.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.1ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.9ms) ROLLBACK  (0.6ms) BEGIN  (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  (14.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (7.7ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.3ms) 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 ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"  (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  (9.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.3ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) 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  (10.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.3ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) SAVEPOINT active_record_1 SQL (12.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:36:05 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$efqkLA6mSAqGSkcoTQmOUOn2K7ksteLFh6pf4.78OW2F36LS9AfYq"], ["updated_at", Sat, 13 Jul 2013 18:36:05 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 (2.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:36:05 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 18:36:05 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JMMkXMKpWVU2Yq59rjKQ' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 18:36:05 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:36:05 UTC +00:00], ["id", 1], ["authentication_token", "JMMkXMKpWVU2Yq59rjKQ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", Sat, 13 Jul 2013 18:36:05 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:36:05 UTC +00:00], ["user_id", 1]]  (0.2ms) 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", Sat, 13 Jul 2013 18:36:05 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$hUituXjmEfxG2a1Z3b7DFuOg9th1M/nnIeZxVDdQXok3GI6n3ZaJa"], ["updated_at", Sat, 13 Jul 2013 18:36:05 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", Sat, 13 Jul 2013 18:36:05 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$9a5BovX1XhGz8bq./vHSEe5TSd0lGHLH0ZZi6ccZtsLXCpUzOsHsq"], ["updated_at", Sat, 13 Jul 2013 18:36:05 UTC +00:00]]  (0.3ms) 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", Sat, 13 Jul 2013 18:36:05 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:36:05 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YybqV2ZV2kQ8RtdvAx3f' 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", Sat, 13 Jul 2013 18:36:05 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:36:05 UTC +00:00], ["id", 2], ["authentication_token", "YybqV2ZV2kQ8RtdvAx3f"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www" SQL (0.4ms) 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.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (12.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)   (7.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (7.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (10.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.3ms) SELECT version FROM "schema_migrations"  (0.5ms) 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')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (13.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (9.8ms) ROLLBACK  (0.1ms) BEGIN  (0.9ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (9.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.4ms) ROLLBACK  (0.1ms) BEGIN  (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  (44.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (5.4ms) ROLLBACK  (0.7ms) 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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (19.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (10.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:37:09 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$CiCA.LF05gzBM20zqjPiju6yyI6j/s3.GvYIgtmheBXaNsPTFRZGq"], ["updated_at", Sat, 13 Jul 2013 18:37:09 UTC +00:00]]  (0.3ms) 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 (2.1ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:37:09 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 18:37:09 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ww3se2Cg3kUsgBnSD1JN' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 18:37:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:37:09 UTC +00:00], ["id", 1], ["authentication_token", "ww3se2Cg3kUsgBnSD1JN"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4) RETURNING "id" [["account_id", 1], ["created_at", Sat, 13 Jul 2013 18:37:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:37:09 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_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", Sat, 13 Jul 2013 18:37:09 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$8b2RTbBd3iohux10fGd6eeDIaGbpmUx3eXHck33xzM4nr.FoAwIJm"], ["updated_at", Sat, 13 Jul 2013 18:37:09 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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", Sat, 13 Jul 2013 18:37:09 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$OMDEu/w7DwOgUw//Jkcwg.L/aMKprFLJwzazhEdZ/CpOIasHpI28y"], ["updated_at", Sat, 13 Jul 2013 18:37:09 UTC +00:00]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Sat, 13 Jul 2013 18:37:09 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:37:09 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dmjhpwuM6z4sZVHTJEyJ' 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", Sat, 13 Jul 2013 18:37:09 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:37:09 UTC +00:00], ["id", 2], ["authentication_token", "dmjhpwuM6z4sZVHTJEyJ"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www" SQL (0.3ms) 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)  (1.3ms) 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.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)   (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_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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (4.0ms) 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  (15.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (6.6ms) ROLLBACK  (0.1ms) BEGIN ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (2.7ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.9ms) 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.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (5.7ms) ROLLBACK  (0.2ms) BEGIN  (1.9ms) 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  (10.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.4ms) ROLLBACK  (0.2ms) BEGIN  (2.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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  (16.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (5.4ms) ROLLBACK  (0.3ms) BEGIN  (1.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  (12.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.6ms) ROLLBACK  (0.7ms) 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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (17.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  (1.7ms) BEGIN  (0.9ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (8.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:38:37 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$2eS9UANZJBIZ6ukcsl4qS.jUxuCrv5tkbD8mDg.7FursmhCYEufri"], ["updated_at", Sat, 13 Jul 2013 18:38:37 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", Sat, 13 Jul 2013 18:38:37 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 18:38:37 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'bh3ZTqQeBQzMytPmehqr' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 18:38:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:38:37 UTC +00:00], ["id", 1], ["authentication_token", "bh3ZTqQeBQzMytPmehqr"]]  (0.2ms) 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", Sat, 13 Jul 2013 18:38:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:38:37 UTC +00:00], ["user_id", 1]]  (0.2ms) 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", Sat, 13 Jul 2013 18:38:37 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$dwEpQFZV6LgkKVmOYq5g0uf.VELXLv4YyDDsnVJfl46Pr4fFUhZhy"], ["updated_at", Sat, 13 Jul 2013 18:38:37 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", Sat, 13 Jul 2013 18:38:37 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$x7Yq0ms2AZ9O/snQEuMsKeIRueuOQHs6wgFQhlqBI6c7aJpelt5rO"], ["updated_at", Sat, 13 Jul 2013 18:38:37 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.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:38:37 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:38:37 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Cx1NPXav1qY5St5xzE1n' 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", Sat, 13 Jul 2013 18:38:37 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:38:37 UTC +00:00], ["id", 2], ["authentication_token", "Cx1NPXav1qY5St5xzE1n"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www" SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (11.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.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")  (4.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" USING btree ("account_id")  (1.0ms) 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.9ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.3ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) 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  (10.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (5.1ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (11.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.1ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (12.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.4ms) ROLLBACK  (0.2ms) BEGIN  (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  (12.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.9ms) ROLLBACK  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.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.2ms) BEGIN  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (9.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:39:49 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$HuwKm6B8JMcrFm5kK1yTjePbidMdZ3PIdSJQ2iSIRnpus1CCsoBLq"], ["updated_at", Sat, 13 Jul 2013 18:39:49 UTC +00:00]]  (0.1ms) 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.7ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:39:50 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 18:39:50 UTC +00:00]] Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rTcaHzcs37JyfztDpZZy' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 18:39:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:39:50 UTC +00:00], ["id", 1], ["authentication_token", "rTcaHzcs37JyfztDpZZy"]]  (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", Sat, 13 Jul 2013 18:39:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:39:50 UTC +00:00], ["user_id", 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", Sat, 13 Jul 2013 18:39:50 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$LOU0Bwo1QVa8C2ngOhj8kOlQ2OATVKqHjCS8BuuqBYPy4K.I1EFPe"], ["updated_at", Sat, 13 Jul 2013 18:39:50 UTC +00:00]]  (0.2ms) 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", Sat, 13 Jul 2013 18:39:50 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$TcYpou7VSSdc7nvesR5a/u/.muWJpakffpZYGT.n13lfJNAenIy1G"], ["updated_at", Sat, 13 Jul 2013 18:39:50 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", Sat, 13 Jul 2013 18:39:50 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:39:50 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JX91ych6GaZeBxUaN6uq' 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", Sat, 13 Jul 2013 18:39:50 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:39:50 UTC +00:00], ["id", 2], ["authentication_token", "JX91ych6GaZeBxUaN6uq"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www" SQL (0.3ms) 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)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (0.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)   (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_user_id" ON "cadenero_members" USING btree ("user_id")  (6.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)   (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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (8.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (7.5ms) 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.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  (12.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.7ms) ROLLBACK  (0.4ms) BEGIN  (0.4ms) 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  (9.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  (2.1ms) ROLLBACK  (0.7ms) BEGIN  (5.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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  (11.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  (7.9ms) ROLLBACK  (0.1ms) BEGIN  (1.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  (12.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (19.6ms) ROLLBACK  (0.7ms) 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  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.5ms) 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.2ms) BEGIN  (3.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (12.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:43:27 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$MhvKzuf9no5XsSo7cll8Buh7ZvZZyOhZMSv4FrAwsvLQXWAddMyca"], ["updated_at", Sat, 13 Jul 2013 18:43:27 UTC +00:00]]  (0.1ms) 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.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 13 Jul 2013 18:43:27 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sat, 13 Jul 2013 18:43:27 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Q5TUkG7sdiWXsrt6Wyag' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sat, 13 Jul 2013 18:43:27 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:43:27 UTC +00:00], ["id", 1], ["authentication_token", "Q5TUkG7sdiWXsrt6Wyag"]]  (0.2ms) 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", Sat, 13 Jul 2013 18:43:27 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:43:27 UTC +00:00], ["user_id", 1]]  (0.2ms) 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", Sat, 13 Jul 2013 18:43:27 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$pb/DWGHAhhTfJZnTiVqpmu9drcEt8eZNAv4.0D/KH9oK9BYKtOrea"], ["updated_at", Sat, 13 Jul 2013 18:43:27 UTC +00:00]]  (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", Sat, 13 Jul 2013 18:43:27 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$W/QJ49OEK8Q0bK2e9Z6neuaKISwWJMarJ5ftP14LxHFGjNG834K7C"], ["updated_at", Sat, 13 Jul 2013 18:43:27 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", Sat, 13 Jul 2013 18:43:27 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sat, 13 Jul 2013 18:43:27 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Ds18UxpjpmsdLBxWQenV' 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", Sat, 13 Jul 2013 18:43:27 UTC +00:00], ["updated_at", Sat, 13 Jul 2013 18:43:27 UTC +00:00], ["id", 2], ["authentication_token", "Ds18UxpjpmsdLBxWQenV"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www" SQL (0.3ms) 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.3ms) 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.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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.8ms) 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)   (9.6ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (20.3ms) 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  (6.5ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) 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  (8.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (18.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (4.3ms) ROLLBACK  (0.2ms) BEGIN  (0.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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) 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  (15.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.5ms) ROLLBACK  (2.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  (7.8ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (34.7ms) 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.9ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.3ms) SAVEPOINT active_record_1 SQL (24.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sun, 14 Jul 2013 02:35:52 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$XuHY2SWek9WYpfVwwwY4auZkO8PbIR.SMZOoJwKU4eNWBzfMY4HR6"], ["updated_at", Sun, 14 Jul 2013 02:35:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (8.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sun, 14 Jul 2013 02:35:52 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sun, 14 Jul 2013 02:35:52 UTC +00:00]] Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WNYcdp6xCGCPSFGkvrk2' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Sun, 14 Jul 2013 02:35:52 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:35:52 UTC +00:00], ["id", 1], ["authentication_token", "WNYcdp6xCGCPSFGkvrk2"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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", Sun, 14 Jul 2013 02:35:52 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:35:52 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sun, 14 Jul 2013 02:35:52 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$tigos/Cwd9xLKtTTygnRfuC23iwV9sHpHFnjd.6d2k2Y94Pv6TfHC"], ["updated_at", Sun, 14 Jul 2013 02:35:52 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_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", Sun, 14 Jul 2013 02:35:52 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$mHapjvQQ0.V3KCbWSUXvBuiMdfD9VMKKf1AdUZsn0xKhGZ2oCLcz2"], ["updated_at", Sun, 14 Jul 2013 02:35:52 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.4ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sun, 14 Jul 2013 02:35:52 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sun, 14 Jul 2013 02:35:52 UTC +00:00]] Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5yZ5dfHppB7GGyPSPiEW' 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" = 2 [["name", "Root"], ["subdomain", "www"], ["owner_id", 3], ["created_at", Sun, 14 Jul 2013 02:35:52 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:35:52 UTC +00:00], ["id", 2], ["authentication_token", "5yZ5dfHppB7GGyPSPiEW"]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (2.9ms) CREATE SCHEMA "www" SQL (0.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (36.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.8ms) 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")  (9.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.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (6.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.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"  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (20.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (9.6ms) ROLLBACK  (0.3ms) BEGIN  (0.4ms) 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.9ms) 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  (2.1ms) ROLLBACK  (0.2ms) BEGIN ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"  (1.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  (9.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (5.9ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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  (15.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.9ms) ROLLBACK  (0.5ms) BEGIN  (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  (10.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (7.3ms) ROLLBACK  (0.7ms) 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  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.9ms) 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  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (8.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sun, 14 Jul 2013 02:37:07 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$aSvYdsVtMFcEkWede6TjPOzqjUYMywB9UBVtvQj8SZR60hr8mvVNa"], ["updated_at", Sun, 14 Jul 2013 02:37:07 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.3ms) INSERT INTO "public"."cadenero_accounts" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sun, 14 Jul 2013 02:37:07 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sun, 14 Jul 2013 02:37:07 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Ys9oXknmp6z4PQSJz3Gq' 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", Sun, 14 Jul 2013 02:37:07 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:37:07 UTC +00:00], ["id", 1], ["authentication_token", "Ys9oXknmp6z4PQSJz3Gq"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) 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", Sun, 14 Jul 2013 02:37:07 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:37:07 UTC +00:00], ["user_id", 1]]  (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", Sun, 14 Jul 2013 02:37:07 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$pS3wqsXyHIWJrcM.Y9d8Iuo8E3IJos.GkiLmvuJveR3iIuQTFRaKG"], ["updated_at", Sun, 14 Jul 2013 02:37:07 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", Sun, 14 Jul 2013 02:37:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$jK3aETcigZakdf7ln1HCM.p/YytQUbM0wIH4NZeDE04VvA1XLnWVm"], ["updated_at", Sun, 14 Jul 2013 02:37:07 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Sun, 14 Jul 2013 02:37:07 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sun, 14 Jul 2013 02:37:07 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yqujxkeXq4kvXHnRa5zq' 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", Sun, 14 Jul 2013 02:37:07 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:37:07 UTC +00:00], ["id", 2], ["authentication_token", "yqujxkeXq4kvXHnRa5zq"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www" SQL (0.3ms) 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")  (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)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.7ms) 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  (10.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (6.6ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) 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;  (0.3ms) 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.0ms) ROLLBACK  (0.1ms) BEGIN ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations" ActiveRecord::SchemaMigration Load (1.8ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.4ms) 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  (10.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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  (2.8ms) ROLLBACK  (0.2ms) BEGIN  (1.1ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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  (10.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.1ms) ROLLBACK  (0.1ms) BEGIN  (0.4ms) 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.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.0ms) ROLLBACK Connecting to database specified by database.yml  (0.9ms) 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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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 (2.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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  (17.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.5ms) BEGIN Cadenero::V1::Account Exists (2.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (1.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  (46.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  (5.0ms) BEGIN Cadenero::V1::Account Exists (2.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.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  (15.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.3ms) BEGIN  (3.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 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", Sun, 14 Jul 2013 02:41:21 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$iBdB0HC68tw7qxwp/3GGrOA8k34EEKs34/kSI6LOu37vmc.s4gHEW"], ["updated_at", Sun, 14 Jul 2013 02:41:21 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", Sun, 14 Jul 2013 02:41:21 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sun, 14 Jul 2013 02:41:21 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'bjNMYumspdskqhhryZiT' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-14 02:41:21.215083', "updated_at" = '2013-07-14 02:41:21.215083', "authentication_token" = 'bjNMYumspdskqhhryZiT' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (14.9ms) 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", Sun, 14 Jul 2013 02:41:21 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:41:21 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 LIMIT 1  (0.6ms) 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  (19.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 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.2ms) 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  (35.7ms) 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 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (0.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  (17.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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::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)  (6.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  (92.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 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.6ms) 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  (18.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (4.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 84ms (Views: 78.4ms | ActiveRecord: 5.6ms)  (1.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.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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::Account::UsersController#index as JSON Cadenero::V1::Account Load (16.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 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" = 101 Completed 200 OK in 23ms (Views: 5.4ms | ActiveRecord: 17.3ms)  (0.3ms) ROLLBACK  (1.4ms) 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  (27.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.3ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 21:41:22 -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}  (11.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.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", Sun, 14 Jul 2013 02:41:22 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$Get0R8AQnDWTMye3ZjFjB.cMnkfAygx0pms0P3SuXavAGJ58J8aIi"], ["updated_at", Sun, 14 Jul 2013 02:41:22 UTC +00:00]] 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", Sun, 14 Jul 2013 02:41:22 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sun, 14 Jul 2013 02:41:22 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LdhFxysp1wkPs5eioxpr' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-14 02:41:22.825283', "updated_at" = '2013-07-14 02:41:22.825283', "authentication_token" = 'LdhFxysp1wkPs5eioxpr' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Sun, 14 Jul 2013 02:41:22 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:41:22 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1 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" != 1) LIMIT 1  (0.4ms) CREATE SCHEMA "test"  (37.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")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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)   (0.8ms) 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")  (5.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.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Completed 201 Created in 320ms (Views: 2.2ms | ActiveRecord: 96.6ms) Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (6.3ms) 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  (19.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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  (0.1ms) BEGIN  (6.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sun, 14 Jul 2013 02:41:23 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$.dryt6fILrebaVSKRam.f.S1ZtFBsmlujSjiQuUe9dY5cQOkFdLBS"], ["updated_at", Sun, 14 Jul 2013 02:41:23 UTC +00:00]] 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", Sun, 14 Jul 2013 02:41:23 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Sun, 14 Jul 2013 02:41:23 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'aJ9GQ5QqzoZ1pRs5BY9p' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-14 02:41:23.115369', "updated_at" = '2013-07-14 02:41:23.115369', "authentication_token" = 'aJ9GQ5QqzoZ1pRs5BY9p' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-13 21:41: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}  (1.0ms) 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  (0.5ms) 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 120ms (Views: 0.5ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (1.6ms) ROLLBACK  (0.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.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.6ms) BEGIN  (3.5ms) 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", Sun, 14 Jul 2013 02:41:23 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$6dCEC0cW1IUf/a.0G1N6g.Yum4cGp1iDe069wui/C4crtztcdlKe6"], ["updated_at", Sun, 14 Jul 2013 02:41:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (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", Sun, 14 Jul 2013 02:41:23 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Sun, 14 Jul 2013 02:41:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SyHKWs3ezqzMgCJAqSnP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-14 02:41:23.488131', "updated_at" = '2013-07-14 02:41:23.488131', "authentication_token" = 'SyHKWs3ezqzMgCJAqSnP' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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", Sun, 14 Jul 2013 02:41:23 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:41:23 UTC +00:00], ["user_id", 1]]  (1.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test1"  (7.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")  (4.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)  (3.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.2ms) 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)   (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.7ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 21:41:23 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1  (4.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  (18.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (5.1ms) 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  (2.4ms) BEGIN  (1.8ms) 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", Sun, 14 Jul 2013 02:41:23 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$k8EK92vZfpAR0iFiTNyALOTgjgqDuhWAbpKT/6tCTZsRhhXbDUQ1e"], ["updated_at", Sun, 14 Jul 2013 02:41:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (5.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", Sun, 14 Jul 2013 02:41:23 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Sun, 14 Jul 2013 02:41:23 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xUyyEtaxc6HPS4BCsmgz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-14 02:41:23.829215', "updated_at" = '2013-07-14 02:41:23.829215', "authentication_token" = 'xUyyEtaxc6HPS4BCsmgz' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", Sun, 14 Jul 2013 02:41:23 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:41:23 UTC +00:00], ["user_id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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)   (4.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (17.4ms) 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)  (3.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('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-13 21:41: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-13 21:41:23 -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 ('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"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.8ms) 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  (15.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  (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", Sun, 14 Jul 2013 02:41:24 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$HPAlAtC8Eeu8Eom05ISvoeB.us/8DJlRZH5rRmkAHW0YOlqy9enaC"], ["updated_at", Sun, 14 Jul 2013 02:41:24 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 (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", Sun, 14 Jul 2013 02:41:24 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Sun, 14 Jul 2013 02:41:24 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rEb2CWhFEfj3NMd5J7dk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-14 02:41:24.138204', "updated_at" = '2013-07-14 02:41:24.138204', "authentication_token" = 'rEb2CWhFEfj3NMd5J7dk' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sun, 14 Jul 2013 02:41:24 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:41:24 UTC +00:00], ["user_id", 1]]  (0.1ms) 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.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.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)  (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")  (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.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 ('20130612073709')  (0.1ms) 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-13 21:41:24 -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.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" = 'user3@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 125ms (Views: 4.8ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-13 21:41:24 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-13 21:41: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.2ms | ActiveRecord: 0.0ms)  (10.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.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (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", Sun, 14 Jul 2013 02:41:24 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$NHBznPOKl/FH7FiSMYKaau/E8EMjtHFMF/z6.80lzt1sfubz3fMq6"], ["updated_at", Sun, 14 Jul 2013 02:41:24 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.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", Sun, 14 Jul 2013 02:41:24 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Sun, 14 Jul 2013 02:41:24 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XNRpoDfpyUTRqD1MULBE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-14 02:41:24.504359', "updated_at" = '2013-07-14 02:41:24.504359', "authentication_token" = 'XNRpoDfpyUTRqD1MULBE' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Sun, 14 Jul 2013 02:41:24 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:41:24 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (2.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)  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) 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)   (1.0ms) 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.5ms) 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-13 21:41: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.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 21:41: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 ('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"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.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  (13.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sun, 14 Jul 2013 02:41:24 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$UGD5i5C32a.Clmxwuny6zuJz1w0H3hiOnPZW71cndYEP22JoSmgQ2"], ["updated_at", Sun, 14 Jul 2013 02:41:24 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 (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", Sun, 14 Jul 2013 02:41:24 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Sun, 14 Jul 2013 02:41:24 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EjXpN1E5yzCPWgtVbV18' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-14 02:41:24.705630', "updated_at" = '2013-07-14 02:41:24.705630', "authentication_token" = 'EjXpN1E5yzCPWgtVbV18' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Sun, 14 Jul 2013 02:41:24 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:41:24 UTC +00:00], ["user_id", 1]]  (1.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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")  (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)  (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.8ms) 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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-13 21:41: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.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-13 21:41:24 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.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" = 'user5@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 107ms (Views: 4.6ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 21:41:24 -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" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (3.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.7ms) 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 (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sun, 14 Jul 2013 02:41:25 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$4PreNU1hAXcHbAzD/897su.E7QY1XAOZ4WwDHwU4g3X0LjFF/tRqy"], ["updated_at", Sun, 14 Jul 2013 02:41:25 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.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", Sun, 14 Jul 2013 02:41:25 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Sun, 14 Jul 2013 02:41:25 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ssvsD19Zg4zH5L31W6XZ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-14 02:41:25.018041', "updated_at" = '2013-07-14 02:41:25.018041', "authentication_token" = 'ssvsD19Zg4zH5L31W6XZ' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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", Sun, 14 Jul 2013 02:41:25 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:41:25 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (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.3ms) 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")  (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)  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.5ms) 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')  (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", Sun, 14 Jul 2013 02:41:25 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$yXuLbDxvXCpRbvrlCAsbtusmcFMW.Zaxzr5ShCeIxF2DQcdbe9zA2"], ["updated_at", Sun, 14 Jul 2013 02:41:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.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", Sun, 14 Jul 2013 02:41:25 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 2], ["subdomain", "test7"], ["updated_at", Sun, 14 Jul 2013 02:41:25 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mzAB9Gqeq9hwKxbS37ks' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 2, "created_at" = '2013-07-14 02:41:25.167308', "updated_at" = '2013-07-14 02:41:25.167308', "authentication_token" = 'mzAB9Gqeq9hwKxbS37ks' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Sun, 14 Jul 2013 02:41:25 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:41:25 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-13 21:41:25 -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-13 21:41:25 -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 ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.9ms) ROLLBACK  (0.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  (12.3ms) 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.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.8ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (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", Sun, 14 Jul 2013 02:41:29 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$3MhgXnPM.Wuv9Je0p2w9te7VD.Elq9O2oG5rkF/f7DWb5h/ZJPhuK"], ["updated_at", Sun, 14 Jul 2013 02:41:29 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 (1.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", Sun, 14 Jul 2013 02:41:29 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Sun, 14 Jul 2013 02:41:29 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'e2HJm92saYG86Twvzpgk' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-14 02:41:29.398266', "updated_at" = '2013-07-14 02:41:29.398266', "authentication_token" = 'e2HJm92saYG86Twvzpgk' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sun, 14 Jul 2013 02:41:29 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:41:29 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", Sun, 14 Jul 2013 02:41:29 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$5XZvzDCkYhHfkNWOYUz/5uEs3h8t38TzmAVX/ijDwbpyMITWcNpB6"], ["updated_at", Sun, 14 Jul 2013 02:41:29 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", Sun, 14 Jul 2013 02:41:29 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$vYEWMTjCDSsjXOpRrvOQHuYSyUXN.df1ZpTImnR/AL.CNoJhN16Mq"], ["updated_at", Sun, 14 Jul 2013 02:41:29 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", Sun, 14 Jul 2013 02:41:29 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Sun, 14 Jul 2013 02:41:29 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GaSzxEdvwTK42TRXZHtz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-14 02:41:29.629148', "updated_at" = '2013-07-14 02:41:29.629148', "authentication_token" = 'GaSzxEdvwTK42TRXZHtz' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "www"  (4.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) 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")  (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.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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (5.0ms) ROLLBACK  (2.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  (28.1ms) 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 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)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.6ms) 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  (15.5ms) 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) 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  (11.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) 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.3ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) 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  (24.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (0.1ms) 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  (13.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.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", Sun, 14 Jul 2013 02:41:35 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$p6gaBDiFMcWRKxPqYzDDyuuwZsqUhXmAUPC3fnPojWmWrQVw340Sa"], ["updated_at", Sun, 14 Jul 2013 02:41:35 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 (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", Sun, 14 Jul 2013 02:41:35 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Sun, 14 Jul 2013 02:41:35 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ipxt33rv9qQhqRevywr3' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-14 02:41:35.032065', "updated_at" = '2013-07-14 02:41:35.032065', "authentication_token" = 'ipxt33rv9qQhqRevywr3' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Sun, 14 Jul 2013 02:41:35 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:41:35 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (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.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")  (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)   (2.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-13 21:41:35 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' 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", Sun, 14 Jul 2013 02:41:35 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$2zaYP/1KTJfEUtToytc74unoibcqmh2sEFrEuD2JZOxc0QvrYRAOe"], ["updated_at", Sun, 14 Jul 2013 02:41:35 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", Sun, 14 Jul 2013 02:41:35 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:41:35 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 116ms (Views: 6.3ms | ActiveRecord: 3.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-13 21:41:35 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (0.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 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.5ms | ActiveRecord: 1.8ms)  (4.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  (12.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.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", Sun, 14 Jul 2013 02:41:35 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$ObQYSTuziYXy8qQxkg58t.yL.IYdLjAldqq.OOgnyC6xm37KetPzS"], ["updated_at", Sun, 14 Jul 2013 02:41:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' 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", Sun, 14 Jul 2013 02:41:35 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Sun, 14 Jul 2013 02:41:35 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6CmW8q695c8gzK8KqL2U' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-14 02:41:35.361289', "updated_at" = '2013-07-14 02:41:35.361289', "authentication_token" = '6CmW8q695c8gzK8KqL2U' WHERE "public"."cadenero_accounts"."id" = 1  (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", Sun, 14 Jul 2013 02:41:35 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:41:35 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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.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")  (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)  (0.8ms) 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")  (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)  (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (13.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 21:41:35 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Sun, 14 Jul 2013 02:41:35 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$n.wF9KCefTct1lb.Hl3qDuWzgWfkFDqxBBmmJpD0Xzn5ScwR9ZSJ6"], ["updated_at", Sun, 14 Jul 2013 02:41:35 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", 1], ["created_at", Sun, 14 Jul 2013 02:41:35 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:41:35 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 116ms (Views: 5.9ms | 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/2" for 127.0.0.1 at 2013-07-13 21:41:35 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 1.4ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' 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", Sun, 14 Jul 2013 02:41:35 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 2], ["subdomain", "test11"], ["updated_at", Sun, 14 Jul 2013 02:41:35 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VpEgHD3gtBL7GGPkEHW3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 2, "created_at" = '2013-07-14 02:41:35.567413', "updated_at" = '2013-07-14 02:41:35.567413', "authentication_token" = 'VpEgHD3gtBL7GGPkEHW3' WHERE "public"."cadenero_accounts"."id" = 2  (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", Sun, 14 Jul 2013 02:41:35 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:41:35 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (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.7ms) 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)  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-13 21:41:35 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) 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", Sun, 14 Jul 2013 02:41:35 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Z5EYElqdeRvVAGgRUFIu2u3GCdUMH30HcpZNEsDzsclCXUtQRS.Ki"], ["updated_at", Sun, 14 Jul 2013 02:41:35 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", Sun, 14 Jul 2013 02:41:35 UTC +00:00], ["updated_at", Sun, 14 Jul 2013 02:41:35 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 134ms (Views: 6.3ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-13 21:41:35 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.1ms | ActiveRecord: 2.3ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-13 21:41:35 -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" = '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" = 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) 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 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 15ms (Views: 11.0ms | ActiveRecord: 2.4ms)  (4.6ms) 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  (13.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.4ms) 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  (10.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (30.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", "subdomain"=>"first"}} Completed 201 Created in 20ms (Views: 3.0ms | ActiveRecord: 0.0ms)  (3.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  (37.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) 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.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)  (1.8ms) 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  (75.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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 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) 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.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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 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.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  (29.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.5ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (0.8ms) 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 279ms (Views: 275.6ms | ActiveRecord: 2.6ms)  (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  (12.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.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (1.0ms) 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 7ms (Views: 4.9ms | ActiveRecord: 1.6ms)  (0.1ms) 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  (20.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.1ms) 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.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (2.6ms) SAVEPOINT active_record_1 SQL (68.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 02:03:19 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$ppANAHUJZr9AtQtu8neW1OxL0p2N6tax3P8hbG2.X3kuRokHziTMy"], ["updated_at", Mon, 15 Jul 2013 02:03:19 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" = 'test1' LIMIT 1 SQL (5.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", Mon, 15 Jul 2013 02:03:19 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 02:03:19 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZPfhqNTGQJrfYLWwQ58h' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 02:03:19.088503', "updated_at" = '2013-07-15 02:03:19.088503', "authentication_token" = 'ZPfhqNTGQJrfYLWwQ58h' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 02:03:19 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:03:19 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", Mon, 15 Jul 2013 02:03:19 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$WXu/3RFYeB.F/aD4rAtEdOjC9U8e3yQME2Bzzb/xTb213Q/02swJ."], ["updated_at", Mon, 15 Jul 2013 02:03:19 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", Mon, 15 Jul 2013 02:03:19 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$oukLHwPFse7aJvdWP9JC2e.9./.T8cAZ7oNUAmv43UEmOyuGGKRkW"], ["updated_at", Mon, 15 Jul 2013 02:03:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Mon, 15 Jul 2013 02:03:19 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 02:03:19 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xhLrX8DA4Y1q2obtmgFj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-15 02:03:19.343627', "updated_at" = '2013-07-15 02:03:19.343627', "authentication_token" = 'xhLrX8DA4Y1q2obtmgFj' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.4ms) CREATE SCHEMA "www"  (33.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.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)  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) 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)   (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.5ms) SELECT version FROM "schema_migrations"  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (6.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  (12.3ms) 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) 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  (14.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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 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)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) 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  (11.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.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.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  (11.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.6ms) BEGIN  (0.1ms) 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  (14.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 02:03:24 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$UMfgsbqDhR5mo/Q751xRNOMF3elHD1yhkbxJS5NqC3YzDAM5mmT6."], ["updated_at", Mon, 15 Jul 2013 02:03:24 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 (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", Mon, 15 Jul 2013 02:03:24 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 02:03:24 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vXR99MHWR8GRw3rypJ2h' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 02:03:24.286492', "updated_at" = '2013-07-15 02:03:24.286492', "authentication_token" = 'vXR99MHWR8GRw3rypJ2h' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 02:03:24 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:03:24 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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.2ms) 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")  (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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) 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)  (1.2ms) 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 ('20130612073709')  (0.1ms) 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-14 21:03:24 -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" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 02:03:24 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$bu7DQfNqoYqaDTk4ZpQdC..c7hRNCaNscQVOtCaKSQtw97We2p.bK"], ["updated_at", Mon, 15 Jul 2013 02:03:24 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", Mon, 15 Jul 2013 02:03:24 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:03:24 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 187ms (Views: 8.1ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-14 21:03:24 -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" = '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" = 2 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 15ms (Views: 7.3ms | ActiveRecord: 2.8ms)  (4.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  (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  (0.1ms) 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 02:03:24 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$oWmnoFuyLrLl6nXFBoaabOXnxf8mt5yEcG0.4N1wBGcFL4N.azk.y"], ["updated_at", Mon, 15 Jul 2013 02:03:24 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" = 'test3' 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", Mon, 15 Jul 2013 02:03:24 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 02:03:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UFwVzjkp7cusq8t8upVi' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 02:03:24.705442', "updated_at" = '2013-07-15 02:03:24.705442', "authentication_token" = 'UFwVzjkp7cusq8t8upVi' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 02:03:24 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:03:24 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (6.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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) 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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-14 21:03:24 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 02:03:24 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$xzxv9MoOnM3.6n2ByCW0a.OVE0wJqb0vevHpNp6kOpr7OwnqVU/rC"], ["updated_at", Mon, 15 Jul 2013 02:03:24 UTC +00:00]] 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", 1], ["created_at", Mon, 15 Jul 2013 02:03:24 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:03:24 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 125ms (Views: 5.1ms | 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/users/2" for 127.0.0.1 at 2013-07-14 21:03:24 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 1.4ms) Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Mon, 15 Jul 2013 02:03:24 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 2], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 02:03:24 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1iU2gXy4BQXE83Hzk3nn' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 2, "created_at" = '2013-07-15 02:03:24.902909', "updated_at" = '2013-07-15 02:03:24.902909', "authentication_token" = '1iU2gXy4BQXE83Hzk3nn' WHERE "public"."cadenero_accounts"."id" = 2  (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", Mon, 15 Jul 2013 02:03:24 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:03:24 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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.8ms) 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")  (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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) 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"  (2.9ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-14 21:03:24 -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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.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 02:03:25 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ioj3QdzXT0pYtgj4kVLY1OD8yNmWy.LAtEvAu2XmMd5Lgt18b87I."], ["updated_at", Mon, 15 Jul 2013 02:03:25 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", 2], ["created_at", Mon, 15 Jul 2013 02:03:25 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:03:25 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 145ms (Views: 4.9ms | ActiveRecord: 4.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-14 21:03:25 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 1.5ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-14 21:03:25 -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" = '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" = 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 15ms (Views: 11.4ms | ActiveRecord: 2.3ms)  (8.6ms) 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  (22.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.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", Mon, 15 Jul 2013 02:03:25 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$4xdns1Vu5PQNfWdGfqHdc.lJCo5mb4wymug8NI4E0BInjBVTM0wfG"], ["updated_at", Mon, 15 Jul 2013 02:03:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 02:03:25 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 02:03:25 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wEMNx6Jp9aDMCZDpSs2d' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 02:03:25.329069', "updated_at" = '2013-07-15 02:03:25.329069', "authentication_token" = 'wEMNx6Jp9aDMCZDpSs2d' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 02:03:25 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:03:25 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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)   (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.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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.2ms) 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-14 21:03:25 -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.5ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-14 21:03:25 -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 ('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 Completed 422 Unprocessable Entity in 29ms (Views: 0.4ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (13.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (19.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  (47.7ms) 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.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 02:03:25 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$XTFoGxYkEjUJowtxwEXYNu/mXWNa3guBM0YWsblkDlBsM1uJNL4RC"], ["updated_at", Mon, 15 Jul 2013 02:03:25 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 (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", Mon, 15 Jul 2013 02:03:25 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 02:03:25 UTC +00:00]] Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'spqAZ6Upy8VdX4t9wtuy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 02:03:25.790719', "updated_at" = '2013-07-15 02:03:25.790719', "authentication_token" = 'spqAZ6Upy8VdX4t9wtuy' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) 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 02:03:25 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:03:25 UTC +00:00], ["user_id", 1]]  (2.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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)   (7.2ms) 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")  (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)  (13.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (7.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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")  (2.2ms) SELECT version FROM "schema_migrations"  (1.3ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-14 21:03:25 -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 (5.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Cadenero::User Load (6.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1 Completed 201 Created in 162ms (Views: 5.3ms | ActiveRecord: 15.8ms) Cadenero::V1::Account Load (4.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-14 21:03:26 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-14 21:03:26 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (5.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;  (1.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 (2.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 02:03:26 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$EjKXBr9rQN2.WfHQUMKo.eiwGVpJV/VD8wwXQJPBcD5GNYyy2JAM2"], ["updated_at", Mon, 15 Jul 2013 02:03:26 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 (2.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", Mon, 15 Jul 2013 02:03:26 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 02:03:26 UTC +00:00]] Cadenero::V1::Account Load (4.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xJoMg5Wy1J3MfanKYmeb' LIMIT 1  (2.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 02:03:26.283529', "updated_at" = '2013-07-15 02:03:26.283529', "authentication_token" = 'xJoMg5Wy1J3MfanKYmeb' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 1], ["created_at", Mon, 15 Jul 2013 02:03:26 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:03:26 UTC +00:00], ["user_id", 1]]  (1.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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)   (1.0ms) 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")  (5.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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.6ms) 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)   (1.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.4ms) 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-14 21:03:26 -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.9ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-14 21:03:26 -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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') 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" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 2.4ms) Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.8ms) 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  (22.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  (1.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", Mon, 15 Jul 2013 02:03:26 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$wcWEskYKxA8l4J3kAc0VfezsP4FvG4Xyt8i57MLf2Uatoms7e.OrO"], ["updated_at", Mon, 15 Jul 2013 02:03:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Mon, 15 Jul 2013 02:03:26 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 02:03:26 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3HuRWWWyMPJ8rxBjRaMR' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 02:03:26.632070', "updated_at" = '2013-07-15 02:03:26.632070', "authentication_token" = '3HuRWWWyMPJ8rxBjRaMR' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 02:03:26 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:03:26 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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" ("authentication_token")  (4.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (12.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)  (3.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-14 21:03:26 -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-14 21:03:26 -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 (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" = 'user8@example.com' LIMIT 1 Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (4.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 150ms (Views: 5.9ms | ActiveRecord: 6.7ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-14 21:03:26 -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" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (15.3ms) 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  (24.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  (0.7ms) 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", Mon, 15 Jul 2013 02:03:27 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$5skaIceHmpm9/XN0Y8FNcOqTI3Ms4eGJR99nlH8J7rEJ1dbnnHhq6"], ["updated_at", Mon, 15 Jul 2013 02:03:27 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" = 'test9' LIMIT 1 SQL (3.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", Mon, 15 Jul 2013 02:03:27 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 02:03:27 UTC +00:00]] Cadenero::V1::Account Load (3.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pZ4FsSS89MqpyGMBhaQ1' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 02:03:27.118408', "updated_at" = '2013-07-15 02:03:27.118408', "authentication_token" = 'pZ4FsSS89MqpyGMBhaQ1' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) 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 02:03:27 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:03:27 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (6.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.7ms) 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")  (5.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")  (4.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (13.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.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (9.0ms) 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')  (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", Mon, 15 Jul 2013 02:03:27 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$jZSIe1HlUxLTCm9MivseqO9XrVCkzpuVzC/avdWfcp670.07.9Lq6"], ["updated_at", Mon, 15 Jul 2013 02:03:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (2.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", Mon, 15 Jul 2013 02:03:27 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 2], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 02:03:27 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'HUTUGtZH53suRhJjW8sm' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 2, "created_at" = '2013-07-15 02:03:27.496121', "updated_at" = '2013-07-15 02:03:27.496121', "authentication_token" = 'HUTUGtZH53suRhJjW8sm' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.0ms) 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 02:03:27 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:03:27 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-14 21:03:27 -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-14 21:03:27 -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.3ms) 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" = 1 AND "public"."cadenero_users"."email" = 'user10@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.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  (18.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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.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 02:03:27 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$ExZOovTXwojksjaHY82aGOTcEm3Zu.ScNkqD4OE0QMc6/r0xdHmWO"], ["updated_at", Mon, 15 Jul 2013 02:03:27 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 (4.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", Mon, 15 Jul 2013 02:03:27 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 02:03:27 UTC +00:00]] Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4vbT3uKxobKzhdNPxvZy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-15 02:03:27.703643', "updated_at" = '2013-07-15 02:03:27.703643', "authentication_token" = '4vbT3uKxobKzhdNPxvZy' WHERE "public"."cadenero_accounts"."id" = 1  (4.1ms) RELEASE SAVEPOINT active_record_1  (1.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", Mon, 15 Jul 2013 02:03:27 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:03:27 UTC +00:00], ["user_id", 1]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.9ms) CREATE SCHEMA "test11"  (10.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" ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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)  (6.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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)   (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (5.6ms) 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 ('20130612073709')  (0.1ms) 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-14 21:03:27 -0500 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user11@example.com' LIMIT 1  (6.2ms) 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  (37.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  (1.6ms) BEGIN Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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  (12.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (2.1ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.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  (19.8ms) 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.5ms) BEGIN  (10.3ms) 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 (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 02:03:28 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$s84u4sooIh1x7G.n7Gw.KuovfLd.bFeK4u9fxHblGJ0x/g7VzPfI2"], ["updated_at", Mon, 15 Jul 2013 02:03:28 UTC +00:00]] 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", Mon, 15 Jul 2013 02:03:28 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 02:03:28 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yenKhDYX2Er8yNHqrExQ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 02:03:28.431572', "updated_at" = '2013-07-15 02:03:28.431572', "authentication_token" = 'yenKhDYX2Er8yNHqrExQ' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (2.4ms) 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 02:03:28 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:03:28 UTC +00:00], ["user_id", 1]]  (8.4ms) RELEASE SAVEPOINT active_record_1  (1.7ms) CREATE SCHEMA "test"  (12.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)   (5.3ms) 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")  (10.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)  (0.9ms) 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")  (7.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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') 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 LIMIT 1  (6.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  (27.9ms) 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.3ms) 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.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.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-14 21:03:28 -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 (1.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (10.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 02:03:28 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$3yWv3h/yVI8h1/r4UE0U8.neKpTBVPVvr76WYPX81N9yzmJXryib6"], ["updated_at", Mon, 15 Jul 2013 02:03:28 UTC +00:00]] SQL (2.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", Mon, 15 Jul 2013 02:03:28 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 02:03:28 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EKpQNRnvM93ysuLsV1sn' LIMIT 1  (1.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 02:03:28.930903', "updated_at" = '2013-07-15 02:03:28.930903', "authentication_token" = 'EKpQNRnvM93ysuLsV1sn' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 02:03:28 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:03:28 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test"  (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)   (2.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.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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (10.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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (1.3ms) 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') Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1 Completed 201 Created in 285ms (Views: 1.8ms | ActiveRecord: 77.3ms) Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (9.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  (18.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.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (11.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (2.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 02:03:29 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$GRMtCleATEYzm8xWp9HeeOdVttAs.1F4fMPYnqRflvcozsuKKObv6"], ["updated_at", Mon, 15 Jul 2013 02:03:29 UTC +00:00]] SQL (2.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", Mon, 15 Jul 2013 02:03:29 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 02:03:29 UTC +00:00]] Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'coixtgUZurMLbpYgrPSY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 02:03:29.214231', "updated_at" = '2013-07-15 02:03:29.214231', "authentication_token" = 'coixtgUZurMLbpYgrPSY' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-14 21:03:29 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (1.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (7.0ms) 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 161ms (Views: 0.7ms | ActiveRecord: 9.1ms) Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.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  (16.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.7ms) 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  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.1ms) 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  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (58.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 02:52:07 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$04$ZgW1PYxMpX0Vp.Rc6xgDfOChlBf6uZO7jdy7B1NoCcg.DXZcNagIW"], ["updated_at", Mon, 15 Jul 2013 02:52:07 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.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 02:52:07 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 02:52:07 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9Ui8mcg6zUiug5zc1L8n' 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" = 1 [["name", "Test Account #1"], ["subdomain", "test1"], ["owner_id", 1], ["created_at", Mon, 15 Jul 2013 02:52:07 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:07 UTC +00:00], ["id", 1], ["authentication_token", "9Ui8mcg6zUiug5zc1L8n"]]  (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", Mon, 15 Jul 2013 02:52:07 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:07 UTC +00:00], ["user_id", 1]]  (0.2ms) 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", Mon, 15 Jul 2013 02:52:07 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$04$AG1o.NhjDxTrILsu9vHKa.P3yMpFMpf6BogYVCwr8N3wE1wLbzHpm"], ["updated_at", Mon, 15 Jul 2013 02:52:07 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", Mon, 15 Jul 2013 02:52:07 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$8.109jKZWqewU/QLAyZVF.hAkbLpu2hwVrHKutqaGNQuZP0nx9XbS"], ["updated_at", Mon, 15 Jul 2013 02:52:07 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" ("created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 15 Jul 2013 02:52:07 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 02:52:07 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zygCwDXjU67mxhi92uea' 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", Mon, 15 Jul 2013 02:52:07 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:07 UTC +00:00], ["id", 2], ["authentication_token", "zygCwDXjU67mxhi92uea"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "www" SQL (0.5ms) 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.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")  (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)   (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (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.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (1.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  (9.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (2.6ms) ROLLBACK  (0.2ms) BEGIN  (0.4ms) 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  (10.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.9ms) ROLLBACK  (0.1ms) BEGIN  (0.6ms) 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_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;  (2.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  (2.8ms) ROLLBACK  (1.0ms) BEGIN  (0.4ms) 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  (9.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.9ms) 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.5ms | ActiveRecord: 0.0ms)  (0.4ms) 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  (9.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.9ms) ROLLBACK  (0.3ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (14.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.4ms) ROLLBACK  (8.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 101]] Cadenero::V1::Account Load (3.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", 101]] Completed 200 OK in 44ms (Views: 37.4ms | ActiveRecord: 5.7ms)  (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  (36.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.9ms) ROLLBACK  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON 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 7ms (Views: 4.3ms | ActiveRecord: 1.9ms)  (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  (9.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.9ms) 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", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$04$pJdcsf8YJ1nWri3r0IHumOmGzOeomfx6srtlDYyAWVqBq6iL36zJC"], ["updated_at", Mon, 15 Jul 2013 02:52:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 4], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 02:52:12 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CntZfiqZTKpJXnEPNGeb' 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", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["id", 3], ["authentication_token", "CntZfiqZTKpJXnEPNGeb"]]  (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", 3], ["created_at", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["user_id", 4]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (20.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")  (3.0ms) 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)   (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_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)  (1.2ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-14 21:52:12 -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::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.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 64ms (Views: 9.0ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-14 21:52:12 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"4", "default"=>:json} Cadenero::User Load (0.3ms) 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.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-14 21:52:12 -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)  (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  (9.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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.6ms) 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 02:52:12 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$04$sUkkTZHQgLEb3yIkDMXXKeIo1HtN7Z2p9Yx4m6y9sLlPQS1/teZnW"], ["updated_at", Mon, 15 Jul 2013 02:52:12 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", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 5], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 02:52:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2wMqHZxFjUsvN1DLMr7h' 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", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["id", 4], ["authentication_token", "2wMqHZxFjUsvN1DLMr7h"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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", 4], ["created_at", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["user_id", 5]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3" 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)   (2.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")  (11.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" USING btree ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (7.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)  (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 ('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-14 21:52:12 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (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  (9.6ms) 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  (6.3ms) ROLLBACK  (1.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$04$b4PzMnzib/Z4AayK41Ak2.Err6Z20vbyT2vs.Ol1E4JzowgD9JBJu"], ["updated_at", Mon, 15 Jul 2013 02:52:12 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.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 02:52:12 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 6], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 02:52:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '63VvT9cqRfejTsSynwTM' 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", 6], ["created_at", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["id", 5], ["authentication_token", "63VvT9cqRfejTsSynwTM"]]  (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", 5], ["created_at", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["user_id", 6]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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)  (17.8ms) 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")  (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)   (1.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (3.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)  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (5.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 ('20130612073709')  (0.2ms) 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-14 21:52:12 -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-14 21:52:12 -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 ('test4') 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", 5]] Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (23.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (10.2ms) ROLLBACK  (0.1ms) BEGIN  (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", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$04$PJrZ4RAKQjiww2qpSp8Ix.0KPzbJJD8YpxzC3E.m1M/mhK28ESuba"], ["updated_at", Mon, 15 Jul 2013 02:52:12 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 02:52:12 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 7], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 02:52:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'J2WKhYh2AsYLgrG4H5cx' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (1.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 #5"], ["subdomain", "test5"], ["owner_id", 7], ["created_at", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["id", 6], ["authentication_token", "J2WKhYh2AsYLgrG4H5cx"]]  (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", 6], ["created_at", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:12 UTC +00:00], ["user_id", 7]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (17.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)   (28.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (7.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (5.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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (2.1ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.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')  (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 02:52:13 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$04$t0172oR2f3Gj3ozeeKIpkuUUSWFE6mWFlz0Gho3Zkkrc4OmoUmwPW"], ["updated_at", Mon, 15 Jul 2013 02:52:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) 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 02:52:13 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 8], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 02:52:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gZtA8y5whpceTpszXCx2' 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" = 7 [["name", "Test Account #6"], ["subdomain", "test6"], ["owner_id", 8], ["created_at", Mon, 15 Jul 2013 02:52:13 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:13 UTC +00:00], ["id", 7], ["authentication_token", "gZtA8y5whpceTpszXCx2"]]  (0.1ms) 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", 7], ["created_at", Mon, 15 Jul 2013 02:52:13 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:13 UTC +00:00], ["user_id", 8]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-14 21:52:13 -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-14 21:52:13 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@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 ('test5') LIMIT 1 Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 [["account_id", 6]] Completed 422 Unprocessable Entity in 8ms (Views: 0.3ms | ActiveRecord: 2.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  (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  (10.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.1ms) ROLLBACK  (59.3ms) 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", Mon, 15 Jul 2013 02:52:13 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$04$hgVwj8oVO/OPp4lLpDdHo.fTlFGjRIujMEbHT8zi7UlNKSPanaa8q"], ["updated_at", Mon, 15 Jul 2013 02:52:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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 02:52:13 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 9], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 02:52:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qq3Bdxz6mMdaSg8Gps9s' 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" = 8 [["name", "Test Account #7"], ["subdomain", "test7"], ["owner_id", 9], ["created_at", Mon, 15 Jul 2013 02:52:13 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:13 UTC +00:00], ["id", 8], ["authentication_token", "qq3Bdxz6mMdaSg8Gps9s"]]  (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", 8], ["created_at", Mon, 15 Jul 2013 02:52:13 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:13 UTC +00:00], ["user_id", 9]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (17.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)  (11.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (11.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("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)   (6.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (3.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (15.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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (5.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-14 21:52:13 -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-14 21:52:13 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') 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" = $1 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 [["account_id", 8]] Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 9 LIMIT 1 Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 9]] 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", 9]] Completed 201 Created in 40ms (Views: 6.5ms | ActiveRecord: 4.3ms) Cadenero::V1::Account Load (20.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@example.com' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-14 21:52:13 -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" = 9 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms)  (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  (21.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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  (8.5ms) ROLLBACK  (0.2ms) BEGIN  (0.7ms) 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 02:52:13 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$04$np8DUx2lF94ecaDgJDVQfeEIUz9xjf/TpfA5yzrS141ZjvVnXvNE2"], ["updated_at", Mon, 15 Jul 2013 02:52:13 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 (1.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 02:52:13 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 10], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 02:52:13 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'V3R9hRZLYnzs4G3ctzMK' 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" = 9 [["name", "Test Account #8"], ["subdomain", "test8"], ["owner_id", 10], ["created_at", Mon, 15 Jul 2013 02:52:13 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:13 UTC +00:00], ["id", 9], ["authentication_token", "V3R9hRZLYnzs4G3ctzMK"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.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", Mon, 15 Jul 2013 02:52:13 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:13 UTC +00:00], ["user_id", 10]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (12.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")  (0.9ms) 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)  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (7.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (14.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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (6.0ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (6.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-14 21:52:13 -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-14 21:52:13 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (3.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 [["account_id", 9]] Completed 422 Unprocessable Entity in 11ms (Views: 0.3ms | ActiveRecord: 6.6ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (15.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (7.3ms) 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 02:52:13 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$04$SuOSo0SScehMlEAXloF/XOGJPKtvUGmiz2TYHayZ2KsVKmbYsBVLG"], ["updated_at", Mon, 15 Jul 2013 02:52:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' 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 02:52:14 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 11], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'z1wb8MVVMPPss5XytnEo' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (7.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" = 10 [["name", "Test Account #9"], ["subdomain", "test9"], ["owner_id", 11], ["created_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["id", 10], ["authentication_token", "z1wb8MVVMPPss5XytnEo"]]  (4.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) 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", 10], ["created_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["user_id", 11]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9" SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (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.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (4.8ms) 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)   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (6.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.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (6.1ms) 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/users" for 127.0.0.1 at 2013-07-14 21:52:14 -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" = 'test9' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (5.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 02:52:14 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$o94k0B1AEw3abihRPEi6SuhZXvdAmDFNfmbhoZg2CLkpoiVfEEz1e"], ["updated_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00]] SQL (9.0ms) 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 02:52:14 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["user_id", 12]]  (0.2ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (3.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 12 LIMIT 1 Cadenero::V1::Account Load (3.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 12]] 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", 12]] Completed 201 Created in 39ms (Views: 6.4ms | ActiveRecord: 23.2ms) Cadenero::V1::Account Load (1.2ms) 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-14 21:52:14 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"12"} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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"."id" = 12 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 10]] Cadenero::User Load (2.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 12 LIMIT 1 Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 12]] 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", 12]] Completed 200 OK in 18ms (Views: 8.4ms | ActiveRecord: 4.9ms)  (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  (24.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (10.0ms) ROLLBACK  (6.2ms) BEGIN  (0.6ms) 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 02:52:14 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$04$YUBf2vLDsdm1Q61c08nnFepfURYYZqqPAAIKpTpk.6SkffuT6gT3a"], ["updated_at", Mon, 15 Jul 2013 02:52:14 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" = '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 02:52:14 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 13], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oqX6t3WpXWWfwnASZpKB' 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" = 11 [["name", "Test Account #10"], ["subdomain", "test10"], ["owner_id", 13], ["created_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["id", 11], ["authentication_token", "oqX6t3WpXWWfwnASZpKB"]]  (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", 11], ["created_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["user_id", 13]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10" 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.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("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)   (5.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("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.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 ('20130612073709')  (3.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-14 21:52:14 -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" = 'test10' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$CxoWNsCamefElMTMpEvZBuiM9hFse1rAkcfxwheGKdx.K9wHZBFAW"], ["updated_at", Mon, 15 Jul 2013 02:52:14 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", 11], ["created_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["user_id", 14]]  (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" = 14 LIMIT 1 Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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", 14]] Completed 201 Created in 26ms (Views: 7.0ms | ActiveRecord: 7.6ms) 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 Started GET "/v1/users/14" for 127.0.0.1 at 2013-07-14 21:52:14 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"14"} Cadenero::V1::Account Load (7.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = $1 AND "public"."cadenero_users"."id" = 14 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 11]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] 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", 14]] Completed 200 OK in 25ms (Views: 11.7ms | ActiveRecord: 10.1ms) Cadenero::User Load (1.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1  (1.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' 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 02:52:14 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 14], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qmFHQCnA4s6jSQGSPzG6' 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" = 12 [["name", "Test Account #11"], ["subdomain", "test11"], ["owner_id", 14], ["created_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["id", 12], ["authentication_token", "qmFHQCnA4s6jSQGSPzG6"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.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", 12], ["created_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["user_id", 14]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (8.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)   (3.5ms) 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")  (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)  (6.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (1.0ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.4ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-14 21:52:14 -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 (2.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 02:52:14 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$oGF5QbvuGumEs6ysb3jpMONtQxjFv5sHriMktzLi0q6mHgVnzjAw."], ["updated_at", Mon, 15 Jul 2013 02:52:14 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", 12], ["created_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["user_id", 15]]  (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" = 15 LIMIT 1 Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 15]] 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", 15]] Completed 201 Created in 24ms (Views: 5.8ms | ActiveRecord: 7.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/14" for 127.0.0.1 at 2013-07-14 21:52:14 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"14"} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' 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" = 14 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 11]] Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 14]] Completed 200 OK in 17ms (Views: 7.4ms | ActiveRecord: 5.6ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-14 21:52:14 -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" = 'test10' LIMIT 1 Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 14 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", 11]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 13]] 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", 13]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = $1 [["owner_id", 14]] Cadenero::V1::Account Load (2.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = $1 [["user_id", 14]] Completed 200 OK in 22ms (Views: 14.1ms | ActiveRecord: 5.8ms)  (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  (18.7ms) 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  (10.4ms) ROLLBACK  (0.3ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} 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" = $1 [["account_id", 1001]] Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.1ms)  (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  (15.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (6.5ms) 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.3ms | ActiveRecord: 0.0ms)  (0.4ms) 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  (34.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (21.0ms) ROLLBACK  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-14 21:52:14 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (1.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (2.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 02:52:14 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$k5uQuHzCFUft76YXpFZNnODIn4qmA0pQA3D8Ii8onw4z6o7rPQjS2"], ["updated_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00]] SQL (4.9ms) 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 02:52:14 UTC +00:00], ["name", "Testy"], ["owner_id", 16], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8a2sQp77UhXbuhbDKp2W' 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", "Testy"], ["subdomain", "test"], ["owner_id", 16], ["created_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["id", 13], ["authentication_token", "8a2sQp77UhXbuhbDKp2W"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.0ms) 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 02:52:14 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:14 UTC +00:00], ["user_id", 16]]  (8.6ms) RELEASE SAVEPOINT active_record_1  (1.0ms) CREATE SCHEMA "test" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (8.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)   (2.9ms) 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)  (7.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (18.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" USING btree ("user_id")  (20.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)  (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 ('20130612073709')  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Exists (1.6ms) 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 (5.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 174ms (Views: 5.7ms | ActiveRecord: 134.6ms) 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  (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  (27.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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  (14.4ms) ROLLBACK  (3.4ms) BEGIN  (2.4ms) 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 (3.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 02:52:15 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$04$bTaTwphdSIi/npI1skivbeHmMluhrZlsm7DHkLZlEoLSDQc1MKDzC"], ["updated_at", Mon, 15 Jul 2013 02:52:15 UTC +00:00]] SQL (1.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 02:52:15 UTC +00:00], ["name", "Testy"], ["owner_id", 17], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 02:52:15 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FkhY78tj9ddJipgvwXrA' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1 SQL (2.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" = 14 [["name", "Testy"], ["subdomain", "test"], ["owner_id", 17], ["created_at", Mon, 15 Jul 2013 02:52:15 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:15 UTC +00:00], ["id", 14], ["authentication_token", "FkhY78tj9ddJipgvwXrA"]]  (6.8ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-14 21:52:15 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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  (0.6ms) 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 37ms (Views: 0.4ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' ORDER BY "public"."cadenero_accounts"."id" ASC LIMIT 1  (5.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  (22.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (4.0ms) ROLLBACK  (0.1ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (0.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 02:52:15 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$04$QKitWGvAXoaTTbZXgFNsRO6RfDW6BHmHqyV5vQ7BBBx9aJKLRqa2O"], ["updated_at", Mon, 15 Jul 2013 02:52:15 UTC +00:00]] SQL (2.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 02:52:15 UTC +00:00], ["name", "Test Account"], ["owner_id", 18], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 02:52:15 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ERJQyC5y2zkVafXVMH1d' 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"], ["subdomain", "test"], ["owner_id", 18], ["created_at", Mon, 15 Jul 2013 02:52:15 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:15 UTC +00:00], ["id", 15], ["authentication_token", "ERJQyC5y2zkVafXVMH1d"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 15], ["created_at", Mon, 15 Jul 2013 02:52:15 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 02:52:15 UTC +00:00], ["user_id", 18]]  (6.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test" SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"  (16.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.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" USING btree ("authentication_token")  (4.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" USING btree ("owner_id")  (5.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" USING btree ("account_id")  (5.3ms) 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.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.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') 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 ORDER BY "public"."cadenero_users"."id" ASC LIMIT 1 [["account_id", 15]]  (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  (21.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (5.4ms) ROLLBACK  (0.1ms) 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.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  (35.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (15.1ms) ROLLBACK  (4.4ms) BEGIN Cadenero::V1::Account Exists (3.8ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (25.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.2ms) 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  (4.5ms) ROLLBACK  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.9ms) 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_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (10.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (7.6ms) ROLLBACK Connecting to database specified by database.yml Connecting to database specified by database.yml  (2.7ms) 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  (10.4ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (35.9ms) 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  (5.5ms) SAVEPOINT active_record_1 SQL (76.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 12:52:18 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$oACk6m1JVFpNHTzCjDVvO.xAmm3Zdh2iRT/NTCxdAoXLFFpca4JxK"], ["updated_at", Mon, 15 Jul 2013 12:52:18 UTC +00:00]]  (3.1ms) RELEASE SAVEPOINT active_record_1  (3.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (11.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", Mon, 15 Jul 2013 12:52:18 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 12:52:18 UTC +00:00]] Cadenero::V1::Account Load (5.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PaVgodGttq4izU5jfiXo' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 12:52:18.377964', "updated_at" = '2013-07-15 12:52:18.377964', "authentication_token" = 'PaVgodGttq4izU5jfiXo' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 12:52:18 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:52:18 UTC +00:00], ["user_id", 1]]  (0.8ms) RELEASE SAVEPOINT active_record_1  (4.6ms) 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.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (3.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) 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/users" for 127.0.0.1 at 2013-07-15 07:52:18 -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 (3.6ms) 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", Mon, 15 Jul 2013 12:52:19 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Nz8JpeFIxQcz6P7.gLKWzuo45wly.HdnldKylGmmsvIF2gxjGxNsu"], ["updated_at", Mon, 15 Jul 2013 12:52:19 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", 1], ["created_at", Mon, 15 Jul 2013 12:52:19 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:52:19 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (2.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (7.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" = 2 Completed 201 Created in 279ms (Views: 75.4ms | ActiveRecord: 16.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/2" for 127.0.0.1 at 2013-07-15 07:52:19 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (5.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."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" = 2 Completed 200 OK in 20ms (Views: 6.0ms | ActiveRecord: 9.6ms)  (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  (14.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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  (7.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (3.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 12:52:19 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$pABkM..ZaAtbSPcQXz59BunLTSxn30bCnxwjyzMLyvlBFdjBWncqm"], ["updated_at", Mon, 15 Jul 2013 12:52:19 UTC +00:00]]  (4.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (10.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Mon, 15 Jul 2013 12:52:19 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 12:52:19 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gp4SvGnk3CRw1d8sswH7' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 12:52:19.423732', "updated_at" = '2013-07-15 12:52:19.423732', "authentication_token" = 'gp4SvGnk3CRw1d8sswH7' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 12:52:19 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:52:19 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (14.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)  (4.5ms) 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")  (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)   (4.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.0ms) SELECT version FROM "schema_migrations"  (12.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (8.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (6.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 07:52:19 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (7.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 12:52:19 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$wZisi0uDV9LeSE/juDR8RekikuVLF/HlbaihdQirreU6pHsQVWy.2"], ["updated_at", Mon, 15 Jul 2013 12:52:19 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", Mon, 15 Jul 2013 12:52:19 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:52:19 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 156ms (Views: 5.0ms | ActiveRecord: 10.0ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 07:52:19 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.5ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Mon, 15 Jul 2013 12:52:19 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 12:52:19 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'V3w6NuecJz3kK1jeSTvG' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 2, "created_at" = '2013-07-15 12:52:19.727832', "updated_at" = '2013-07-15 12:52:19.727832', "authentication_token" = 'V3w6NuecJz3kK1jeSTvG' WHERE "public"."cadenero_accounts"."id" = 2  (6.6ms) 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", Mon, 15 Jul 2013 12:52:19 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:52:19 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (24.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" ("authentication_token")  (4.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.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)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (7.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.9ms) SELECT version FROM "schema_migrations"  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 07:52:19 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (11.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 12:52:19 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Jl11cRWTpnj8KusrgMC4POtn/RaHE2.1D5nIE6PRlsNvkYumPnrA2"], ["updated_at", Mon, 15 Jul 2013 12:52:19 UTC +00:00]] 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", 2], ["created_at", Mon, 15 Jul 2013 12:52:19 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:52:19 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (3.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 150ms (Views: 5.3ms | ActiveRecord: 23.1ms) Cadenero::V1::Account Load (3.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 07:52:20 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (3.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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 14ms (Views: 5.9ms | ActiveRecord: 4.5ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 07:52:20 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (2.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" = 1 Cadenero::User Load (1.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (4.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (6.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" = 2 Completed 200 OK in 34ms (Views: 15.5ms | ActiveRecord: 16.0ms)  (10.9ms) ROLLBACK  (0.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  (37.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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::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.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  (31.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.3ms) 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::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) 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  (30.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (3.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 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" = 101 Completed 200 OK in 10ms (Views: 5.4ms | ActiveRecord: 4.2ms)  (0.2ms) ROLLBACK  (3.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  (27.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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.3ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (7.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 18ms (Views: 8.6ms | ActiveRecord: 8.7ms)  (3.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  (46.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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  (0.5ms) 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.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 12:52:21 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$LEnEaADz3CF.YKpdIJ7fGuqvRK8yOrth6m8ZRIcekJ.eMjX.8PgM2"], ["updated_at", Mon, 15 Jul 2013 12:52:21 UTC +00:00]] 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", Mon, 15 Jul 2013 12:52:21 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 12:52:21 UTC +00:00]] Cadenero::V1::Account Load (7.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ezG6oYUMgqHHYztVqUKb' LIMIT 1  (1.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 12:52:21.123394', "updated_at" = '2013-07-15 12:52:21.123394', "authentication_token" = 'ezG6oYUMgqHHYztVqUKb' WHERE "public"."cadenero_accounts"."id" = 1  (3.6ms) RELEASE SAVEPOINT active_record_1  (12.1ms) SAVEPOINT active_record_1 SQL (3.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 12:52:21 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:52:21 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.5ms) CREATE SCHEMA "test"  (10.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" ("authentication_token")  (0.9ms) 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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.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.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.7ms) SELECT version FROM "schema_migrations"  (0.3ms) 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::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 LIMIT 1  (11.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  (18.3ms) 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 (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (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  (20.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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" IS NULL LIMIT 1  (0.4ms) ROLLBACK  (4.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.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (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  (21.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.1ms) BEGIN  (4.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 12:52:22 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$r02MSmf2vIEue/gV7/CWV.JUzRc3ffiKyK5/4dPBraX35YZtiZ4bm"], ["updated_at", Mon, 15 Jul 2013 12:52:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Mon, 15 Jul 2013 12:52:22 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 12:52:22 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vXpMjyfBHDVHnu3Y2bun' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 12:52:22.110788', "updated_at" = '2013-07-15 12:52:22.110788', "authentication_token" = 'vXpMjyfBHDVHnu3Y2bun' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 12:52:22 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:52:22 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (8.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.9ms) 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")  (5.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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (17.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)   (12.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.9ms) 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-15 07:52:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 07:52:22 -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 ('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" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | 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' LIMIT 1  (11.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  (24.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  (0.1ms) BEGIN  (3.7ms) SAVEPOINT active_record_1 SQL (2.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 12:52:22 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$UnRoOxWdVSSSosVR.0zopOdsooWHgwjAcJkZFIHUcdphGybHQYf2W"], ["updated_at", Mon, 15 Jul 2013 12:52:22 UTC +00:00]]  (1.0ms) 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 (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", Mon, 15 Jul 2013 12:52:22 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 12:52:22 UTC +00:00]] Cadenero::V1::Account Load (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ojiitx5ifvQ1fj5rCwUx' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 12:52:22.445819', "updated_at" = '2013-07-15 12:52:22.445819', "authentication_token" = 'ojiitx5ifvQ1fj5rCwUx' WHERE "public"."cadenero_accounts"."id" = 1  (5.8ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 12:52:22 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:52:22 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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)  (4.7ms) 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")  (5.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)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) 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)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Mon, 15 Jul 2013 12:52:22 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$taz2W2lI2e3NWb0rnphPc.MRTvtDTa6VIxijA5pYhdIz8JPAWnl5S"], ["updated_at", Mon, 15 Jul 2013 12:52:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' 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", Mon, 15 Jul 2013 12:52:22 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 12:52:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'S65PoNc3tVx13SArndrN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 2, "created_at" = '2013-07-15 12:52:22.627926', "updated_at" = '2013-07-15 12:52:22.627926', "authentication_token" = 'S65PoNc3tVx13SArndrN' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Mon, 15 Jul 2013 12:52:22 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:52:22 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 07:52:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 07:52:22 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | 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  (3.5ms) 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  (12.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (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", Mon, 15 Jul 2013 12:52:22 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$.3dAypV82MZG/vSmSgN4MuW3YUhGb0Szh8HzedsgWwET.a54kXWwu"], ["updated_at", Mon, 15 Jul 2013 12:52:22 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 (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", Mon, 15 Jul 2013 12:52:22 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 12:52:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MwrT5DMpsHQxJBZaKgKD' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 12:52:22.783074', "updated_at" = '2013-07-15 12:52:22.783074', "authentication_token" = 'MwrT5DMpsHQxJBZaKgKD' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 12:52:22 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:52:22 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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.6ms) 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)   (1.4ms) 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.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"  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 07:52:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 07:52:22 -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 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 147ms (Views: 7.3ms | ActiveRecord: 2.3ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 07:52:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (9.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  (17.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) 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.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", Mon, 15 Jul 2013 12:52:23 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$Le615FrdumflwTG8Qr5Fu.HDPIaqm8Qkgu6vWDvrHe.yTgjqDw3Ua"], ["updated_at", Mon, 15 Jul 2013 12:52:23 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" = 'test8' 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", Mon, 15 Jul 2013 12:52:23 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 12:52:23 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zTjeUt4dVLyAo7DHznxv' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 12:52:23.181236', "updated_at" = '2013-07-15 12:52:23.181236', "authentication_token" = 'zTjeUt4dVLyAo7DHznxv' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 12:52:23 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:52:23 UTC +00:00], ["user_id", 1]]  (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.2ms) 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.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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)  (1.4ms) 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 ('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-15 07:52: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) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 07:52:23 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.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" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.0ms) 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  (15.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  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 12:52:23 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$7bPRQQjtYa32gHagRNY2Q.8nZ74WCZp6Z3NqHY0zQjdtKWin1eNIG"], ["updated_at", Mon, 15 Jul 2013 12:52:23 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 (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", Mon, 15 Jul 2013 12:52:23 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 12:52:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'uDy12LZmxGqGYyNtJxyH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 12:52:23.381623', "updated_at" = '2013-07-15 12:52:23.381623', "authentication_token" = 'uDy12LZmxGqGYyNtJxyH' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 12:52:23 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:52:23 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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.2ms) 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.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.5ms) 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")  (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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 07:52:23 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@example.com' LIMIT 1  (2.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  (12.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.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 12:52:23 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$jQadq5dpafUQgM.ytiK0weCNXVvt9N6MFztWyU4lTqOkfEKvcX9Ei"], ["updated_at", Mon, 15 Jul 2013 12:52:23 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" = 'test10' 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", Mon, 15 Jul 2013 12:52:23 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 12:52:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VP3zzkszfMsmxMAhfxpa' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-15 12:52:23.561829', "updated_at" = '2013-07-15 12:52:23.561829', "authentication_token" = 'VP3zzkszfMsmxMAhfxpa' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 12:52:23 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:52:23 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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" ("authentication_token")  (1.2ms) 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)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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)   (1.2ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 07:52:23 -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 ('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" = 'user9@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 106ms (Views: 4.5ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 07:52:23 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.8ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 07:52: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)  (2.4ms) 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  (13.7ms) 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.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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", Mon, 15 Jul 2013 12:52:28 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$ZwGqPYlVBXIvmsgTJhuFEu689HF5fqN22cbn1yXzgCOezzWGKwUka"], ["updated_at", Mon, 15 Jul 2013 12:52:28 UTC +00:00]]  (1.8ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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 (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", Mon, 15 Jul 2013 12:52:28 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 12:52:28 UTC +00:00]] Cadenero::V1::Account Load (2.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'e4BqfoEk1AjJn2CrWqCZ' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-15 12:52:28.115872', "updated_at" = '2013-07-15 12:52:28.115872', "authentication_token" = 'e4BqfoEk1AjJn2CrWqCZ' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 12:52:28 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:52:28 UTC +00:00], ["user_id", 1]]  (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", Mon, 15 Jul 2013 12:52:28 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$QypOIjfiqmf3jG.yoOAXAe0IPqV575E4gDjHDBSkdEKV24.mtECYC"], ["updated_at", Mon, 15 Jul 2013 12:52:28 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", Mon, 15 Jul 2013 12:52:28 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$N1wsRqBfvtcTBouH20dXcu8vRWpjG8C.vsfr9bUTVlq56Wm5zNZma"], ["updated_at", Mon, 15 Jul 2013 12:52:28 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", Mon, 15 Jul 2013 12:52:28 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 12:52:28 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yD3qf2sKzHHpzkvMyqSX' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-15 12:52:28.342145', "updated_at" = '2013-07-15 12:52:28.342145', "authentication_token" = 'yD3qf2sKzHHpzkvMyqSX' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.2ms) 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")  (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.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.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.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (2.1ms) 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')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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  (11.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  (3.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  (14.3ms) 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 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)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.3ms) 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  (11.7ms) 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.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.3ms) 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.3ms) 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  (8.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  (16.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 07:52:34 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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", Mon, 15 Jul 2013 12:52:34 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$TnoxrvHSfzqZuW.ISDwQr.o.eSBrbB7asrYVCWwxKSrgrUutQedki"], ["updated_at", Mon, 15 Jul 2013 12:52:34 UTC +00:00]] 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", Mon, 15 Jul 2013 12:52:34 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 12:52:34 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'n9QpwCzeK8paQxcTu32P' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 12:52:34.355084', "updated_at" = '2013-07-15 12:52:34.355084', "authentication_token" = 'n9QpwCzeK8paQxcTu32P' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) 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 12:52:34 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:52:34 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (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" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) 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.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.4ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') 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 Completed 201 Created in 178ms (Views: 2.2ms | ActiveRecord: 40.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (4.3ms) 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  (17.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.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (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 12:52:34 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$VpN4IyPFhZkUtDmk40cgM.CAYjGxJdtXiidpQH8dDarlgECc5ws06"], ["updated_at", Mon, 15 Jul 2013 12:52:34 UTC +00:00]] SQL (6.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", Mon, 15 Jul 2013 12:52:34 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 12:52:34 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wcjxxxKdq7QwanrcEpxW' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 12:52:34.584409', "updated_at" = '2013-07-15 12:52:34.584409', "authentication_token" = 'wcjxxxKdq7QwanrcEpxW' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 07:52:34 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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 115ms (Views: 0.4ms | ActiveRecord: 0.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.8ms) 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  (12.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 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)  (0.3ms) 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  (12.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.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account"}} Completed 422 Unprocessable Entity in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)  (0.4ms) 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  (15.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (3.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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.5ms) BEGIN  (0.8ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (10.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 12:53:46 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$BfnpKzhzvGpnu5NMc2REJeoKLtL6uZod101RWwkVcojrHeEOWYknC"], ["updated_at", Mon, 15 Jul 2013 12:53:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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" = 'test1' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 12:53:46 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 12:53:46 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5iuKfmP6k8z7Z8qXcB4J' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 12:53:46.507722', "updated_at" = '2013-07-15 12:53:46.507722', "authentication_token" = '5iuKfmP6k8z7Z8qXcB4J' WHERE "public"."cadenero_accounts"."id" = 1  (1.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", Mon, 15 Jul 2013 12:53:46 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:53:46 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", Mon, 15 Jul 2013 12:53:46 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$/cqmIwTzyVpX5AOEHASol.YVKbVfaqnEGlRUJELpbWpkxSPpJ2uSK"], ["updated_at", Mon, 15 Jul 2013 12:53:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 12:53:46 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$iMLF.UwD0HHUpoOG7A7eR.Tr7plaXdKJOcR.E62DO4o09g/KNFylq"], ["updated_at", Mon, 15 Jul 2013 12:53:46 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Mon, 15 Jul 2013 12:53:46 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 12:53:46 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QxpgQoxkgZ3nxptCya73' LIMIT 1  (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-15 12:53:46.822588', "updated_at" = '2013-07-15 12:53:46.822588', "authentication_token" = 'QxpgQoxkgZ3nxptCya73' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www"  (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.2ms) 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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.9ms) 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')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (5.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  (11.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (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.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  (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)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (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  (12.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  (0.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.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  (14.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) 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) 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.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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  (0.7ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 12:53:51 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$6qfprTI3se9F9AXvopDB.ulpE7/bVrumwopd3iRv6f3Py.DJU2qMG"], ["updated_at", Mon, 15 Jul 2013 12:53:51 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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" = 'test2' 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", Mon, 15 Jul 2013 12:53:52 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 12:53:52 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6E7rfwPYHwG28cSxGhS9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 12:53:52.033601', "updated_at" = '2013-07-15 12:53:52.033601', "authentication_token" = '6E7rfwPYHwG28cSxGhS9' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 12:53:52 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:53:52 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (3.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" ("authentication_token")  (1.4ms) 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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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)   (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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 07:53:52 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Mon, 15 Jul 2013 12:53:52 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$DONr96L5Jci4VbEsLMnyQ.cCmFiRUkSz4UTqUkJ6anD18bK0gf3AO"], ["updated_at", Mon, 15 Jul 2013 12:53:52 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", Mon, 15 Jul 2013 12:53:52 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:53:52 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (3.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" = 2 Completed 201 Created in 166ms (Views: 40.0ms | ActiveRecord: 7.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 07:53:52 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 14ms (Views: 6.3ms | ActiveRecord: 1.9ms)  (9.9ms) ROLLBACK  (88.0ms) 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  (24.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (1.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", Mon, 15 Jul 2013 12:53:52 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$I19YR13zTn81mKRFeczMGuJnID7wY8gbf6Jrsn0G9d8DVOxiTI7ES"], ["updated_at", Mon, 15 Jul 2013 12:53:52 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 (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", Mon, 15 Jul 2013 12:53:52 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 12:53:52 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XswmPxGPFJbJjyhnHsMZ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 12:53:52.577258', "updated_at" = '2013-07-15 12:53:52.577258', "authentication_token" = 'XswmPxGPFJbJjyhnHsMZ' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 12:53:52 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:53:52 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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")  (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)  (0.8ms) 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")  (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.9ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 07:53:52 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 12:53:52 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$m.cH3eWgMrGfXr0h8IMBXuujCGFmf97kW95WoNJVSfpIP8QVgZLge"], ["updated_at", Mon, 15 Jul 2013 12:53:52 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", 1], ["created_at", Mon, 15 Jul 2013 12:53:52 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:53:52 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 126ms (Views: 5.2ms | ActiveRecord: 3.9ms) Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 07:53:52 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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" = 2 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 17ms (Views: 9.0ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 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" = 'test4' 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", Mon, 15 Jul 2013 12:53:52 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 2], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 12:53:52 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LRmGrG9wx64zGLEz4odG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 2, "created_at" = '2013-07-15 12:53:52.792102', "updated_at" = '2013-07-15 12:53:52.792102', "authentication_token" = 'LRmGrG9wx64zGLEz4odG' WHERE "public"."cadenero_accounts"."id" = 2  (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", Mon, 15 Jul 2013 12:53:52 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:53:52 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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)   (2.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.4ms) 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)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.3ms) 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)   (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 07:53:52 -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 (6.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1  (26.6ms) SAVEPOINT active_record_1 SQL (6.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 12:53:53 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$QEUQ8NUcyzy782KicxRsZO0LlEmEVtPfUJazPgsedYCaBYgE1ImqS"], ["updated_at", Mon, 15 Jul 2013 12:53:53 UTC +00:00]] 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", 2], ["created_at", Mon, 15 Jul 2013 12:53:53 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:53:53 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 198ms (Views: 9.7ms | ActiveRecord: 42.6ms) Cadenero::V1::Account Load (10.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 07:53:53 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (8.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 54ms (Views: 24.3ms | ActiveRecord: 10.9ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 07:53:53 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (5.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 Cadenero::User Load (3.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 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 84ms (Views: 28.0ms | ActiveRecord: 11.8ms)  (8.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.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  (2.7ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 07:53:53 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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 (1.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 12:53:53 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$fNQG3awzXIAnOuv577APVObdXMMDgjxtqOfihHfDHK.ElsX4Lj5N."], ["updated_at", Mon, 15 Jul 2013 12:53:53 UTC +00:00]] 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", Mon, 15 Jul 2013 12:53:53 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 12:53:53 UTC +00:00]] Cadenero::V1::Account Load (7.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xbuLxT2qrUPq6hvDqG1k' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 12:53:53.559837', "updated_at" = '2013-07-15 12:53:53.559837', "authentication_token" = 'xbuLxT2qrUPq6hvDqG1k' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 12:53:53 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:53:53 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test"  (6.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.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)  (5.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.9ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') 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" != 1) LIMIT 1 Completed 201 Created in 306ms (Views: 4.0ms | ActiveRecord: 108.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (5.2ms) ROLLBACK  (2.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  (33.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  (4.8ms) BEGIN  (3.9ms) 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", Mon, 15 Jul 2013 12:53:53 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$Dc5/NwP/KH3XrEjkTVI7Rui.QAJBZgFV/Y/HapqglpnsTUlK6fqCa"], ["updated_at", Mon, 15 Jul 2013 12:53:53 UTC +00:00]] 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", Mon, 15 Jul 2013 12:53:53 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 12:53:53 UTC +00:00]] Cadenero::V1::Account Load (3.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FRvuQh7QExPzwAH5ybGM' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 12:53:53.920348', "updated_at" = '2013-07-15 12:53:53.920348', "authentication_token" = 'FRvuQh7QExPzwAH5ybGM' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 07:53:53 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (1.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 142ms (Views: 0.3ms | ActiveRecord: 1.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.6ms) 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  (37.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (3.8ms) 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 Cadenero::V1::Account Exists (5.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.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  (13.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (4.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 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' 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", Mon, 15 Jul 2013 12:53:54 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$NgrVuSwnGjK0HVXvGYRQ.eCt4sO6kLHlH2Ibw2DKprqlH1M4Y7Ozi"], ["updated_at", Mon, 15 Jul 2013 12:53:54 UTC +00:00]] 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", Mon, 15 Jul 2013 12:53:54 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 12:53:54 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LGx9xWRCHwKsp8e5Bxeu' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 12:53:54.562178', "updated_at" = '2013-07-15 12:53:54.562178', "authentication_token" = 'LGx9xWRCHwKsp8e5Bxeu' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.4ms) 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 12:53:54 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:53:54 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test"  (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.7ms) 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)  (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) 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)  (3.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.3ms) SELECT version FROM "schema_migrations"  (2.2ms) 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::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 LIMIT 1  (10.0ms) ROLLBACK  (2.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  (34.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (3.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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  (25.3ms) 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 (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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.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  (2.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)  (2.9ms) ROLLBACK  (1.4ms) 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  (43.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (6.6ms) 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.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  (16.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.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)  (6.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  (29.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)  (0.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  (26.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.4ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (10.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (3.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" = 101 Completed 200 OK in 20ms (Views: 5.0ms | ActiveRecord: 14.7ms)  (0.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  (17.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (3.2ms) 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  (5.9ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.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 10ms (Views: 8.5ms | ActiveRecord: 1.1ms)  (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  (23.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (4.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  (1.0ms) 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 12:53:56 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$SN4kpu.r.bdNNJIAveCrduw2BQG1HRJHQBNDS.L56lRPGJtYAlfcu"], ["updated_at", Mon, 15 Jul 2013 12:53: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 (3.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", Mon, 15 Jul 2013 12:53:56 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 12:53:56 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wW2K7RmvuAxesKHTciCG' LIMIT 1  (1.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 12:53:56.209059', "updated_at" = '2013-07-15 12:53:56.209059', "authentication_token" = 'wW2K7RmvuAxesKHTciCG' WHERE "public"."cadenero_accounts"."id" = 1  (1.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", Mon, 15 Jul 2013 12:53:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:53:56 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test5"  (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)   (9.9ms) 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.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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.6ms) 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 ('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-15 07:53: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 07:53:56 -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 ('test5') LIMIT 1 Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Cadenero::User Load (4.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 155ms (Views: 4.9ms | ActiveRecord: 7.8ms) Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 07:53:56 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (4.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 4.0ms)  (6.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  (19.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (7.3ms) 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.6ms) 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", Mon, 15 Jul 2013 12:53:56 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$.l2.yMUMIuW896URBP2i6eBognPDAdOPxRQFwr02P5MkMGzhd9D5G"], ["updated_at", Mon, 15 Jul 2013 12:53:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' 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", Mon, 15 Jul 2013 12:53:56 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 12:53:56 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'o4imt8NbbcYZyxnsHZJr' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 12:53:56.822018', "updated_at" = '2013-07-15 12:53:56.822018', "authentication_token" = 'o4imt8NbbcYZyxnsHZJr' WHERE "public"."cadenero_accounts"."id" = 1  (0.5ms) 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", Mon, 15 Jul 2013 12:53:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:53:56 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (8.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.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.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)  (4.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.1ms) 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)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (5.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (1.2ms) 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-15 07:53:56 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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"."email" = 'user6@example.com' LIMIT 1 Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 Cadenero::V1::Account Load (7.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 179ms (Views: 5.2ms | ActiveRecord: 12.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 07:53:57 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 07:53: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)  (5.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  (47.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.1ms) BEGIN  (3.7ms) SAVEPOINT active_record_1 SQL (4.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 12:53:57 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$t9ZtgFSbLOcOb.hCYwnVru/ZOlOnqPGhO/PW5t3S4dW5cFjvwe3Kq"], ["updated_at", Mon, 15 Jul 2013 12:53:57 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", Mon, 15 Jul 2013 12:53:57 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 12:53:57 UTC +00:00]] Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZEuFuE3rBLhDVpsMpzx2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 12:53:57.317229', "updated_at" = '2013-07-15 12:53:57.317229', "authentication_token" = 'ZEuFuE3rBLhDVpsMpzx2' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) 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", Mon, 15 Jul 2013 12:53:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:53:57 UTC +00:00], ["user_id", 1]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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)   (2.2ms) 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.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)  (3.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.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.5ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-15 07:53: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: 1.0ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 07:53: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 ('test7') LIMIT 1 Cadenero::User Load (4.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 19ms (Views: 2.4ms | ActiveRecord: 4.7ms) Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.8ms) 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  (27.7ms) 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.4ms) BEGIN  (15.0ms) SAVEPOINT active_record_1 SQL (6.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 12:53:57 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$bl6PB.lT8t1s7.LlScSqO.POh0X19M2PBZRMg7fmQbVSiLR1fePwq"], ["updated_at", Mon, 15 Jul 2013 12:53:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Mon, 15 Jul 2013 12:53:57 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 12:53:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UsXfJYkU9QUsWxBe3aTY' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 12:53:57.667614', "updated_at" = '2013-07-15 12:53:57.667614', "authentication_token" = 'UsXfJYkU9QUsWxBe3aTY' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 12:53:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:53:57 UTC +00:00], ["user_id", 1]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (1.1ms) CREATE SCHEMA "test8"  (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)   (3.7ms) 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.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.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")  (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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (8.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (1.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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 07:53:57 -0500 Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@example.com' LIMIT 1  (10.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  (19.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.0ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 12:53:57 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$9lK6kf9MjLFiwx3O5HGux.mx0gdZI0pMK.2PIk7aAPZxe1kNEp9bu"], ["updated_at", Mon, 15 Jul 2013 12:53:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) 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 (5.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", Mon, 15 Jul 2013 12:53:57 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 12:53:57 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ernPqZF2mco35FycssM5' LIMIT 1  (1.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 12:53:57.934197', "updated_at" = '2013-07-15 12:53:57.934197', "authentication_token" = 'ernPqZF2mco35FycssM5' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 12:53:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:53:57 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (7.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" ("authentication_token")  (9.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)  (7.5ms) 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.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.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')  (10.9ms) 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 12:53:58 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$DZ51VpITqPSyq8OOwc/lc.SaBtza41a0dJNlgta7UFpbIvVbwcdLG"], ["updated_at", Mon, 15 Jul 2013 12:53:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Mon, 15 Jul 2013 12:53:58 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 2], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 12:53:58 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'szE7tPwQfqXzoRZfnMhw' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 2, "created_at" = '2013-07-15 12:53:58.140062', "updated_at" = '2013-07-15 12:53:58.140062', "authentication_token" = 'szE7tPwQfqXzoRZfnMhw' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Mon, 15 Jul 2013 12:53:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:53:58 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 07:53: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) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 07:53:58 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user10@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 1 AND "public"."cadenero_users"."email" = 'user10@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 19ms (Views: 14.7ms | ActiveRecord: 0.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  (5.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.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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  (1.2ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (2.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 12:53:58 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$tRMzRWzGTSBGXzfsf0./AOrr7ZoPpbz5l0.lojNn7e9l7zPf4D7iS"], ["updated_at", Mon, 15 Jul 2013 12:53:58 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" = 'test11' 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", Mon, 15 Jul 2013 12:53:58 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 12:53:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 's7hhE7rzhDpqpQ3mxupK' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-15 12:53:58.370962', "updated_at" = '2013-07-15 12:53:58.370962', "authentication_token" = 's7hhE7rzhDpqpQ3mxupK' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", Mon, 15 Jul 2013 12:53:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 12:53:58 UTC +00:00], ["user_id", 1]]  (4.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) CREATE SCHEMA "test11"  (12.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)   (13.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.4ms) 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")  (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)   (6.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 ('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-15 07:53: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 07:53:58 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.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  (6.1ms) ROLLBACK  (1.9ms) 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  (34.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (5.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 Connecting to database specified by database.yml Connecting to database specified by database.yml Connecting to database specified by database.yml  (4.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  (15.5ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.8ms) 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  (86.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.3ms) BEGIN  (1.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (15.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 16:11:52 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$aFr31HluPGVptEC1TrMmXOTLQiEdIAG2KYVjfmOLSWjYrcRaUGmg."], ["updated_at", Mon, 15 Jul 2013 16:11:52 UTC +00:00]]  (0.1ms) 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.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", Mon, 15 Jul 2013 16:11:53 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 16:11:53 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7ynE4MSZEyavR5qtrExu' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 16:11:53.014328', "updated_at" = '2013-07-15 16:11:53.014328', "authentication_token" = '7ynE4MSZEyavR5qtrExu' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", Mon, 15 Jul 2013 16:11:53 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:11:53 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", Mon, 15 Jul 2013 16:11:53 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$uj0lOBBZFoyidlTBZfSVc.znpztF/OgDSNDhPJaECN/0FXT/uxvUy"], ["updated_at", Mon, 15 Jul 2013 16:11:53 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", Mon, 15 Jul 2013 16:11:53 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$ykRnr8UqR8qZ7OEluaJxOOmF1hCnQRwrTRBja1KQs5d0MfCjdyn2y"], ["updated_at", Mon, 15 Jul 2013 16:11:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Mon, 15 Jul 2013 16:11:53 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 16:11:53 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'S112PBefPd7yG9y5uPVw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-15 16:11:53.331131', "updated_at" = '2013-07-15 16:11:53.331131', "authentication_token" = 'S112PBefPd7yG9y5uPVw' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.6ms) CREATE SCHEMA "www"  (35.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.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")  (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)   (1.7ms) 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")  (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.2ms) 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 ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (8.0ms) 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  (17.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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  (0.8ms) BEGIN Connecting to database specified by database.yml  (2.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.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  (12.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.2ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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  (11.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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) 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  (24.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.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms)  (1.0ms) 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  (13.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.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.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  (17.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.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (2.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 16:11:57 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$WllmmrZq1Nw2kuBZJCpu3uEhq0C3UsKlVW0nRgMb4kmSt0Csg4OA."], ["updated_at", Mon, 15 Jul 2013 16:11:57 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Mon, 15 Jul 2013 16:11:57 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 16:11:57 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'D976KcuZsoRovxsiDSCh' LIMIT 1  (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 16:11:57.833087', "updated_at" = '2013-07-15 16:11:57.833087', "authentication_token" = 'D976KcuZsoRovxsiDSCh' WHERE "public"."cadenero_accounts"."id" = 1  (2.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 16:11:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:11:57 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (10.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" ("authentication_token")  (1.4ms) 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)   (2.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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)  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:11:57 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 7ms (Views: 0.5ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:11:57 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (1.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 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 194ms (Views: 77.1ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:11:58 -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" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.8ms) 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  (13.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.7ms) BEGIN  (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", Mon, 15 Jul 2013 16:11:58 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$ESyb22qk1vRFXwXq5swa7OBVq9TSoguFPCUPX.D91wFNo2Tnji2q."], ["updated_at", Mon, 15 Jul 2013 16:11:58 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 (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", Mon, 15 Jul 2013 16:11:58 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 16:11:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vCSrx5uhYDiLYqStws9S' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 16:11:58.297200', "updated_at" = '2013-07-15 16:11:58.297200', "authentication_token" = 'vCSrx5uhYDiLYqStws9S' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:11:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:11:58 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (3.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.3ms) 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.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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)  (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.7ms) SELECT version FROM "schema_migrations"  (0.5ms) 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-15 11:11: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 ('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"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 106ms (Views: 4.5ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:11:58 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:11:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.8ms) 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  (15.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.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 16:11:58 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$ibBM5D01nIZzVIGujikPZetQUT7dUGeIzm4Z67Xaa7swQ/Fg1jQDi"], ["updated_at", Mon, 15 Jul 2013 16:11: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" = 'test4' 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", Mon, 15 Jul 2013 16:11:58 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 16:11:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sfukBSHUxWaFDtt8en8b' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 16:11:58.643621', "updated_at" = '2013-07-15 16:11:58.643621', "authentication_token" = 'sfukBSHUxWaFDtt8en8b' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 16:11:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:11:58 UTC +00:00], ["user_id", 1]]  (21.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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)  (5.6ms) 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")  (7.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)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) 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)  (1.9ms) 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"  (1.6ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-15 11:11:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:11:58 -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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') LIMIT 1 Cadenero::User Load (4.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 16ms (Views: 0.4ms | 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' LIMIT 1  (10.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.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.5ms) BEGIN  (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", Mon, 15 Jul 2013 16:11:59 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$zqCNYsji4ChQjMhwuaTH3OyxxZjwuvJdt6BjqskHH2flizXBdeFK."], ["updated_at", Mon, 15 Jul 2013 16:11: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" = 'test5' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 16:11:59 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 16:11:59 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'HnhJGqeCChJYDD4fVnnL' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 16:11:59.057223', "updated_at" = '2013-07-15 16:11:59.057223', "authentication_token" = 'HnhJGqeCChJYDD4fVnnL' WHERE "public"."cadenero_accounts"."id" = 1  (2.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 16:11:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:11:59 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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)  (10.3ms) 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")  (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)   (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (12.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (6.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 ('20130612073709')  (6.8ms) 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-15 11:11: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 11:11: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 ('test5') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 10ms (Views: 0.4ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.9ms) 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  (27.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.4ms) BEGIN  (10.7ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:11:59 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$1qJtW/dSnCyN1MFJGo0mGuji/3R//OklBMisixhEvEPGQpKp.C.DC"], ["updated_at", Mon, 15 Jul 2013 16:11:59 UTC +00:00]]  (1.5ms) RELEASE SAVEPOINT active_record_1  (14.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (7.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (11.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", Mon, 15 Jul 2013 16:11:59 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 16:11:59 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'NCymxJqyTpQpiEcBgsnS' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 16:11:59.443092', "updated_at" = '2013-07-15 16:11:59.443092', "authentication_token" = 'NCymxJqyTpQpiEcBgsnS' WHERE "public"."cadenero_accounts"."id" = 1  (0.8ms) 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", Mon, 15 Jul 2013 16:11:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:11:59 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (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)  (0.8ms) 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")  (7.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)   (4.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:11:59 -0500 Cadenero::V1::Account Load (1.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' LIMIT 1  (5.9ms) ROLLBACK  (0.9ms) 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  (39.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  (2.9ms) BEGIN  (21.7ms) SAVEPOINT active_record_1 SQL (26.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 16:11:59 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$hudjHk/EThQIqp5.grm7G.420XYF/uDfdrYZpWZHktSnwUJ./g8jG"], ["updated_at", Mon, 15 Jul 2013 16:11:59 UTC +00:00]]  (19.8ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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 (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", Mon, 15 Jul 2013 16:11:59 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 16:11:59 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'd38NAxCxx8AQ1GpfrQuN' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 16:11:59.803472', "updated_at" = '2013-07-15 16:11:59.803472', "authentication_token" = 'd38NAxCxx8AQ1GpfrQuN' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 16:11:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:11:59 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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.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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Mon, 15 Jul 2013 16:12:00 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$2977/9axpady8qAOQF7JkuLhsbPQcGEH.RjLShDjPAXMOyNDtu0Oy"], ["updated_at", Mon, 15 Jul 2013 16:12:00 UTC +00:00]]  (5.9ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (9.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", Mon, 15 Jul 2013 16:12:00 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 2], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 16:12:00 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'utJJHpAddQ349sb1LRVM' LIMIT 1  (1.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 2, "created_at" = '2013-07-15 16:12:00.062465', "updated_at" = '2013-07-15 16:12:00.062465', "authentication_token" = 'utJJHpAddQ349sb1LRVM' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (8.0ms) SAVEPOINT active_record_1 SQL (10.6ms) 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 16:12:00 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:12:00 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:12:00 -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 11:12:00 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user9@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.0ms) 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 6ms (Views: 0.3ms | ActiveRecord: 1.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.6ms) ROLLBACK  (4.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  (19.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.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 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.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  (27.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.5ms) 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)  (1.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  (16.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 Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.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 6ms (Views: 4.5ms | ActiveRecord: 1.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  (17.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (9.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 Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.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 6ms (Views: 4.5ms | ActiveRecord: 1.0ms)  (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  (18.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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 Cadenero::V1::Account Exists (6.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.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  (19.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 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.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  (15.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.7ms) 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.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 16:12:01 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$SLykUamoJpbN4ZhWrw0ta.v5dIAuYOcSeEZAvMG9txWpMdOQxng66"], ["updated_at", Mon, 15 Jul 2013 16:12:01 UTC +00:00]] SQL (2.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", Mon, 15 Jul 2013 16:12:01 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 16:12:01 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'BxX6kuVvH3bPRb2NbzLs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 16:12:01.440286', "updated_at" = '2013-07-15 16:12:01.440286', "authentication_token" = 'BxX6kuVvH3bPRb2NbzLs' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.3ms) 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 16:12:01 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:12:01 UTC +00:00], ["user_id", 1]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (4.2ms) 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)  (0.8ms) 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)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.9ms) SELECT version FROM "schema_migrations"  (0.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') 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 LIMIT 1  (6.7ms) ROLLBACK  (11.7ms) 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.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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.3ms) BEGIN Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.3ms) ROLLBACK  (4.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  (17.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.7ms) 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 16:12:01 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$mnsbkPcSpFwDMMura7uMF.2vlZ.UAV0CdJcrxoiBmOJhhKGjR3xTa"], ["updated_at", Mon, 15 Jul 2013 16:12:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Mon, 15 Jul 2013 16:12:01 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 16:12:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wmvNJeegQsJyKdEcxDy8' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 16:12:01.877948', "updated_at" = '2013-07-15 16:12:01.877948', "authentication_token" = 'wmvNJeegQsJyKdEcxDy8' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 16:12:01 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:12:01 UTC +00:00], ["user_id", 1]]  (6.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.7ms) 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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (9.5ms) 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)  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.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 POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:12: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:12:02 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$80uGZs7/XLJP.TcLNXpiz.zzvdaJCwo4PDYD9s/XGqnbFTQRniBv."], ["updated_at", Mon, 15 Jul 2013 16:12: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", Mon, 15 Jul 2013 16:12:02 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:12:02 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 122ms (Views: 5.4ms | ActiveRecord: 3.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/2" for 127.0.0.1 at 2013-07-15 11:12:02 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.0ms | ActiveRecord: 2.1ms)  (3.8ms) 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  (20.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.1ms) 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", Mon, 15 Jul 2013 16:12:02 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$gQsK47ismxw.Nn4CZwuw3eVpsVvJH281TF3reghqvWUWMSJ44YzxW"], ["updated_at", Mon, 15 Jul 2013 16:12:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' 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", Mon, 15 Jul 2013 16:12:02 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 16:12:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'jxeTfznL5u7bNh2zwgDy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-15 16:12:02.391035', "updated_at" = '2013-07-15 16:12:02.391035', "authentication_token" = 'jxeTfznL5u7bNh2zwgDy' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 16:12:02 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:12:02 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (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.1ms) 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")  (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)  (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.3ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:12: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 (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:12:02 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$dkZU51h0oFUg1IJ/fjZ5nu9OF8bcV9JzPm5g.chviksfNQ/CBgV62"], ["updated_at", Mon, 15 Jul 2013 16:12: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", Mon, 15 Jul 2013 16:12:02 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:12:02 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 117ms (Views: 5.7ms | ActiveRecord: 4.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/2" for 127.0.0.1 at 2013-07-15 11:12:02 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."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" = 2 Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 2.2ms)  (2.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  (16.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 11:12:02 -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 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 16:12:02 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$18DKb8DWhPW6KliAJb8Px.sFma6mz/UWNOpPCbI8k2WZu6HefUNZy"], ["updated_at", Mon, 15 Jul 2013 16:12:02 UTC +00:00]] 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", Mon, 15 Jul 2013 16:12:02 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 16:12:02 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1pfpJqABxszhdy6jnxWx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 16:12:02.751944', "updated_at" = '2013-07-15 16:12:02.751944', "authentication_token" = '1pfpJqABxszhdy6jnxWx' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 16:12:02 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:12:02 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (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.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.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)   (3.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.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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1 Completed 201 Created in 178ms (Views: 1.7ms | ActiveRecord: 43.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (5.5ms) 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  (13.7ms) 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  (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 (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 16:12:02 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$ClMZtoUYauaXUqUGTwSeruw13kxQSWoKnMe/Wmi1JWumnJRoBwlEO"], ["updated_at", Mon, 15 Jul 2013 16:12:02 UTC +00:00]] 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", Mon, 15 Jul 2013 16:12:02 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 16:12:02 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'G2Zpe1pewyKh9D3Rwm1p' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 16:12:02.959277', "updated_at" = '2013-07-15 16:12:02.959277', "authentication_token" = 'G2Zpe1pewyKh9D3Rwm1p' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 11:12:02 -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 122ms (Views: 0.3ms | ActiveRecord: 0.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.1ms) ROLLBACK  (0.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.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 Connecting to database specified by database.yml  (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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (12.7ms) 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.8ms) SAVEPOINT active_record_1 SQL (10.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 16:23:39 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$78Pyf40B1W5muAz26dxnI.wTJdjW2NxSZ4prwQznr/reT5c5U22RC"], ["updated_at", Mon, 15 Jul 2013 16:23:39 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" = 'test1' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 16:23:39 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 16:23:39 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GJosm3kjCh4a6uYmwksP' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 16:23:39.220429', "updated_at" = '2013-07-15 16:23:39.220429', "authentication_token" = 'GJosm3kjCh4a6uYmwksP' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:23:39 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:23:39 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (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.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.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)  (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.3ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (3.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (6.2ms) ROLLBACK  (3.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  (33.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (7.2ms) 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.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 16:23:39 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$CSQpiiMRj/tHTI1LcvU.XexU3cD55QkqFL/26nG3wrUVCesvPl4XC"], ["updated_at", Mon, 15 Jul 2013 16:23:39 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" = 'test2' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 16:23:39 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 16:23:39 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FQ3vzvmwzFxWS8t6cLFo' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 16:23:39.620175', "updated_at" = '2013-07-15 16:23:39.620175', "authentication_token" = 'FQ3vzvmwzFxWS8t6cLFo' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (8.0ms) 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 16:23:39 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:23:39 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (8.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.8ms) 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.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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) 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.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"  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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  (15.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.3ms) BEGIN  (1.9ms) SAVEPOINT active_record_1 SQL (3.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:23:39 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$DCqfFT8WMgN/t7NrF7kpLOUIDzFBUMK0sZ18rOtNq1NkUjbak8vGO"], ["updated_at", Mon, 15 Jul 2013 16:23:39 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (8.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (10.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", Mon, 15 Jul 2013 16:23:39 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 16:23:39 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XxypxsZArNDyAftn5pZg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 16:23:39.855796', "updated_at" = '2013-07-15 16:23:39.855796', "authentication_token" = 'XxypxsZArNDyAftn5pZg' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (12.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 16:23:39 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:23:39 UTC +00:00], ["user_id", 1]]  (2.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (9.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.3ms) 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)  (6.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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)   (2.2ms) 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"  (1.8ms) 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-15 11:23:39 -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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:23:40 -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 ('test3') 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" = 'user3@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) 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 137ms (Views: 27.2ms | ActiveRecord: 2.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:23:40 -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" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.6ms) 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.1ms) 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", Mon, 15 Jul 2013 16:23:40 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$8wWxLtlTsTirCjUUxtzphOHpZupsBpMnDUUe..xpQmcmTa7xEEdAq"], ["updated_at", Mon, 15 Jul 2013 16:23:40 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 (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", Mon, 15 Jul 2013 16:23:40 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 16:23:40 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'cd6pCZegitGorUVjyQd2' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 16:23:40.374410', "updated_at" = '2013-07-15 16:23:40.374410', "authentication_token" = 'cd6pCZegitGorUVjyQd2' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.6ms) SAVEPOINT active_record_1 SQL (2.4ms) 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 16:23:40 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:23:40 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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)   (6.3ms) 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")  (6.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)  (1.7ms) 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")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 11:23:40 -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.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" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 112ms (Views: 4.5ms | ActiveRecord: 2.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:23:40 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:23:40 -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.0ms) ROLLBACK  (1.0ms) 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  (19.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.8ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:23:40 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$k22e0EcxsGZaJy3COWReo.rb2x.HAN.LhOi54U69HaEx2ap9iaWLO"], ["updated_at", Mon, 15 Jul 2013 16:23:40 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", Mon, 15 Jul 2013 16:23:40 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 16:23:40 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'a1hDB6dCAaAyarRoetPv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 16:23:40.753108', "updated_at" = '2013-07-15 16:23:40.753108', "authentication_token" = 'a1hDB6dCAaAyarRoetPv' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) 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 16:23:40 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:23:40 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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)   (2.4ms) 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.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.3ms) 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')  (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 16:23:40 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$KWgus8zlKb4klwQPBuxpL.MkNgears95SIKY/SrG/r.g459uzn13."], ["updated_at", Mon, 15 Jul 2013 16:23:40 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' 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", Mon, 15 Jul 2013 16:23:40 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 16:23:40 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'cJMszgNJQDcttsyJKzvT' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 2, "created_at" = '2013-07-15 16:23:40.918416', "updated_at" = '2013-07-15 16:23:40.918416', "authentication_token" = 'cJMszgNJQDcttsyJKzvT' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Mon, 15 Jul 2013 16:23:40 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:23:40 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:23:40 -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 11:23:40 -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.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" = 'user6@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (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  (22.1ms) 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 (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 16:23:41 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$Z5OkpyExcAet2OGXU1kAkuqiV/JF/drQf5umj9wo2ayl55SpFqpnu"], ["updated_at", Mon, 15 Jul 2013 16:23:41 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.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", Mon, 15 Jul 2013 16:23:41 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 16:23:41 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'HzV1aoaFKpV2Gsh8o6fR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 16:23:41.177540', "updated_at" = '2013-07-15 16:23:41.177540', "authentication_token" = 'HzV1aoaFKpV2Gsh8o6fR' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 16:23:41 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:23:41 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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.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")  (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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) 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-15 11:23:41 -0500 Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' LIMIT 1  (5.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  (10.1ms) 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.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", Mon, 15 Jul 2013 16:23:41 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$gN2laQkSGMOkhmDzVqCTWODE9ATL3BKBRfJgPVH5/IEZnskZRdweK"], ["updated_at", Mon, 15 Jul 2013 16:23:41 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" = 'test8' 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", Mon, 15 Jul 2013 16:23:41 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 16:23:41 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8MftoLfzF3trP7pS1JCt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 16:23:41.370752', "updated_at" = '2013-07-15 16:23:41.370752', "authentication_token" = '8MftoLfzF3trP7pS1JCt' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.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", Mon, 15 Jul 2013 16:23:41 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:23:41 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.4ms) 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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:23:41 -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 11:23:41 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.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" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.8ms) ROLLBACK  (1.7ms) 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  (15.3ms) 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", Mon, 15 Jul 2013 16:23:41 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$S71qmNjU9.TMEmUGEkcC6ug58D.84Psf.FmkwJFlpFQbd2R4SrvOq"], ["updated_at", Mon, 15 Jul 2013 16:23:41 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.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", Mon, 15 Jul 2013 16:23:41 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 16:23:41 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Sszk4wv2ciaBMvP9857Q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 16:23:41.635603', "updated_at" = '2013-07-15 16:23:41.635603', "authentication_token" = 'Sszk4wv2ciaBMvP9857Q' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:23:41 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:23:41 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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)   (1.1ms) 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)  (0.9ms) 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")  (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)   (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.2ms) SELECT version FROM "schema_migrations"  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:23:41 -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 11:23:41 -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.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 Completed 422 Unprocessable Entity in 5ms (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  (5.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  (12.2ms) 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.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.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  (13.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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.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)  (2.4ms) ROLLBACK  (1.0ms) 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.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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 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.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  (15.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.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.3ms) 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.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 Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (0.6ms) 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 6ms (Views: 4.5ms | ActiveRecord: 1.1ms)  (0.1ms) 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  (13.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.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (0.6ms) 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 6ms (Views: 4.5ms | ActiveRecord: 1.1ms)  (0.1ms) 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  (13.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.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (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 16:23:45 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$pqW7vfF0BKj/RFZnivzvMuKvEwVww5XStLJCw.MFeuJP40DV7NH4O"], ["updated_at", Mon, 15 Jul 2013 16:23:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 16:23:45 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 16:23:45 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Gkut9VywKbvWyAXX2QtP' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-15 16:23:45.087679', "updated_at" = '2013-07-15 16:23:45.087679', "authentication_token" = 'Gkut9VywKbvWyAXX2QtP' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:23:45 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:23:45 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", Mon, 15 Jul 2013 16:23:45 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$Ls6qvCFwZ/uxwC8Lywvbf.GegHKCeysZ3tt7x9sZ2OAf45K23DCJe"], ["updated_at", Mon, 15 Jul 2013 16:23:45 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", Mon, 15 Jul 2013 16:23:45 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$eAgA5eMONbI9kEsl4zhUNOWG5nSGPIrnPUdoYBMji31RSBBDlMuFO"], ["updated_at", Mon, 15 Jul 2013 16:23:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Mon, 15 Jul 2013 16:23:45 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 16:23:45 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FjQNWi49x25eZDwG7Jxj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-15 16:23:45.296830', "updated_at" = '2013-07-15 16:23:45.296830', "authentication_token" = 'FjQNWi49x25eZDwG7Jxj' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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")  (2.4ms) 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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (3.8ms) 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  (12.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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) 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  (13.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 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)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.3ms) 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  (12.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.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  (12.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.3ms) 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  (13.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 11:23:49 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) 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 16:23:49 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$PEYbCZBaW8TlZxJ0bHjW6u.tCyVX3FkpJCzHHsTwdaracqD03SGYu"], ["updated_at", Mon, 15 Jul 2013 16:23:49 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", Mon, 15 Jul 2013 16:23:49 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 16:23:49 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RJigJKZZv1kJmvRXikrq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 16:23:49.349269', "updated_at" = '2013-07-15 16:23:49.349269', "authentication_token" = 'RJigJKZZv1kJmvRXikrq' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:23:49 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:23:49 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) CREATE SCHEMA "test"  (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" ("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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') 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" != 1) LIMIT 1 Completed 201 Created in 217ms (Views: 2.1ms | ActiveRecord: 34.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (2.6ms) ROLLBACK  (0.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.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.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.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 16:23:49 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$15YqYPDb2TDQh0n6vfCYWOPduFf6pCdCHC/HNvITLs14SZ8HEG.LS"], ["updated_at", Mon, 15 Jul 2013 16:23:49 UTC +00:00]] 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", Mon, 15 Jul 2013 16:23:49 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 16:23:49 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nieqeAw7pdQ5yEAAo4xQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 16:23:49.590399', "updated_at" = '2013-07-15 16:23:49.590399', "authentication_token" = 'nieqeAw7pdQ5yEAAo4xQ' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 11:23:49 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (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 112ms (Views: 0.3ms | ActiveRecord: 0.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.3ms) ROLLBACK  (3.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  (32.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) 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  (11.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  (0.2ms) BEGIN  (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 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 16:23:49 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$5FbPxLf3V5x.PaLoCziIBOEYKK0Wh0iSt5ALzmieFhqdbUW8ulFOm"], ["updated_at", Mon, 15 Jul 2013 16:23:49 UTC +00:00]] 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", Mon, 15 Jul 2013 16:23:49 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 16:23:49 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'n9XdosoE7scxMCypNwkC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 16:23:49.882743', "updated_at" = '2013-07-15 16:23:49.882743', "authentication_token" = 'n9XdosoE7scxMCypNwkC' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 16:23:49 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:23:49 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (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.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)   (1.0ms) 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")  (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)   (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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') 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 LIMIT 1  (3.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  (11.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 Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.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  (19.1ms) 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.6ms) BEGIN Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.2ms) 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  (21.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (1.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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 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)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.4ms) 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  (14.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (1.0ms) 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  (12.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (12.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 16:24:30 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$xUyycmVNpiw9PnE.jRNGnO0oZRue.Sd4nMfAwCgqDp3HvzxIEtZl2"], ["updated_at", Mon, 15 Jul 2013 16:24:30 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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" = 'test1' 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", Mon, 15 Jul 2013 16:24:30 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 16:24:30 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4nJECMyLaDpkgqo8Hi9n' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 16:24:30.777132', "updated_at" = '2013-07-15 16:24:30.777132', "authentication_token" = '4nJECMyLaDpkgqo8Hi9n' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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", Mon, 15 Jul 2013 16:24:30 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:24:30 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", Mon, 15 Jul 2013 16:24:30 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$3OaqqRZgvagZeyELZ9M14.OOU04fMyV7nIy5fDmXYlumhvye8bdPC"], ["updated_at", Mon, 15 Jul 2013 16:24:30 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", Mon, 15 Jul 2013 16:24:31 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$VWvZi9Nw4XLBsM4TaQjqHeX1.XCsHFnAFG3/WKtIZ1ZWrhIQrKod6"], ["updated_at", Mon, 15 Jul 2013 16:24:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Mon, 15 Jul 2013 16:24:31 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 16:24:31 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7DDa5DJvE67nq9WcqEqR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-15 16:24:31.087520', "updated_at" = '2013-07-15 16:24:31.087520', "authentication_token" = '7DDa5DJvE67nq9WcqEqR' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www"  (7.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" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) 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")  (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.2ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (1.0ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (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  (18.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.1ms) BEGIN  (0.9ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.5ms) ROLLBACK  (1.4ms) 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;  (0.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.9ms) BEGIN  (0.9ms) ROLLBACK  (4.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  (21.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  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:24:31 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$XUdzYbbwHncA7oqBK.fI4u4t0g0BIJr/ZiYN4X0tUGdxDoiYA.RMq"], ["updated_at", Mon, 15 Jul 2013 16:24:31 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" = 'test2' 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", Mon, 15 Jul 2013 16:24:31 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 16:24:31 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fpYip7xaQx9SNoubTmms' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 16:24:31.464125', "updated_at" = '2013-07-15 16:24:31.464125', "authentication_token" = 'fpYip7xaQx9SNoubTmms' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 16:24:31 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:24:31 UTC +00:00], ["user_id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.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)   (1.4ms) 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")  (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)  (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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (5.8ms) 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  (19.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  (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 16:24:31 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$SATw./jSEVOnmflsvjH1cuCu9v07M9p26A6osOWeUVMGU8dWduATO"], ["updated_at", Mon, 15 Jul 2013 16:24:31 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 (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", Mon, 15 Jul 2013 16:24:31 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 16:24:31 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qKfpijEVtKQUPYsgkYK5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 16:24:31.687045', "updated_at" = '2013-07-15 16:24:31.687045', "authentication_token" = 'qKfpijEVtKQUPYsgkYK5' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:24:31 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:24:31 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) 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)   (5.9ms) 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.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")  (1.1ms) 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.1ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (5.1ms) 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  (12.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.7ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 11:24:31 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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.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 16:24:31 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$Z9wG2XiasJ71/4KAQ2Hbx.1VT3qOEWtY6xiOhluwd2b4y9fB3v63y"], ["updated_at", Mon, 15 Jul 2013 16:24:31 UTC +00:00]] 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", Mon, 15 Jul 2013 16:24:31 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 16:24:31 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'iq3P4FsrB4BtiH7vByGz' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 16:24:31.935126', "updated_at" = '2013-07-15 16:24:31.935126', "authentication_token" = 'iq3P4FsrB4BtiH7vByGz' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 16:24:31 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:24:31 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (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.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.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.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') 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 Completed 201 Created in 199ms (Views: 3.5ms | ActiveRecord: 37.9ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.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  (15.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) 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 Cadenero::V1::Account Exists (0.4ms) 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 16:24:32 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$J0XFm4zrNUrL/HBYX2sqJOcHaIARRJr6/c5LGh6g35o0PrzcAyxX."], ["updated_at", Mon, 15 Jul 2013 16:24:32 UTC +00:00]] 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", Mon, 15 Jul 2013 16:24:32 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 16:24:32 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5xbNsvdAwpkJVCJqUV24' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 16:24:32.152338', "updated_at" = '2013-07-15 16:24:32.152338', "authentication_token" = '5xbNsvdAwpkJVCJqUV24' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 11:24:32 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 111ms (Views: 0.4ms | ActiveRecord: 0.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.4ms) 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  (15.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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 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.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  (76.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (11.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 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) 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.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  (3.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.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" = 101 Completed 200 OK in 45ms (Views: 43.5ms | ActiveRecord: 1.3ms)  (0.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  (12.6ms) 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.4ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.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 7ms (Views: 5.4ms | ActiveRecord: 1.1ms)  (0.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  (14.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (8.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.7ms) 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 16:24:33 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$UBwBPgtfPMwcPLoSGXc91eOuOkI2I0t83rwphTvjviFi5HhHd87zW"], ["updated_at", Mon, 15 Jul 2013 16:24:33 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.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", Mon, 15 Jul 2013 16:24:33 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 16:24:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5vqz1c1bXxVuBMRzuxEz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 16:24:33.557035', "updated_at" = '2013-07-15 16:24:33.557035', "authentication_token" = '5vqz1c1bXxVuBMRzuxEz' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 1], ["created_at", Mon, 15 Jul 2013 16:24:33 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:24:33 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) CREATE SCHEMA "test4"  (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)  (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")  (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)   (0.9ms) 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")  (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)  (5.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (7.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.8ms) 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-15 11:24:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:24:33 -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 (7.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" = 'user5@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 124ms (Views: 4.4ms | ActiveRecord: 9.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:24:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (5.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  (14.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  (7.0ms) BEGIN  (2.6ms) 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 16:24:33 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$.D4g.Zn/W6y1xMybd64qGeDDiiCwZfVOIliXFZ08EvUlntuGMcdZa"], ["updated_at", Mon, 15 Jul 2013 16:24:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (18.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (13.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", Mon, 15 Jul 2013 16:24:33 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 16:24:33 UTC +00:00]] Cadenero::V1::Account Load (4.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3zqE5bVR3NxoS9ipYz9B' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 16:24:33.981027', "updated_at" = '2013-07-15 16:24:33.981027', "authentication_token" = '3zqE5bVR3NxoS9ipYz9B' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:24:34 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:24:34 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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")  (4.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)   (1.8ms) 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")  (9.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.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.4ms) SELECT version FROM "schema_migrations"  (0.5ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:24:34 -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 (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 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" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 116ms (Views: 4.5ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:24:34 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:24:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (6.4ms) 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  (30.9ms) 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  (1.6ms) BEGIN  (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", Mon, 15 Jul 2013 16:24:34 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$N8p64pM7PxVL5tLTeUU5xe..AzIPFUqdvhwwyE4NZZ0BvIUJVMR5a"], ["updated_at", Mon, 15 Jul 2013 16:24:34 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 (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", Mon, 15 Jul 2013 16:24:34 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 16:24:34 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xr9pbWNpSg2oF1hfUN4L' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 16:24:34.376083', "updated_at" = '2013-07-15 16:24:34.376083', "authentication_token" = 'xr9pbWNpSg2oF1hfUN4L' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 16:24:34 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:24:34 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (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.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (8.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.6ms) 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")  (8.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.5ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:24:34 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user7@example.com' LIMIT 1  (4.5ms) 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  (18.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (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 16:24:34 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$Ld0Bqc1Ghr1fKZ.o8GMggOCI3rbnCmgfuIqeqzB0TKHS9icjt30vS"], ["updated_at", Mon, 15 Jul 2013 16:24:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (5.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (7.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", Mon, 15 Jul 2013 16:24:34 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 16:24:34 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zyW8hdxyGWKLiHsyh3s1' LIMIT 1  (4.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 16:24:34.639246', "updated_at" = '2013-07-15 16:24:34.639246', "authentication_token" = 'zyW8hdxyGWKLiHsyh3s1' WHERE "public"."cadenero_accounts"."id" = 1  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.9ms) 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 16:24:34 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:24:34 UTC +00:00], ["user_id", 1]]  (8.5ms) RELEASE SAVEPOINT active_record_1  (2.7ms) CREATE SCHEMA "test7"  (51.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)  (26.7ms) 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")  (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)   (2.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.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.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 11:24:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:24:34 -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.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 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 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | 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  (5.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  (19.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (1.0ms) SAVEPOINT active_record_1 SQL (2.1ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:24:35 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$284Ese0j19SPZjwRQqhOf.pw64Fgi75dYb2BWx4FEBY1o5SQTnk22"], ["updated_at", Mon, 15 Jul 2013 16:24:35 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Mon, 15 Jul 2013 16:24:35 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 16:24:35 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Ru7ug4CyBw6wGT3qsDHp' LIMIT 1  (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 16:24:35.012822', "updated_at" = '2013-07-15 16:24:35.012822', "authentication_token" = 'Ru7ug4CyBw6wGT3qsDHp' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", 1], ["created_at", Mon, 15 Jul 2013 16:24:35 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:24:35 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (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)  (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.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)   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.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)  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) SAVEPOINT active_record_1 SQL (8.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 16:24:35 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$N8GoeJV5MULW19X//tbX8uMvzhBXx00vQPEMGFfbXzyrEbyHpxOiu"], ["updated_at", Mon, 15 Jul 2013 16:24:35 UTC +00:00]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Mon, 15 Jul 2013 16:24:35 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 2], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 16:24:35 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nygE5yi5epVS26Gr5HTF' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 2, "created_at" = '2013-07-15 16:24:35.195301', "updated_at" = '2013-07-15 16:24:35.195301', "authentication_token" = 'nygE5yi5epVS26Gr5HTF' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Mon, 15 Jul 2013 16:24:35 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:24:35 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:24: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.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:24:35 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user10@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user10@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | 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  (9.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  (14.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.7ms) BEGIN  (0.7ms) 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 16:24:35 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$wWuCvZG9OMinCUfg9deKPuNltenO0HK./n424J6AMUeVOXgusdZEu"], ["updated_at", Mon, 15 Jul 2013 16:24:35 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" = 'test10' 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", Mon, 15 Jul 2013 16:24:35 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 16:24:35 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '81AQEUVtsC8ypUAH4Trx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-15 16:24:35.383896', "updated_at" = '2013-07-15 16:24:35.383896', "authentication_token" = '81AQEUVtsC8ypUAH4Trx' WHERE "public"."cadenero_accounts"."id" = 1  (1.7ms) RELEASE SAVEPOINT active_record_1  (1.3ms) SAVEPOINT active_record_1 SQL (4.0ms) 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 16:24:35 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:24:35 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (10.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)  (3.3ms) 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.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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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-15 11:24: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/sessions" for 127.0.0.1 at 2013-07-15 11:24:35 -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.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 6ms (Views: 0.4ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.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  (16.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 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)  (0.4ms) ROLLBACK  (0.7ms) 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.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (19.1ms) 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  (5.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.2ms) 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  (14.5ms) 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.5ms) 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.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 16:24:35 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$MbO84O1mw8NpnvCZ.uRDUuLI4A0eZOL4T1kj3o17trQJ18N9UvJKK"], ["updated_at", Mon, 15 Jul 2013 16:24:35 UTC +00:00]] SQL (1.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", Mon, 15 Jul 2013 16:24:35 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 16:24:35 UTC +00:00]] Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XUhsPc6P39HXwT5RG8PP' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 16:24:35.775674', "updated_at" = '2013-07-15 16:24:35.775674', "authentication_token" = 'XUhsPc6P39HXwT5RG8PP' WHERE "public"."cadenero_accounts"."id" = 1  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) 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 16:24:35 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:24:35 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.0ms) CREATE SCHEMA "test"  (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)  (1.3ms) 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")  (5.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)   (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) 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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (14.5ms) 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 ('20130612073709')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') 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 LIMIT 1  (3.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  (19.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) 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.3ms) 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.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.4ms) 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 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.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.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 (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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  (16.3ms) 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  (0.7ms) 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  (2.3ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (44.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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 Connecting to database specified by database.yml  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (19.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  (1.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (49.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 16:27:03 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$EzZj2/Y9zXh2dNwr37AK1OeBWsT.ncGNUKheA8LuNnvZnyDiJ2F/u"], ["updated_at", Mon, 15 Jul 2013 16:27:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 16:27:03 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 16:27:03 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9y9xgXjtAX7tsXiTybwo' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 16:27:03.451325', "updated_at" = '2013-07-15 16:27:03.451325', "authentication_token" = '9y9xgXjtAX7tsXiTybwo' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.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 16:27:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:27:03 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) CREATE SCHEMA "test1"  (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)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.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)  (0.8ms) 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")  (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)  (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 ('20130612073709')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:27: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_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 16:27:03 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$uMkRRZeEO2t9cq7RKlU7yuiDr31jLEIxwNRN5l5Ksh8jxvFtglOii"], ["updated_at", Mon, 15 Jul 2013 16:27: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", 1], ["created_at", Mon, 15 Jul 2013 16:27:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:27:03 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 157ms (Views: 39.8ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:27:03 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 4.9ms | ActiveRecord: 1.4ms)  (5.6ms) 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  (24.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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  (0.1ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:27:04 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$0x.eY7pgN7RQaohX5wIK3uJ7edXl9NcYviWnMUAeMiVb3al5UrK6S"], ["updated_at", Mon, 15 Jul 2013 16:27:04 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" = 'test2' 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", Mon, 15 Jul 2013 16:27:04 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 16:27:04 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ipDnKL3bpJM7BsPGsjCA' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 16:27:04.096547', "updated_at" = '2013-07-15 16:27:04.096547', "authentication_token" = 'ipDnKL3bpJM7BsPGsjCA' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.4ms) 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 16:27:04 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:27:04 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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)  (2.3ms) 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.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)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:27: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 (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.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 16:27:04 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$JtVcCh0qmHuBM4MFSnTgAurkz20JDSaXXubPKPY4WVEYKEJzNJ2Ty"], ["updated_at", Mon, 15 Jul 2013 16:27:04 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", Mon, 15 Jul 2013 16:27:04 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:27:04 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 114ms (Views: 5.4ms | 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/2" for 127.0.0.1 at 2013-07-15 11:27:04 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 1.4ms)  (3.4ms) ROLLBACK  (0.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  (14.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.1ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (51.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 16:27:55 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$elnXAmFVD46/3rTrg9tyxurQA3hi/ABLIw8W7/ORPjM.Bo1Vm97qi"], ["updated_at", Mon, 15 Jul 2013 16:27:55 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" = 'test1' 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", Mon, 15 Jul 2013 16:27:55 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 16:27:55 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UuMnmKUmctbvXgUxE6LQ' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 16:27:55.569897', "updated_at" = '2013-07-15 16:27:55.569897', "authentication_token" = 'UuMnmKUmctbvXgUxE6LQ' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) 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 16:27:55 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:27:55 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.9ms) 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")  (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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.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.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 POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:27:55 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:27:55 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$prXNyUtpxrd3tbmkx1Jx.eQPu3ggztwEGHkaAo.5ZJhqlcvvYD9Ru"], ["updated_at", Mon, 15 Jul 2013 16:27:55 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", 1], ["created_at", Mon, 15 Jul 2013 16:27:55 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:27:55 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 149ms (Views: 34.6ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:27:55 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.1ms | ActiveRecord: 1.6ms)  (6.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  (24.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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.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", Mon, 15 Jul 2013 16:27:56 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$SQdAdibgRaMMnC.Hbge0L.XFWNsDsM8IV2nxQEswIttf6SRF4iXbi"], ["updated_at", Mon, 15 Jul 2013 16:27:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Mon, 15 Jul 2013 16:27:56 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 16:27:56 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZuWXqWyzRptvjKxyNgeu' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 16:27:56.188572', "updated_at" = '2013-07-15 16:27:56.188572', "authentication_token" = 'ZuWXqWyzRptvjKxyNgeu' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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 16:27:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:27:56 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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)  (0.9ms) 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.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)   (5.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) 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)  (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.6ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:27: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.3ms) 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 16:27:56 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$axdRwInY4G3XaeiBbnUcD.wLdNW..wBSO3s7C8vEWLDn2Bp85HCqu"], ["updated_at", Mon, 15 Jul 2013 16:27: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", 1], ["created_at", Mon, 15 Jul 2013 16:27:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:27:56 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 128ms (Views: 4.9ms | ActiveRecord: 3.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/2" for 127.0.0.1 at 2013-07-15 11:27:56 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) 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" 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 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 1.3ms)  (5.8ms) 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.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (46.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 16:28:37 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$1dn7zGgvZL2y55RTam.ouuEQ0eOPdrNmHhZgIJFuYzXrIY4Uuo5ay"], ["updated_at", Mon, 15 Jul 2013 16:28:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Mon, 15 Jul 2013 16:28:37 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 16:28:37 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LqiqyCJqN1wrCZ9MQwxx' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 16:28:37.662728', "updated_at" = '2013-07-15 16:28:37.662728', "authentication_token" = 'LqiqyCJqN1wrCZ9MQwxx' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.9ms) 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 16:28:37 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:28:37 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.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.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)  (5.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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")  (1.6ms) SELECT version FROM "schema_migrations"  (0.5ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:28:37 -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 (6.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 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", Mon, 15 Jul 2013 16:28:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$wYQFqSaJo8qJDtQrI88okOtAM3.X1dFrsgg0nQcrJofSgselIt6jy"], ["updated_at", Mon, 15 Jul 2013 16:28: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", 1], ["created_at", Mon, 15 Jul 2013 16:28:38 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:28:38 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 157ms (Views: 36.2ms | ActiveRecord: 9.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:28:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 4.9ms | ActiveRecord: 1.4ms)  (7.1ms) ROLLBACK  (1.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.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (3.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", Mon, 15 Jul 2013 16:28:38 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$CIFteZzkr6lLWhS2pcFppuzbN.YHWqAuIhigmOiu07LUhKOwdMnSi"], ["updated_at", Mon, 15 Jul 2013 16:28:38 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" = 'test2' 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", Mon, 15 Jul 2013 16:28:38 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 16:28:38 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sQ5SXgX9XpDjx6rQPFB3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 16:28:38.296749', "updated_at" = '2013-07-15 16:28:38.296749', "authentication_token" = 'sQ5SXgX9XpDjx6rQPFB3' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 16:28:38 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:28:38 UTC +00:00], ["user_id", 1]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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.6ms) 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")  (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)   (6.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.8ms) 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-15 11:28: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 (2.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.4ms) 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 16:28:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$vhuHtX5OJRERE8HXurpUyOf2jwt/yF0NKNT2Z27hXKtu5Ax0EzlDu"], ["updated_at", Mon, 15 Jul 2013 16:28:38 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", 1], ["created_at", Mon, 15 Jul 2013 16:28:38 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:28:38 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 112ms (Views: 4.9ms | ActiveRecord: 5.2ms) Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:28:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 13ms (Views: 8.5ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Mon, 15 Jul 2013 16:28:38 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 16:28:38 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6ztUWNamw8rzzZZk3sxy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 2, "created_at" = '2013-07-15 16:28:38.511659', "updated_at" = '2013-07-15 16:28:38.511659', "authentication_token" = '6ztUWNamw8rzzZZk3sxy' WHERE "public"."cadenero_accounts"."id" = 2  (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", Mon, 15 Jul 2013 16:28:38 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:28:38 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (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")  (4.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.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.8ms) 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.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (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 POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:28: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" = 'test3' LIMIT 1  (0.1ms) 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", Mon, 15 Jul 2013 16:28:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$/dfPjnyqZ4fJSdj8jTaxleKYgbfci6/rkIhaFSLD2rXDg6iOyI.BG"], ["updated_at", Mon, 15 Jul 2013 16:28:38 UTC +00:00]] SQL (8.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", Mon, 15 Jul 2013 16:28:38 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:28:38 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 121ms (Views: 5.0ms | ActiveRecord: 11.7ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/3" for 127.0.0.1 at 2013-07-15 11:28:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"3"} 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.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" = 2 AND "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 200 OK in 9ms (Views: 4.8ms | ActiveRecord: 1.4ms)  (9.5ms) 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  (19.1ms) 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  (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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (21.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.3ms) 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  (0.2ms) SAVEPOINT active_record_1 SQL (48.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 16:29:37 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$xuAtO2huZbri.9JL4WZpPOjHsuwo9ll2zLilnXOiAoA3F0nuNaUr2"], ["updated_at", Mon, 15 Jul 2013 16:29:37 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Mon, 15 Jul 2013 16:29:37 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 16:29:37 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hXKk6snJ3dyasHCxuySN' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 16:29:37.711636', "updated_at" = '2013-07-15 16:29:37.711636', "authentication_token" = 'hXKk6snJ3dyasHCxuySN' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:29:37 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:29:37 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.3ms) 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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) 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)  (5.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:29:37 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (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 16:29:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$dU0Grj.jw3ldTmHHqB/FNOrPTdnFuJhS5dYB44R5Wmttq4cudyWva"], ["updated_at", Mon, 15 Jul 2013 16:29: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", 1], ["created_at", Mon, 15 Jul 2013 16:29:38 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:29:38 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 150ms (Views: 35.9ms | ActiveRecord: 4.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:29:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 13ms (Views: 6.2ms | ActiveRecord: 2.2ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Mon, 15 Jul 2013 16:29:38 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 16:29:38 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Siopp1N4s6GysNzg3xnL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 2, "created_at" = '2013-07-15 16:29:38.154529', "updated_at" = '2013-07-15 16:29:38.154529', "authentication_token" = 'Siopp1N4s6GysNzg3xnL' WHERE "public"."cadenero_accounts"."id" = 2  (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", Mon, 15 Jul 2013 16:29:38 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:29:38 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (0.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.0ms) 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")  (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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.2ms) SELECT version FROM "schema_migrations"  (0.5ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:29: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" = 'test2' LIMIT 1  (0.7ms) SAVEPOINT active_record_1 SQL (0.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:29:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$j264fjK4ck/x0AGJhJq1s.q0tiuTU0.Xw2HpfnAkyp.gN/mpB5.1m"], ["updated_at", Mon, 15 Jul 2013 16:29:38 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", 2], ["created_at", Mon, 15 Jul 2013 16:29:38 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:29:38 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 111ms (Views: 4.9ms | ActiveRecord: 3.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/users/3" for 127.0.0.1 at 2013-07-15 11:29:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"3"} Cadenero::V1::Account Load (0.2ms) 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" = 2 AND "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 200 OK in 9ms (Views: 5.0ms | ActiveRecord: 1.4ms) Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:29:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 1.4ms)  (7.8ms) 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.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (7.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 16:29:38 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$nAOW8hfy9LzG9idJFrW/G.NMN8OnlHng05NrQRfqV8Ki3/VODqwaq"], ["updated_at", Mon, 15 Jul 2013 16:29:38 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (7.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 16:29:38 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 16:29:38 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qPsUzmSzgtUD4LjPZauU' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 16:29:38.564112', "updated_at" = '2013-07-15 16:29:38.564112', "authentication_token" = 'qPsUzmSzgtUD4LjPZauU' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.9ms) 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 16:29:38 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:29:38 UTC +00:00], ["user_id", 1]]  (3.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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" ("authentication_token")  (1.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("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.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:29: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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.4ms) 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 16:29:38 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$nhiBBEQOIV.mfKaWL8xlh.ZHl3E4owSbkgX5rH1lIhoq.87Y0u0uC"], ["updated_at", Mon, 15 Jul 2013 16:29: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", 1], ["created_at", Mon, 15 Jul 2013 16:29:38 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:29:38 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 112ms (Views: 5.0ms | ActiveRecord: 3.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/2" for 127.0.0.1 at 2013-07-15 11:29:38 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 14ms (Views: 9.4ms | ActiveRecord: 1.5ms)  (8.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  (27.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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 Connecting to database specified by database.yml  (0.7ms) 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  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.3ms) 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 (47.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 16:29:59 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$iYsiwJxPuDL.zhpWzY54Iue2yGXApZuYHaQoPm7p7C9tcyTGh77ou"], ["updated_at", Mon, 15 Jul 2013 16:29:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Mon, 15 Jul 2013 16:29:59 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 16:29:59 UTC +00:00]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yzjsXE5PZHx4QzUDDvu4' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 16:29:59.241492', "updated_at" = '2013-07-15 16:29:59.241492', "authentication_token" = 'yzjsXE5PZHx4QzUDDvu4' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 16:29:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:29:59 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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" ("authentication_token")  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (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.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) 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-15 11:29:59 -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.6ms) 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 16:29:59 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$LdgtBForp1BYNuh5OVdjaejrfqpMmwhZNeHjyShl.QdKcYMuagPiy"], ["updated_at", Mon, 15 Jul 2013 16:29:59 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", 1], ["created_at", Mon, 15 Jul 2013 16:29:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:29:59 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 154ms (Views: 39.9ms | ActiveRecord: 4.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:29:59 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 12ms (Views: 6.4ms | ActiveRecord: 1.7ms)  (14.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  (12.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.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 16:29:59 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$/aoMNQnw.EK2VMmUCdvbnubl8mm/0afWQhI7kRSV195CtfUeQyIi2"], ["updated_at", Mon, 15 Jul 2013 16:29:59 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" = 'test2' 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", Mon, 15 Jul 2013 16:29:59 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 16:29:59 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SMmqAZsDrvjp7tYxCovX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 16:29:59.865464', "updated_at" = '2013-07-15 16:29:59.865464', "authentication_token" = 'SMmqAZsDrvjp7tYxCovX' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) 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 16:29:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:29:59 UTC +00:00], ["user_id", 1]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (7.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)  (6.8ms) 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")  (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)   (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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)  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:29:59 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.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 16:30:00 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$K/Bqwkt67GYQwI.dsKoTdeJTNqPqi8aGK333aU1gJZz9kbaPzqaN2"], ["updated_at", Mon, 15 Jul 2013 16:30:00 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", Mon, 15 Jul 2013 16:30:00 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:30:00 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 175ms (Views: 15.9ms | 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/2" for 127.0.0.1 at 2013-07-15 11:30:00 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (7.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"."id" = 2 LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 26ms (Views: 12.2ms | ActiveRecord: 9.3ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.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", Mon, 15 Jul 2013 16:30:00 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 16:30:00 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1G5Ap8gUUtxi4h8Wz8RA' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 2, "created_at" = '2013-07-15 16:30:00.156986', "updated_at" = '2013-07-15 16:30:00.156986', "authentication_token" = '1G5Ap8gUUtxi4h8Wz8RA' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["created_at", Mon, 15 Jul 2013 16:30:00 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:30:00 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test3"  (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)  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) 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)   (2.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")  (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.1ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:30:00 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:30:00 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$RldzAEc6O6a7XIT0zlIg1uv7c6TtX8cOjwt2AWYi2V.3wtbQA95Kq"], ["updated_at", Mon, 15 Jul 2013 16:30:00 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", 2], ["created_at", Mon, 15 Jul 2013 16:30:00 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:30:00 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 141ms (Views: 7.8ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/3" for 127.0.0.1 at 2013-07-15 11:30:00 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"3"} 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.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" = 2 AND "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 200 OK in 14ms (Views: 7.6ms | ActiveRecord: 2.9ms) Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:30:00 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.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" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 19ms (Views: 5.6ms | ActiveRecord: 2.4ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 11:30:00 -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" = '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" = 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 21ms (Views: 15.7ms | ActiveRecord: 2.9ms)  (22.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  (49.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (7.2ms) 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  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (19.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.1ms) BEGIN  (4.3ms) SAVEPOINT active_record_1 SQL (11.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 16:30:14 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$RbJDdxuHnDa91M5oc2RWtu0/zMqcfDWqskkjLUI7ZL5HjoBYFaXle"], ["updated_at", Mon, 15 Jul 2013 16:30:14 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Mon, 15 Jul 2013 16:30:14 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 16:30:14 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'E9qsJzaCSwAf1xnhgqP6' LIMIT 1  (2.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 16:30:14.833441', "updated_at" = '2013-07-15 16:30:14.833441', "authentication_token" = 'E9qsJzaCSwAf1xnhgqP6' WHERE "public"."cadenero_accounts"."id" = 1  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (3.9ms) 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 16:30:14 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:30:14 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (12.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.4ms) 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.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)  (0.7ms) 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")  (12.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.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:30:15 -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 (9.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", Mon, 15 Jul 2013 16:30:15 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$jQ2ChDmtNPjUd3ksQsR5gunDfnMgETbX522OyMRSy24wB4WeuI7t2"], ["updated_at", Mon, 15 Jul 2013 16:30:15 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", 1], ["created_at", Mon, 15 Jul 2013 16:30:15 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:30:15 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 214ms (Views: 42.5ms | ActiveRecord: 14.0ms) 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/2" for 127.0.0.1 at 2013-07-15 11:30:15 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 12ms (Views: 5.7ms | ActiveRecord: 1.6ms)  (7.2ms) 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  (19.3ms) 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.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 16:30:15 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$EiePd.6iL7Qde2A1WcPWPel7pSKUr7xXZiB5QEEzTtWJutpqywknW"], ["updated_at", Mon, 15 Jul 2013 16:30:15 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" = 'test2' 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", Mon, 15 Jul 2013 16:30:15 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 16:30:15 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GBFP6H5EcXxF3C3nzqai' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 16:30:15.509310', "updated_at" = '2013-07-15 16:30:15.509310', "authentication_token" = 'GBFP6H5EcXxF3C3nzqai' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:30:15 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:30:15 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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.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.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)   (7.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) 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)  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (0.6ms) 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') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:30:15 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:30:15 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$7Oi9bGRp7KY.p1/0ldH6.Od8nXRgHxRdJuc1/5D2MDKjB/cnBXTLe"], ["updated_at", Mon, 15 Jul 2013 16:30:15 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", 1], ["created_at", Mon, 15 Jul 2013 16:30:15 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:30:15 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 109ms (Views: 4.7ms | 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 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:30:15 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."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" = 2 Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 2.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.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Mon, 15 Jul 2013 16:30:15 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 16:30:15 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nVMw2sbXmqoE5qtfoFHa' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 2, "created_at" = '2013-07-15 16:30:15.721595', "updated_at" = '2013-07-15 16:30:15.721595', "authentication_token" = 'nVMw2sbXmqoE5qtfoFHa' WHERE "public"."cadenero_accounts"."id" = 2  (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", Mon, 15 Jul 2013 16:30:15 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:30:15 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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.9ms) 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.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)   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (10.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (8.9ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:30:15 -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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.7ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:30:15 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$cv9aRSTgpE/sKTqL7oxAFOKyrjVygH36r5Ro3n.qz9Q/y1SrlzuT."], ["updated_at", Mon, 15 Jul 2013 16:30:15 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", 2], ["created_at", Mon, 15 Jul 2013 16:30:15 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:30:15 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 119ms (Views: 4.9ms | 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/3" for 127.0.0.1 at 2013-07-15 11:30:15 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"3"} 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" = 2 AND "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 200 OK in 10ms (Views: 5.1ms | ActiveRecord: 1.5ms) Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:30:15 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 2 LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 12ms (Views: 5.3ms | ActiveRecord: 1.7ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 11:30:15 -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" = '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" = 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 16ms (Views: 11.4ms | ActiveRecord: 2.7ms)  (9.9ms) 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  (14.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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.2ms) BEGIN  (1.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (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 16:30:18 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$DJQSKpHBs3wogsSFpZdCIuDlKocUPRlkth.dDxbXBznlil6z89pd."], ["updated_at", Mon, 15 Jul 2013 16:30:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 16:30:18 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 16:30:18 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eVjWwqM8aMDuUpTYX88F' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 16:30:18.972789', "updated_at" = '2013-07-15 16:30:18.972789', "authentication_token" = 'eVjWwqM8aMDuUpTYX88F' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:30:18 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:30:18 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", Mon, 15 Jul 2013 16:30:19 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$UWXwcj1lL6RVbwgtadAG0OQdKeceGEyfFebzNUID2XEBN.ErFdcxq"], ["updated_at", Mon, 15 Jul 2013 16:30:19 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", Mon, 15 Jul 2013 16:30:19 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$sf6PN69PbW2CgxAFjzmKbO8/b3mI3SBARIyPmLvA71BlWBBky6Yym"], ["updated_at", Mon, 15 Jul 2013 16:30:19 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Mon, 15 Jul 2013 16:30:19 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 16:30:19 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QuN1kafWcTNzYwysurMB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-15 16:30:19.185700', "updated_at" = '2013-07-15 16:30:19.185700', "authentication_token" = 'QuN1kafWcTNzYwysurMB' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.0ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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")  (1.3ms) SELECT version FROM "schema_migrations"  (0.5ms) 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')  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (6.9ms) 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  (21.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.8ms) BEGIN  (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  (20.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 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)  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.3ms) 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  (14.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.8ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.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  (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  (0.1ms) BEGIN  (0.8ms) 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.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.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 11:30: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}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:30:23 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$O74/ADcr5UP0OygGl0rQQ.i3jEEb2sSxRk8YXY8nAry3EulZ9iRHG"], ["updated_at", Mon, 15 Jul 2013 16:30:23 UTC +00:00]] SQL (1.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", Mon, 15 Jul 2013 16:30:23 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 16:30:23 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'AZ2sMHSzA4DjyzuSzdNm' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 16:30:23.605335', "updated_at" = '2013-07-15 16:30:23.605335', "authentication_token" = 'AZ2sMHSzA4DjyzuSzdNm' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) 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 16:30:23 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:30:23 UTC +00:00], ["user_id", 1]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test"  (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.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")  (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)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("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)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.8ms) 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') Cadenero::V1::Account Exists (8.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1 Completed 201 Created in 230ms (Views: 4.4ms | ActiveRecord: 63.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (7.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.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) 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 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 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", Mon, 15 Jul 2013 16:30:23 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$c0Xh9uLfIzMnddsUBS.Wn./ovCtV/F0EwCWq59AkIjzLRHhXsmO8a"], ["updated_at", Mon, 15 Jul 2013 16:30:23 UTC +00:00]] SQL (4.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", Mon, 15 Jul 2013 16:30:23 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 16:30:23 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'NGqoAQG7YtsucxVMEnNN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 16:30:23.879648', "updated_at" = '2013-07-15 16:30:23.879648', "authentication_token" = 'NGqoAQG7YtsucxVMEnNN' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 11:30: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}  (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.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 131ms (Views: 0.3ms | ActiveRecord: 0.6ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.3ms) 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.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.4ms) 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  (11.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) 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.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)  (9.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  (14.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (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 16:30:24 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$xy5De8mnL.er9zLvonK6Bu9WcOqOFeu04KuBIVeb2lMSNzX2/1BRe"], ["updated_at", Mon, 15 Jul 2013 16:30:24 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.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", Mon, 15 Jul 2013 16:30:24 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 16:30:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'siirb4AHnBpscnuQHWiP' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 16:30:24.246425', "updated_at" = '2013-07-15 16:30:24.246425', "authentication_token" = 'siirb4AHnBpscnuQHWiP' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:30:24 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:30:24 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test5"  (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.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 11:30: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 11:30:24 -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.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 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 119ms (Views: 5.0ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:30:24 -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" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.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  (16.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.6ms) SAVEPOINT active_record_1 SQL (4.3ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:30:24 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$P6tGpIWC9BlIHOPM/MLNne1jbDYRSYrEcdmspQkctgfkFvkOupkYu"], ["updated_at", Mon, 15 Jul 2013 16:30:24 UTC +00:00]]  (0.5ms) 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.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", Mon, 15 Jul 2013 16:30:24 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 16:30:24 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LmN8cd6fJyHzG4LqkfTk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 16:30:24.709486', "updated_at" = '2013-07-15 16:30:24.709486', "authentication_token" = 'LmN8cd6fJyHzG4LqkfTk' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:30:24 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:30:24 UTC +00:00], ["user_id", 1]]  (7.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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)  (3.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (11.6ms) 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")  (6.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)  (6.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (7.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:30:24 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Cadenero::User Load (34.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (10.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 Cadenero::V1::Account Load (7.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1 Completed 201 Created in 242ms (Views: 5.5ms | ActiveRecord: 54.8ms) Cadenero::V1::Account Load (5.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user6@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:30:25 -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 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:30:25 -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 3ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (11.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  (54.3ms) 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 (5.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 16:30:25 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$8.i0nYiE09qzK1LJJOlIlebO9VrX.Owy39vhl4dnnTxSk1wcm.Fr6"], ["updated_at", Mon, 15 Jul 2013 16:30:25 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.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", Mon, 15 Jul 2013 16:30:25 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 16:30:25 UTC +00:00]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Bubs5xfTsxXSYY6iYUHb' LIMIT 1  (5.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 16:30:25.396121', "updated_at" = '2013-07-15 16:30:25.396121', "authentication_token" = 'Bubs5xfTsxXSYY6iYUHb' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:30:25 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:30:25 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (12.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)  (9.3ms) 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)   (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (9.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (16.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)   (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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (11.2ms) SAVEPOINT active_record_1 SQL (5.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 16:30:25 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$PtSIi5HR4k2lb11irYTI..e/EIFPsTsNbnmLr2.zrFoqBLo0TwpkO"], ["updated_at", Mon, 15 Jul 2013 16:30:25 UTC +00:00]]  (11.6ms) RELEASE SAVEPOINT active_record_1  (29.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (4.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", Mon, 15 Jul 2013 16:30:25 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 2], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 16:30:25 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'KJyA6QS59pXcjkY4qZus' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 2, "created_at" = '2013-07-15 16:30:25.827815', "updated_at" = '2013-07-15 16:30:25.827815', "authentication_token" = 'KJyA6QS59pXcjkY4qZus' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["created_at", Mon, 15 Jul 2013 16:30:25 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:30:25 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:30:25 -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 11:30:25 -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 ('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" = 'user8@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (12.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  (15.1ms) 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  (3.7ms) BEGIN  (4.9ms) 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 16:30:26 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$x7JIvFfytVmuHfuWlgYthebAXKwZsVwrc09Vw54FZb1hquZ6qVgBy"], ["updated_at", Mon, 15 Jul 2013 16:30:26 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 (8.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", Mon, 15 Jul 2013 16:30:26 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 16:30:26 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RDsfWbBcm9Y9aE7DyaD8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 16:30:26.123150', "updated_at" = '2013-07-15 16:30:26.123150', "authentication_token" = 'RDsfWbBcm9Y9aE7DyaD8' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 16:30:26 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:30:26 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (15.2ms) CREATE SCHEMA "test9"  (20.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)  (22.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (18.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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")  (3.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (22.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)   (9.3ms) 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 ('20130612073709')  (5.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:30:26 -0500 Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@example.com' LIMIT 1  (9.7ms) ROLLBACK  (1.4ms) 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.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (0.2ms) SAVEPOINT active_record_1 SQL (7.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 16:30:26 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$.t4PVBFhurlCN.G.CJVix.N.1ft7eUlHI71KIoELSHmMEYwMI1Gpa"], ["updated_at", Mon, 15 Jul 2013 16:30:26 UTC +00:00]]  (0.3ms) 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 (1.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", Mon, 15 Jul 2013 16:30:26 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 16:30:26 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'M2ftFhkW6GqzoJDnfTnL' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-15 16:30:26.559383', "updated_at" = '2013-07-15 16:30:26.559383', "authentication_token" = 'M2ftFhkW6GqzoJDnfTnL' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 16:30:26 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:30:26 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (11.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.9ms) 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.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)   (2.2ms) 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")  (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)  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.8ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:30:26 -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 11:30:26 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (4.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 Cadenero::User Load (10.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" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 19ms (Views: 0.4ms | ActiveRecord: 14.4ms) Cadenero::V1::Account Load (10.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (8.5ms) ROLLBACK  (0.4ms) 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  (24.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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.6ms) BEGIN  (2.5ms) 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", Mon, 15 Jul 2013 16:30:26 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$DlRvUxb3.jEaOyesEr.Shee2XSWdcB5qElPH6e2r0bFJeTzDICeDO"], ["updated_at", Mon, 15 Jul 2013 16:30:26 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 16:30:26 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 16:30:26 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ocqUyCzqVJczoCfvWVZD' LIMIT 1  (2.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-15 16:30:26.896883', "updated_at" = '2013-07-15 16:30:26.896883', "authentication_token" = 'ocqUyCzqVJczoCfvWVZD' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.3ms) 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 16:30:26 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:30:26 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (9.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.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")  (22.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)   (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (18.6ms) 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)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (2.7ms) 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-15 11:30:27 -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 11:30:27 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.8ms) 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" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 12ms (Views: 0.4ms | ActiveRecord: 2.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.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  (24.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  (1.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 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.6ms) 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  (19.3ms) 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.3ms) 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)  (2.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  (22.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.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 6ms (Views: 4.8ms | ActiveRecord: 1.0ms)  (0.2ms) ROLLBACK  (1.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  (18.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  (3.5ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (4.2ms) 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 10ms (Views: 5.0ms | ActiveRecord: 4.7ms)  (0.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  (18.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (1.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  (31.1ms) 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  (2.8ms) 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.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 16:30:28 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Jn7vkuV12Qzn3uSG.dn2TePmEfqZi5ZAGlFGsPb9B5g.IRO.w9n7i"], ["updated_at", Mon, 15 Jul 2013 16:30:28 UTC +00:00]] SQL (1.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", Mon, 15 Jul 2013 16:30:28 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 16:30:28 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DtoJypq16h1pTixRrBSj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 16:30:28.144123', "updated_at" = '2013-07-15 16:30:28.144123', "authentication_token" = 'DtoJypq16h1pTixRrBSj' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 1], ["created_at", Mon, 15 Jul 2013 16:30:28 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:30:28 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (11.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)  (8.2ms) 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")  (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)   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (11.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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (7.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) 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::User Load (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 LIMIT 1  (12.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  (31.0ms) 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 Cadenero::V1::Account Exists (2.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (1.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  (14.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (6.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 Cadenero::V1::Account Exists (1.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (1.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  (23.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 Connecting to database specified by database.yml  (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  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (17.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (46.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 16:40:10 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$SfcLM0XFMZXL.KiPIl5COOnOv2usGoF9OHzL5lWg0d.IoJm5LV.YO"], ["updated_at", Mon, 15 Jul 2013 16:40:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Mon, 15 Jul 2013 16:40:10 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 16:40:10 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5eEoqSssesEcb3K8G9DC' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 16:40:10.383273', "updated_at" = '2013-07-15 16:40:10.383273', "authentication_token" = '5eEoqSssesEcb3K8G9DC' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:40:10 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:40:10 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (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)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.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)   (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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.2ms) 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-15 11:40: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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:40:10 -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 (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" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.4ms) 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 141ms (Views: 29.0ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:40:10 -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" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (8.0ms) 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  (24.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) 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.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 16:40:10 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$Ra6Y7ujkXEjFXxgSXZARuuI6Dm5z/a0wd6aYlOvMb4xD1ZMXOoDZq"], ["updated_at", Mon, 15 Jul 2013 16:40:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (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", Mon, 15 Jul 2013 16:40:10 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 16:40:10 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8uxoH5TJ3Egu89xQYi8y' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 16:40:10.997153', "updated_at" = '2013-07-15 16:40:10.997153', "authentication_token" = '8uxoH5TJ3Egu89xQYi8y' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 16:40:11 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:40:11 UTC +00:00], ["user_id", 1]]  (2.4ms) RELEASE SAVEPOINT active_record_1  (0.7ms) CREATE SCHEMA "test2"  (8.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)   (2.2ms) 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.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)  (5.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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)  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) 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-15 11:40:11 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.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" = 'user2@example.com' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 109ms (Views: 4.5ms | ActiveRecord: 2.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:40:11 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:40:11 -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.4ms) ROLLBACK  (0.4ms) 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.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.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 16:40:11 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$xgYTnOI/DCvWFq3uphWoceSZ4.vSRB6BXi/i0NzZZ.HKi4oJ0le6."], ["updated_at", Mon, 15 Jul 2013 16:40:11 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 (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", Mon, 15 Jul 2013 16:40:11 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 16:40:11 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5yocbswksxpQKxQVKVNd' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 16:40:11.374038', "updated_at" = '2013-07-15 16:40:11.374038', "authentication_token" = '5yocbswksxpQKxQVKVNd' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.4ms) 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 16:40:11 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:40:11 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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)   (2.5ms) 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")  (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)  (3.8ms) 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")  (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)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:40:11 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (5.3ms) 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  (27.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (0.6ms) 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 16:40:11 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$dC737RuxCdkJHCJWLYDWr.oImAeIyd.LOswIiaNo5uzQJLsfUh/Sq"], ["updated_at", Mon, 15 Jul 2013 16:40:11 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.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", Mon, 15 Jul 2013 16:40:11 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 16:40:11 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'phD3TyRFVzin1Esyvbq2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 16:40:11.660023', "updated_at" = '2013-07-15 16:40:11.660023', "authentication_token" = 'phD3TyRFVzin1Esyvbq2' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 16:40:11 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:40:11 UTC +00:00], ["user_id", 1]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (7.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (5.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.1ms) 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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.4ms) 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 ('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-15 11:40:11 -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 11:40:11 -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 ('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"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.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  (20.2ms) 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  (11.7ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 SQL (14.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 16:40:11 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$K584/7ARaRQbACWWdwOGaO24/zuUGyX0RlGrGhQivVN4Cjm6U2N6G"], ["updated_at", Mon, 15 Jul 2013 16:40:11 UTC +00:00]]  (5.6ms) RELEASE SAVEPOINT active_record_1  (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" = 'test5' 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", Mon, 15 Jul 2013 16:40:12 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 16:40:12 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7nzmevYaTskfnA4LtQ2s' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 16:40:12.010572', "updated_at" = '2013-07-15 16:40:12.010572', "authentication_token" = '7nzmevYaTskfnA4LtQ2s' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 16:40:12 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:40:12 UTC +00:00], ["user_id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (25.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)  (4.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)   (3.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Mon, 15 Jul 2013 16:40:12 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$qvVhPbt6DcORETEnV541huR.CDAi90vbRh.s3C0DdHEV6khTNHTQm"], ["updated_at", Mon, 15 Jul 2013 16:40: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" = '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", Mon, 15 Jul 2013 16:40:12 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 16:40:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'prq6FCXE6Qm9xDDxoLMt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 2, "created_at" = '2013-07-15 16:40:12.243085', "updated_at" = '2013-07-15 16:40:12.243085', "authentication_token" = 'prq6FCXE6Qm9xDDxoLMt' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Mon, 15 Jul 2013 16:40:12 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:40:12 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:40:12 -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 11:40:12 -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.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" = 'user6@example.com' LIMIT 1 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' LIMIT 1  (5.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  (14.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  (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", Mon, 15 Jul 2013 16:40:12 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$kRTXi6h7GqHe6OB2T6gDpOLTtS.sR42RBIxDdlnoZ.hGElkPL0OkO"], ["updated_at", Mon, 15 Jul 2013 16:40:12 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.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", Mon, 15 Jul 2013 16:40:12 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 16:40:12 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'u2eQD6VsEeMyfyN9gw9n' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 16:40:12.509150', "updated_at" = '2013-07-15 16:40:12.509150', "authentication_token" = 'u2eQD6VsEeMyfyN9gw9n' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 16:40:12 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:40:12 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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.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")  (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)   (0.9ms) 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")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 11:40:12 -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 11:40:12 -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 ('test7') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.4ms) ROLLBACK  (0.7ms) 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  (12.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.9ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (3.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 16:40:12 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$PpWqDKPYUNWFDSJgGzVomOMA1Teo3t7J0i7p/zLXDH2bwwDOs.cTK"], ["updated_at", Mon, 15 Jul 2013 16:40:12 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Mon, 15 Jul 2013 16:40:12 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 16:40:12 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EuRyu2GCbKxEqsqkHkvv' LIMIT 1  (1.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 16:40:12.714671', "updated_at" = '2013-07-15 16:40:12.714671', "authentication_token" = 'EuRyu2GCbKxEqsqkHkvv' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 16:40:12 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:40:12 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test8"  (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.3ms) 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.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)   (1.7ms) 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")  (5.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.6ms) 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 ('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-15 11:40:12 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@example.com' LIMIT 1  (3.2ms) 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  (14.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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  (0.9ms) 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  (2.1ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (46.7ms) 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 (52.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 16:41:04 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$3FHAMoOHJXVvBRyeE9WruOPhL6NVGRoL1ucVXNZrMHe48OHc9KkGa"], ["updated_at", Mon, 15 Jul 2013 16:41:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Mon, 15 Jul 2013 16:41:04 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 16:41:04 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xhVCp7BtccCou7kYcEZB' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 16:41:04.800637', "updated_at" = '2013-07-15 16:41:04.800637', "authentication_token" = 'xhVCp7BtccCou7kYcEZB' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.5ms) 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", Mon, 15 Jul 2013 16:41:04 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:41:04 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (1.8ms) CREATE SCHEMA "test1"  (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)   (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")  (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)  (4.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")  (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.4ms) 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 ('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-15 11:41:05 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (0.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" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 158ms (Views: 37.0ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:41:05 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:41:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (3.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  (15.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  (2.0ms) BEGIN  (2.7ms) SAVEPOINT active_record_1 SQL (5.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:41:05 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$3cFI.dXS.oWYxIOg/A1NpeYgCSAhQpEV/0RGCBKvAHF.Xpy81hWjq"], ["updated_at", Mon, 15 Jul 2013 16:41:05 UTC +00:00]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Mon, 15 Jul 2013 16:41:05 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 16:41:05 UTC +00:00]] Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zSpus65pbveLKRxKWhFY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 16:41:05.435447', "updated_at" = '2013-07-15 16:41:05.435447', "authentication_token" = 'zSpus65pbveLKRxKWhFY' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:41:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:41:05 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.3ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:41:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:41:05 -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" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:41:05 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$.mHVW/DKu884AQ1xtzfj/.ua42SVCol0/f9TG7esdvn2UddqiW1dy"], ["updated_at", Mon, 15 Jul 2013 16:41:05 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", 1], ["created_at", Mon, 15 Jul 2013 16:41:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:41:05 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 113ms (Views: 5.1ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:41:05 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 1.4ms) 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 11:41:05 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>"{\"user\":{\"created_at\":\"2013-07-15T16:41:05Z\",\"email\":\"user_second@example.com\",\"id\":2,\"password_digest\":\"$2a$10$.mHVW/DKu884AQ1xtzfj/.ua42SVCol0/f9TG7esdvn2UddqiW1dy\",\"updated_at\":\"2013-07-15T16:41:05Z\"}}", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (2.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" = 2 Completed 201 Created in 8ms (Views: 4.3ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:41:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (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  (38.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (1.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 16:41:05 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$cAKHIWUidumhPWq9j0LxcOzCuGb7UJunQIAjK.VVouiY1Y2V93YR2"], ["updated_at", Mon, 15 Jul 2013 16:41:05 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 (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", Mon, 15 Jul 2013 16:41:05 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 16:41:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mDiZWaXu1Rr2cQDyzMcx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 16:41:05.881744', "updated_at" = '2013-07-15 16:41:05.881744', "authentication_token" = 'mDiZWaXu1Rr2cQDyzMcx' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:41:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:41:05 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.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")  (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)   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.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 ('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-15 11:41:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:41:05 -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 ('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 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 110ms (Views: 4.5ms | ActiveRecord: 2.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:41:06 -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" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (9.6ms) 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  (12.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.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 16:41:06 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$aojMC094nKnB7psqS.Nr8uXRnKEzgwIejhRBr5194z6ij6AbvIg6W"], ["updated_at", Mon, 15 Jul 2013 16:41:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 16:41:06 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 16:41:06 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'F8Ax5CVyyq7zqqxaGmwx' LIMIT 1  (10.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 16:41:06.284645', "updated_at" = '2013-07-15 16:41:06.284645', "authentication_token" = 'F8Ax5CVyyq7zqqxaGmwx' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) 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", Mon, 15 Jul 2013 16:41:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:41:06 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (8.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.5ms) 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")  (5.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)   (4.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (6.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.4ms) SELECT version FROM "schema_migrations"  (2.2ms) 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-15 11:41:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:41:06 -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 ('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"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.3ms) ROLLBACK  (4.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  (27.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (1.7ms) 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 16:41:06 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$h/JceK/oWKiSCy0w63EULOFFPD0Sp1ZBTJlcEC5EJ2hzuAty4wTKS"], ["updated_at", Mon, 15 Jul 2013 16:41:06 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 (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", Mon, 15 Jul 2013 16:41:06 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 16:41:06 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'W7eMdEy1jt5dJtMZ4PgY' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 16:41:06.562457', "updated_at" = '2013-07-15 16:41:06.562457', "authentication_token" = 'W7eMdEy1jt5dJtMZ4PgY' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 16:41:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:41:06 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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)  (2.0ms) 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")  (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)   (2.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.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)  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (6.3ms) SELECT version FROM "schema_migrations"  (4.0ms) 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')  (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", Mon, 15 Jul 2013 16:41:06 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$g6URWa.DWg/9sNqdMeDeWugxFm.YDAbmy7XELRb1vTsYWYZmy3v6G"], ["updated_at", Mon, 15 Jul 2013 16:41:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Mon, 15 Jul 2013 16:41:06 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 16:41:06 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'L9pHnZdEADvozc6notCG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 2, "created_at" = '2013-07-15 16:41:06.761323', "updated_at" = '2013-07-15 16:41:06.761323', "authentication_token" = 'L9pHnZdEADvozc6notCG' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Mon, 15 Jul 2013 16:41:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:41:06 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:41:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:41:06 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 1 AND "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 4ms (Views: 0.3ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.7ms) 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  (17.1ms) 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.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 16:41:06 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$CJTJ/CvM.zBOwgf.P.zX7uFVAEG5zZ9.Kgn5xeg8LdZFVVTg.xtLC"], ["updated_at", Mon, 15 Jul 2013 16:41:06 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.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", Mon, 15 Jul 2013 16:41:06 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 16:41:06 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fZWsaNxUKZfx4o4xcqze' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 16:41:06.918635', "updated_at" = '2013-07-15 16:41:06.918635', "authentication_token" = 'fZWsaNxUKZfx4o4xcqze' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 16:41:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:41:06 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test7"  (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)  (4.2ms) 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.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)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) 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)   (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 ('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-15 11:41:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:41:06 -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.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 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.6ms) 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.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.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 16:41:07 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$46pvW1rdQcUYVcjC9qnOLudS0USogRsziOv/QwhUSsl9ntmBvR7kG"], ["updated_at", Mon, 15 Jul 2013 16:41:07 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" = 'test8' 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", Mon, 15 Jul 2013 16:41:07 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 16:41:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fnExxJwvXxPRs2edbqsx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 16:41:07.214361', "updated_at" = '2013-07-15 16:41:07.214361', "authentication_token" = 'fnExxJwvXxPRs2edbqsx' WHERE "public"."cadenero_accounts"."id" = 1  (0.9ms) RELEASE SAVEPOINT active_record_1  (1.4ms) SAVEPOINT active_record_1 SQL (3.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", Mon, 15 Jul 2013 16:41:07 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:41:07 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (10.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.3ms) 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)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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-15 11:41:07 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@example.com' LIMIT 1  (4.2ms) 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  (110.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 Connecting to database specified by database.yml  (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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (26.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (6.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.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (46.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 16:44:00 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$/UZBzokN5BXt3N95gNlG0ONd9Ydq6Vfr/3m6jw.pOvgHLjXQ3dGRi"], ["updated_at", Mon, 15 Jul 2013 16:44:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Mon, 15 Jul 2013 16:44:00 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 16:44:00 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PWqYMGS8o16z8XLKsEWB' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 16:44:00.387544', "updated_at" = '2013-07-15 16:44:00.387544', "authentication_token" = 'PWqYMGS8o16z8XLKsEWB' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 16:44:00 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:44:00 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.9ms) 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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.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 ('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-15 11:44:00 -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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:44:00 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (0.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" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) 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 142ms (Views: 28.8ms | ActiveRecord: 2.7ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:44:00 -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" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.5ms) ROLLBACK  (1.4ms) 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  (24.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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  (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", Mon, 15 Jul 2013 16:44:01 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$YnFmhew5FfcjLaQ/wOVsM.AvlzHxEEjvCX84cYu92nYP8pPRfShqu"], ["updated_at", Mon, 15 Jul 2013 16:44:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Mon, 15 Jul 2013 16:44:01 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 16:44:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LBuJC34aNT8d75TVA2t5' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 16:44:01.009213', "updated_at" = '2013-07-15 16:44:01.009213', "authentication_token" = 'LBuJC34aNT8d75TVA2t5' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 16:44:01 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:44:01 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) CREATE SCHEMA "test2"  (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)   (9.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (6.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) 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")  (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.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.3ms) SELECT version FROM "schema_migrations"  (1.0ms) 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-15 11:44:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:44:01 -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_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 16:44:01 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$4QkYaQMfPj6fBBQgE5Zcf.8jpzUQgPjpRWMTsPkkg5fXXYUysjpyC"], ["updated_at", Mon, 15 Jul 2013 16:44:01 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", Mon, 15 Jul 2013 16:44:01 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:44:01 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 118ms (Views: 5.7ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:44:01 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 4.9ms | ActiveRecord: 1.4ms) 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 11:44:01 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 6ms (Views: 3.9ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:44:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (3.8ms) ROLLBACK  (3.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  (13.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (3.6ms) 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", Mon, 15 Jul 2013 16:44:01 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$rr.SNP.6rksssFKayKP3Uu2KzSBx6iO78lIroiVX0ZPTlOD2xfbWu"], ["updated_at", Mon, 15 Jul 2013 16:44:01 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" = '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", Mon, 15 Jul 2013 16:44:01 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 16:44:01 UTC +00:00]] Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yyW56NLiu4KNXzDySm3n' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 16:44:01.400155', "updated_at" = '2013-07-15 16:44:01.400155', "authentication_token" = 'yyW56NLiu4KNXzDySm3n' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:44:01 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:44:01 UTC +00:00], ["user_id", 1]]  (2.9ms) RELEASE SAVEPOINT active_record_1  (7.4ms) CREATE SCHEMA "test3"  (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)  (3.9ms) 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")  (5.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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")  (7.8ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:44:01 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user3@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (10.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test3') 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" = 'user3@example.com' LIMIT 1 Cadenero::User Load (2.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 125ms (Views: 4.6ms | ActiveRecord: 14.7ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:44:01 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:44:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (3.4ms) 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  (17.9ms) 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.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 16:44:01 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$1byxLF27DVIJ8L56fE5Kk..TJRPjncBZUJY5Y5GDbI2cY6gqWg49C"], ["updated_at", Mon, 15 Jul 2013 16:44:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Mon, 15 Jul 2013 16:44:01 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 16:44:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EzR6G4ejZfsW6Zd8d69Z' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 16:44:01.879698', "updated_at" = '2013-07-15 16:44:01.879698', "authentication_token" = 'EzR6G4ejZfsW6Zd8d69Z' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) 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 16:44:01 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:44:01 UTC +00:00], ["user_id", 1]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (12.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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")  (6.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (2.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-15 11:44:01 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:44:01 -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 ('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"."email" = 'user@example.com' LIMIT 1 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' LIMIT 1  (3.8ms) 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.6ms) 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  (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 16:44:02 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$xSwpVbWJbXY.fQx0VNBSwOrDey1k/N4rIma0sWPpZ7gDyQs0e7bKu"], ["updated_at", Mon, 15 Jul 2013 16:44:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' 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", Mon, 15 Jul 2013 16:44:02 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 16:44:02 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'B76wBZxSLn5zM1ZSpneg' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 16:44:02.131880', "updated_at" = '2013-07-15 16:44:02.131880', "authentication_token" = 'B76wBZxSLn5zM1ZSpneg' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 16:44:02 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:44:02 UTC +00:00], ["user_id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test5"  (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.6ms) 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")  (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)   (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")  (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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:44:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:44:02 -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.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" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.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  (18.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.0ms) BEGIN  (0.1ms) 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", Mon, 15 Jul 2013 16:44:02 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$1tt7qPwweSxCvm6KK4tgOeuPHNwdz1EpattPKTBdBKJDfMOoP2sRq"], ["updated_at", Mon, 15 Jul 2013 16:44:02 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" = 'test6' 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", Mon, 15 Jul 2013 16:44:02 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 16:44:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GzckdwJXzqjMot1QaPzF' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 16:44:02.373004', "updated_at" = '2013-07-15 16:44:02.373004', "authentication_token" = 'GzckdwJXzqjMot1QaPzF' WHERE "public"."cadenero_accounts"."id" = 1  (0.7ms) 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", 1], ["created_at", Mon, 15 Jul 2013 16:44:02 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:44:02 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (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.4ms) 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")  (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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.6ms) SELECT version FROM "schema_migrations"  (0.5ms) 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')  (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", Mon, 15 Jul 2013 16:44:02 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$Fun8zGSeoxUaTFOUt4A7OOrB4xv8SRbR8sbZhSV8TzS7sb3pifiP."], ["updated_at", Mon, 15 Jul 2013 16:44:02 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" = '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", Mon, 15 Jul 2013 16:44:02 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 2], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 16:44:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JnMf5HL4LVa3Z6ctJFcg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 2, "created_at" = '2013-07-15 16:44:02.564439', "updated_at" = '2013-07-15 16:44:02.564439', "authentication_token" = 'JnMf5HL4LVa3Z6ctJFcg' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Mon, 15 Jul 2013 16:44:02 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:44:02 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:44:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:44:02 -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.3ms) 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" = 'user7@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (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  (5.2ms) 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  (14.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (0.3ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:44:02 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$E3svfdBWC4Z3jDSX0a5EU.p8EsikVkwqPlHJqw.MtT09u4NMztVgW"], ["updated_at", Mon, 15 Jul 2013 16:44:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Mon, 15 Jul 2013 16:44:02 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 16:44:02 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 's1w6ugzgMAp7LMpmmkzd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 16:44:02.745637', "updated_at" = '2013-07-15 16:44:02.745637', "authentication_token" = 's1w6ugzgMAp7LMpmmkzd' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:44:02 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:44:02 UTC +00:00], ["user_id", 1]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (5.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.6ms) 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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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)  (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.2ms) SELECT version FROM "schema_migrations"  (0.4ms) 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-15 11:44:02 -0500 Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user8@example.com' LIMIT 1  (3.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  (17.3ms) 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 Connecting to database specified by database.yml  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (17.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (11.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 16:45:28 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$pqo1eOVM1edwndK/g7JkquezsyTugEnRz.LVWoDEssCB9qdkgSygC"], ["updated_at", Mon, 15 Jul 2013 16:45:28 UTC +00:00]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (1.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 16:45:28 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 16:45:28 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7SaPoxxSYy9yydTdf7R2' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 16:45:28.292326', "updated_at" = '2013-07-15 16:45:28.292326', "authentication_token" = '7SaPoxxSYy9yydTdf7R2' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) 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 16:45:28 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:45:28 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (0.9ms) 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")  (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)  (6.6ms) 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")  (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)   (1.5ms) 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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:45:28 -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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:45:28 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$oJU.HUEOQCmuB3oBaA94P.zlC0PA6H.Pu2WWgspdt2IDoFbY8gcdO"], ["updated_at", Mon, 15 Jul 2013 16:45:28 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", Mon, 15 Jul 2013 16:45:28 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:45:28 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 204ms (Views: 40.5ms | ActiveRecord: 4.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:45:28 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.2ms | ActiveRecord: 1.7ms)  (8.1ms) ROLLBACK  (4.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  (19.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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.7ms) BEGIN  (0.5ms) 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 16:45:28 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$RylFZoIzjTrR1bjjRSxIwun4XvUctmaApFdGzlOrvavDlOrbyIFIm"], ["updated_at", Mon, 15 Jul 2013 16:45:28 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 16:45:28 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 16:45:28 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'U9Sq474wWeKMnypTjokx' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 16:45:28.925514', "updated_at" = '2013-07-15 16:45:28.925514', "authentication_token" = 'U9Sq474wWeKMnypTjokx' WHERE "public"."cadenero_accounts"."id" = 1  (1.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.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 16:45:28 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:45:28 UTC +00:00], ["user_id", 1]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (6.0ms) CREATE SCHEMA "test2"  (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)  (2.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (10.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:45:29 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (1.5ms) 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 16:45:29 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$N3imGpWzGI9PUA6uEP9K8uqVFTaDhpd2vW1R98koxAw7eVTYQXu4i"], ["updated_at", Mon, 15 Jul 2013 16:45:29 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", 1], ["created_at", Mon, 15 Jul 2013 16:45:29 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:45:29 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."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" = 2 Completed 201 Created in 129ms (Views: 7.7ms | ActiveRecord: 4.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:45:29 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 13ms (Views: 5.8ms | ActiveRecord: 2.8ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Mon, 15 Jul 2013 16:45:29 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 16:45:29 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CDif37ph2pKt4Upx8tfu' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 2, "created_at" = '2013-07-15 16:45:29.185095', "updated_at" = '2013-07-15 16:45:29.185095', "authentication_token" = 'CDif37ph2pKt4Upx8tfu' WHERE "public"."cadenero_accounts"."id" = 2  (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", Mon, 15 Jul 2013 16:45:29 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:45:29 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (8.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (7.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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")  (2.6ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:45:29 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.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 16:45:29 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$4hRZMJg25k9SafawSs7Cc.89XY/He/zHnmErfGikEuecUQCfGTxte"], ["updated_at", Mon, 15 Jul 2013 16:45:29 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", 2], ["created_at", Mon, 15 Jul 2013 16:45:29 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:45:29 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 123ms (Views: 6.2ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/3" for 127.0.0.1 at 2013-07-15 11:45:29 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"3"} 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 (1.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 2 AND "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 200 OK in 13ms (Views: 6.1ms | ActiveRecord: 3.1ms) Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:45:29 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.2ms | ActiveRecord: 1.6ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 11:45:29 -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" = 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 15ms (Views: 10.9ms | ActiveRecord: 2.6ms)  (9.2ms) ROLLBACK  (0.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  (16.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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.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.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  (16.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) 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.3ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (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  (18.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.3ms) 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::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (0.6ms) 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 6ms (Views: 4.5ms | ActiveRecord: 1.1ms)  (0.2ms) 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  (15.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.3ms) 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::Account::UsersController#index as JSON Cadenero::V1::Account Load (0.6ms) 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 6ms (Views: 4.5ms | ActiveRecord: 1.1ms)  (0.3ms) 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  (20.1ms) 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.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 11:45:30 -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 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 16:45:30 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$EKjDG3YheEuzQAlen9v8muL1sc31V4UV3K0pGbBB/Tw273823.IIu"], ["updated_at", Mon, 15 Jul 2013 16:45:30 UTC +00:00]] 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", Mon, 15 Jul 2013 16:45:30 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 16:45:30 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9DgMn9Sg7QXL7iymhzBs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 16:45:30.276621', "updated_at" = '2013-07-15 16:45:30.276621', "authentication_token" = '9DgMn9Sg7QXL7iymhzBs' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 16:45:30 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:45:30 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (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")  (1.2ms) 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)  (1.0ms) 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")  (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.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (1.2ms) 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 Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1 Completed 201 Created in 241ms (Views: 3.2ms | ActiveRecord: 44.9ms) Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (5.5ms) 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  (14.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.3ms) BEGIN  (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 SQL (1.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 16:45:30 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$8ckbQZ5WTkodmYDWMagsFux9R.XRrKlGcPyjSLBcxlbZ/MNCM19z."], ["updated_at", Mon, 15 Jul 2013 16:45:30 UTC +00:00]] 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", Mon, 15 Jul 2013 16:45:30 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 16:45:30 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'szR8YmWKeaessuwqCpZ2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 16:45:30.546699', "updated_at" = '2013-07-15 16:45:30.546699', "authentication_token" = 'szR8YmWKeaessuwqCpZ2' WHERE "public"."cadenero_accounts"."id" = 1  (0.3ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 11:45:30 -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 110ms (Views: 0.3ms | ActiveRecord: 0.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.3ms) 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  (15.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) 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  (21.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.6ms) BEGIN Cadenero::V1::Account Exists (5.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (2.1ms) 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  (16.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) 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.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  (16.7ms) 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 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 16:45:31 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$3nTZclcJzQY77l.lsRNiNerH3ZzspugdQtiJp4IiHow5Aj9qbqdL6"], ["updated_at", Mon, 15 Jul 2013 16:45:31 UTC +00:00]] SQL (1.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", Mon, 15 Jul 2013 16:45:31 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 16:45:31 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QNp8ZrwACBxXSpLqjnqx' LIMIT 1  (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 16:45:31.174021', "updated_at" = '2013-07-15 16:45:31.174021', "authentication_token" = 'QNp8ZrwACBxXSpLqjnqx' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:45:31 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:45:31 UTC +00:00], ["user_id", 1]]  (2.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (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)   (2.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.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.8ms) 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")  (7.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.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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::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" = 1 LIMIT 1  (3.6ms) ROLLBACK  (1.0ms) 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.7ms) 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.5ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 3ms (Views: 2.1ms | 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  (18.3ms) 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 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.6ms) ROLLBACK  (1.4ms) 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.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.8ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:45:31 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$X6gW1vyYY5jG8PRRm6tCp.wMaU6AlYJZa0VhN3DEn1f08yf2DKAiS"], ["updated_at", Mon, 15 Jul 2013 16:45:31 UTC +00:00]]  (5.8ms) RELEASE SAVEPOINT active_record_1  (14.3ms) 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 (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", Mon, 15 Jul 2013 16:45:31 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 16:45:31 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UEqiyzuq6qwKv9zouhyZ' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 16:45:31.609040', "updated_at" = '2013-07-15 16:45:31.609040', "authentication_token" = 'UEqiyzuq6qwKv9zouhyZ' WHERE "public"."cadenero_accounts"."id" = 1  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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", Mon, 15 Jul 2013 16:45:31 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:45:31 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (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)   (2.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.4ms) 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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.8ms) 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-15 11:45:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:45:31 -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.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" = 'user3@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 119ms (Views: 4.6ms | ActiveRecord: 2.7ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:45:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (3.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.1ms) 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 (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 16:45:31 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$LZBLQIq0tvuugo849AAIQO22kCDMPVcxGQWMULaQ5QBmuD7/LaEJS"], ["updated_at", Mon, 15 Jul 2013 16:45:31 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.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", Mon, 15 Jul 2013 16:45:31 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 16:45:31 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wiSn7NCxE9SELz6Rmxsf' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 16:45:31.981425', "updated_at" = '2013-07-15 16:45:31.981425', "authentication_token" = 'wiSn7NCxE9SELz6Rmxsf' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 16:45:31 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:45:31 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (7.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.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) 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)  (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")  (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.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') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:45:32 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.1ms) 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 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 114ms (Views: 4.5ms | ActiveRecord: 2.9ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:45:32 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 1.9ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:45:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (2.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;  (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.4ms) 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 16:45:32 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$gT847qA2hePrPx0GJpv8COUlcBl/RJyTHPmNo.rAZbNlulijfjAUy"], ["updated_at", Mon, 15 Jul 2013 16:45:32 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.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", Mon, 15 Jul 2013 16:45:32 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 16:45:32 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XrhydGvZ4qMqyySQQ1xX' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 16:45:32.312663', "updated_at" = '2013-07-15 16:45:32.312663', "authentication_token" = 'XrhydGvZ4qMqyySQQ1xX' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 16:45:32 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:45:32 UTC +00:00], ["user_id", 1]]  (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)   (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")  (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)  (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")  (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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:45:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:45:32 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:45:32 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$c5KAq6qh.8iDEdFnkQYNOOzK0V6BraD4FfDORMxqO6aXUBk7J8BMu"], ["updated_at", Mon, 15 Jul 2013 16:45:32 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", 1], ["created_at", Mon, 15 Jul 2013 16:45:32 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:45:32 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 113ms (Views: 4.9ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:45:32 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 9ms (Views: 4.8ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:45:32 -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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 7ms (Views: 4.5ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:45:32 -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" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.5ms) 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  (12.8ms) 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.1ms) BEGIN  (1.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 16:45:32 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$3xZ9cxeDcHvr3hMF86jsm.i3Q3GPq/JXAQl7zBoHTG7jdIs9PoPIy"], ["updated_at", Mon, 15 Jul 2013 16:45:32 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.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", Mon, 15 Jul 2013 16:45:32 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 16:45:32 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'bRqCLVsMc3QDdEjYgmC3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 16:45:32.680059', "updated_at" = '2013-07-15 16:45:32.680059', "authentication_token" = 'bRqCLVsMc3QDdEjYgmC3' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:45:32 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:45:32 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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.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")  (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)   (1.2ms) 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")  (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.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:45:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:45:32 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.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" = 'foo@example.com' LIMIT 1 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' LIMIT 1  (3.1ms) 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  (13.3ms) 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 (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 16:45:32 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$hYyZU2cfvQIyq7GM4B9LbOpTjhqDalOR1xa.FiDnrVBp1Qm8H254a"], ["updated_at", Mon, 15 Jul 2013 16:45:32 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" = 'test8' 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", Mon, 15 Jul 2013 16:45:32 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 16:45:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GWvTUqeZZziBQnGs62mB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 16:45:32.878352', "updated_at" = '2013-07-15 16:45:32.878352', "authentication_token" = 'GWvTUqeZZziBQnGs62mB' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 16:45:32 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:45:32 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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.1ms) 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)   (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")  (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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Mon, 15 Jul 2013 16:45:33 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$aYtyg4BTzeHnHwGxRn8AyuMlIDiwy7oKusREt0WTw3qNtbVs6zHZa"], ["updated_at", Mon, 15 Jul 2013 16:45:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Mon, 15 Jul 2013 16:45:33 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 2], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 16:45:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tagSMc3Uq8c5XEPk7fMc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 2, "created_at" = '2013-07-15 16:45:33.084123', "updated_at" = '2013-07-15 16:45:33.084123', "authentication_token" = 'tagSMc3Uq8c5XEPk7fMc' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Mon, 15 Jul 2013 16:45:33 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:45:33 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:45:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:45:33 -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 (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" = 1 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.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  (16.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.5ms) 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 16:45:33 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$gDHnFHVwKSt3i2oCfheeDuXnhBAt7Rfc2sL5uBFXnW1Y4dCAvcPEa"], ["updated_at", Mon, 15 Jul 2013 16:45:33 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" = 'test10' 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", Mon, 15 Jul 2013 16:45:33 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 16:45:33 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YKPECoBRbbgrsssb722K' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-15 16:45:33.242900', "updated_at" = '2013-07-15 16:45:33.242900', "authentication_token" = 'YKPECoBRbbgrsssb722K' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:45:33 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:45:33 UTC +00:00], ["user_id", 1]]  (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.7ms) 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")  (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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:45:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:45:33 -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 ('test10') 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 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' LIMIT 1  (3.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  (13.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (2.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 16:45:33 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$pe75l41ZeN/IAjZPdEYp2ehPtS0KngW5jPUyLO1gNhTpkUJ.IuutC"], ["updated_at", Mon, 15 Jul 2013 16:45:33 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" = 'test11' 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", Mon, 15 Jul 2013 16:45:33 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 16:45:33 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'x7XM7zSAsz2xVC2ainhz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-15 16:45:33.435559', "updated_at" = '2013-07-15 16:45:33.435559', "authentication_token" = 'x7XM7zSAsz2xVC2ainhz' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:45:33 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:45:33 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (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.9ms) 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")  (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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.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 ('20130612073709')  (0.1ms) 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-15 11:45:33 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user10@example.com' LIMIT 1  (3.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  (12.7ms) 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.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) 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 16:45:36 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$V0DQrJlTyjWhM4wYEtMH/.SnHviPffMvgnwndbM7ePLe4OUjbxpzO"], ["updated_at", Mon, 15 Jul 2013 16:45:36 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (1.1ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Mon, 15 Jul 2013 16:45:36 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1], ["subdomain", "test12"], ["updated_at", Mon, 15 Jul 2013 16:45:36 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vC2QqQ7HLpm8yXVz92mt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 1, "created_at" = '2013-07-15 16:45:36.393648', "updated_at" = '2013-07-15 16:45:36.393648', "authentication_token" = 'vC2QqQ7HLpm8yXVz92mt' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 16:45:36 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:45:36 UTC +00:00], ["user_id", 1]]  (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", Mon, 15 Jul 2013 16:45:36 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$lrY9ZMBEASalWZX6vlx/HeaNzYv/x1VZusfCEvQ2Mtkd3BkG1kMgO"], ["updated_at", Mon, 15 Jul 2013 16:45:36 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", Mon, 15 Jul 2013 16:45:36 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$/ZCnYubLrf0IHSfI/SnozOcsmzqY.XQr2X94tcl1KiTEgyG3d139S"], ["updated_at", Mon, 15 Jul 2013 16:45:36 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", Mon, 15 Jul 2013 16:45:36 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 16:45:36 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'e9Hqp9y7CtYVFSGPxAHT' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-15 16:45:36.602679', "updated_at" = '2013-07-15 16:45:36.602679', "authentication_token" = 'e9Hqp9y7CtYVFSGPxAHT' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (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)  (1.1ms) 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")  (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)   (1.0ms) 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")  (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.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (2.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  (13.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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 Connecting to database specified by database.yml  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709)  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.4ms) ROLLBACK  (1.4ms) 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.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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) 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  (15.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.4ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.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.1ms) 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.6ms) BEGIN  (5.9ms) 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  (22.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 Connecting to database specified by database.yml  (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  (2.2ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (153.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (4.3ms) BEGIN  (1.3ms) SAVEPOINT active_record_1 SQL (53.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 16:51:04 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$YJST3pAWRlExBo1uUYdW.eU6nQir9eTtuT5.tgA5XcYd9HJ6pvkQC"], ["updated_at", Mon, 15 Jul 2013 16:51:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (5.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (4.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", Mon, 15 Jul 2013 16:51:04 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 16:51:04 UTC +00:00]] Cadenero::V1::Account Load (2.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GemjLbxLYrwY4xLqJx5e' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 16:51:04.402068', "updated_at" = '2013-07-15 16:51:04.402068', "authentication_token" = 'GemjLbxLYrwY4xLqJx5e' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (2.9ms) 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 16:51:04 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:51:04 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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" ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (11.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)  (5.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 11:51:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:51:04 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (0.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" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 156ms (Views: 29.2ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:51:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.8ms)  (4.6ms) 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.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.3ms) 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 16:51:05 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$nemD544mf/KKlZJOYtZOXOZa6e/MP8sscBBfKaq.C8mXh7vPf6SRS"], ["updated_at", Mon, 15 Jul 2013 16:51:05 UTC +00:00]]  (0.3ms) 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" = 'test2' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 16:51:05 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 16:51:05 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vMsrbp9w4byeFyRQLwj7' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 16:51:05.094535', "updated_at" = '2013-07-15 16:51:05.094535', "authentication_token" = 'vMsrbp9w4byeFyRQLwj7' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:51:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:51:05 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (3.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)   (0.9ms) 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")  (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")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.4ms) SELECT version FROM "schema_migrations"  (0.5ms) 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-15 11:51:05 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (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" = 1 AND "public"."cadenero_users"."email" = 'user2@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 (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 115ms (Views: 4.8ms | ActiveRecord: 5.8ms) Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:51:05 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:51:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (221.2ms) ROLLBACK  (0.4ms) 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.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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", Mon, 15 Jul 2013 16:51:05 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$fjL.SDkzm2ogRiH0mL5yQuRhjtI4zWLl/FVQpdPCW5hDZ2Zf.Zv8."], ["updated_at", Mon, 15 Jul 2013 16:51:05 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", Mon, 15 Jul 2013 16:51:05 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 16:51:05 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3a9GpD4ZzeZri26XJrN1' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 16:51:05.664654', "updated_at" = '2013-07-15 16:51:05.664654', "authentication_token" = '3a9GpD4ZzeZri26XJrN1' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 16:51:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:51:05 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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)   (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.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")  (2.3ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:51:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:51:05 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:51:05 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$UPBbvO0ouC49rsRL5cJWc.wvrwOWSaqYqEvdtarowAAnkfF9Kdz8e"], ["updated_at", Mon, 15 Jul 2013 16:51:05 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", Mon, 15 Jul 2013 16:51:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:51:05 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 115ms (Views: 5.1ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:51:05 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 12ms (Views: 6.2ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:51:05 -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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 8ms (Views: 6.1ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:51:05 -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" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.3ms) 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  (11.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.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 16:51:06 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$1oUu61JadNHYuGsK2NAnPusBvjBg8hu95iXr5eGG8evaPm.c96a2K"], ["updated_at", Mon, 15 Jul 2013 16:51:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (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", Mon, 15 Jul 2013 16:51:06 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 16:51:06 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hkzCZKeydVWvos8QED42' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 16:51:06.050739', "updated_at" = '2013-07-15 16:51:06.050739', "authentication_token" = 'hkzCZKeydVWvos8QED42' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 16:51:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:51:06 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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.3ms) 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.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)   (0.8ms) 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")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:51:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:51:06 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Mon, 15 Jul 2013 16:51:06 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$jpCdw.DfuZnF3zl6CHdVy.poLX0BnibLyaHrYuGDQd6VjG1Xo9O0a"], ["updated_at", Mon, 15 Jul 2013 16:51:06 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", Mon, 15 Jul 2013 16:51:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:51:06 UTC +00:00], ["user_id", 2]]  (0.4ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 118ms (Views: 10.6ms | ActiveRecord: 4.4ms) Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:51:06 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.3ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.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 11:51:06 -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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (2.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" = 2 Completed 201 Created in 8ms (Views: 4.1ms | ActiveRecord: 3.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1  (2.4ms) ROLLBACK  (1.0ms) 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.3ms) 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 (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 16:51:06 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$egPQJfQWTC00Vt8JCyKcEuv1hYIo5HBnjEZkfgaMB3omaPSWvDeHq"], ["updated_at", Mon, 15 Jul 2013 16:51:06 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.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", Mon, 15 Jul 2013 16:51:06 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 16:51:06 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'a9wpqyGynovSvbM3BHjw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 16:51:06.440773', "updated_at" = '2013-07-15 16:51:06.440773', "authentication_token" = 'a9wpqyGynovSvbM3BHjw' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 16:51:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:51:06 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test5"  (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.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")  (5.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)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:51:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:51:06 -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.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 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.4ms) 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  (16.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  (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", Mon, 15 Jul 2013 16:51:06 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$8KzLaC1cQ8XeF3cb4jNctue7It94Cgn6lVdoOzGFwFIS26URizOPO"], ["updated_at", Mon, 15 Jul 2013 16:51:06 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.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", Mon, 15 Jul 2013 16:51:06 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 16:51:06 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hxJZbj6V8gosdsntxjnK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 16:51:06.646261', "updated_at" = '2013-07-15 16:51:06.646261', "authentication_token" = 'hxJZbj6V8gosdsntxjnK' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 16:51:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:51:06 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.2ms) 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.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.6ms) 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")  (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)  (1.4ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Mon, 15 Jul 2013 16:51:06 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$2O0PXfEsGShiPjKFXFP7le1la7yXF2fvCLv.9DFbZl1GbbURqGEYC"], ["updated_at", Mon, 15 Jul 2013 16:51:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.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", Mon, 15 Jul 2013 16:51:06 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 2], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 16:51:06 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yGpiQ8cQu8PX4syZapHV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 2, "created_at" = '2013-07-15 16:51:06.806666', "updated_at" = '2013-07-15 16:51:06.806666', "authentication_token" = 'yGpiQ8cQu8PX4syZapHV' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Mon, 15 Jul 2013 16:51:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:51:06 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:51:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:51:06 -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 ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | 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.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  (14.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (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 16:51:06 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$An60bjJWUoFi0VuISPAKOeu6t.yhG36lcPhfXekX2A8ieClUah2TG"], ["updated_at", Mon, 15 Jul 2013 16:51:06 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" = 'test8' 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", Mon, 15 Jul 2013 16:51:06 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 16:51:06 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6ihDDkiBqa7PwzxSJasd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 16:51:06.958697', "updated_at" = '2013-07-15 16:51:06.958697', "authentication_token" = '6ihDDkiBqa7PwzxSJasd' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 16:51:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:51:06 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (3.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)  (0.8ms) 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)   (3.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('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-15 11:51:07 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:51:07 -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 ('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"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (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  (2.6ms) 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  (12.1ms) 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", Mon, 15 Jul 2013 16:51:07 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$pENA3UO.jFk7yQEkkQSZGuEw5AQqWv9eisXyLCAPQwxpPcl.2Qe5u"], ["updated_at", Mon, 15 Jul 2013 16:51:07 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 (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", Mon, 15 Jul 2013 16:51:07 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 16:51:07 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7q1BF7TkLphixBcEeSZw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 16:51:07.154477', "updated_at" = '2013-07-15 16:51:07.154477', "authentication_token" = '7q1BF7TkLphixBcEeSZw' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 16:51:07 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:51:07 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) 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-15 11:51:07 -0500 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@example.com' LIMIT 1  (4.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  (11.9ms) 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  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (17.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (3.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 16:52:03 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$2f6XVrZkHt.tkEJBJaYwUuEExIhRsjVTNjUVNKA9rRg7YjXeIDHwu"], ["updated_at", Mon, 15 Jul 2013 16:52:03 UTC +00:00]] SQL (2.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", Mon, 15 Jul 2013 16:52:03 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 16:52:03 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vmXbx322mbDGP1fKPm9L' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 16:52:03.843059', "updated_at" = '2013-07-15 16:52:03.843059', "authentication_token" = 'vmXbx322mbDGP1fKPm9L' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 1], ["created_at", Mon, 15 Jul 2013 16:52:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:52:03 UTC +00:00], ["user_id", 1]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test"  (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.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) 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)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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)  (1.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') 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 LIMIT 1  (10.8ms) 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.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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" IS NULL LIMIT 1  (0.8ms) 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  (12.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.3ms) BEGIN Cadenero::V1::Account Exists (10.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (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  (20.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) 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.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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  (13.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.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 16:52:04 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$u0vrasTO58V7Z0Ek4lhwdOlSYKp/JmctMW/j6lesgH5hCRvG4QaJC"], ["updated_at", Mon, 15 Jul 2013 16:52:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Mon, 15 Jul 2013 16:52:04 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 16:52:04 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8HsDCzo8DFyRwzp9suzA' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 16:52:04.668804', "updated_at" = '2013-07-15 16:52:04.668804', "authentication_token" = '8HsDCzo8DFyRwzp9suzA' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 16:52:04 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:52:04 UTC +00:00], ["user_id", 1]]  (2.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test1"  (8.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.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) 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)  (3.4ms) 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")  (8.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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) 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-15 11:52:04 -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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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"."email" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (2.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 154ms (Views: 31.2ms | ActiveRecord: 5.3ms) Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:52:04 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:52:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (3.6ms) ROLLBACK  (1.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  (18.9ms) 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 (2.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 16:52:05 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$xrS2YyjtpR3Xjw2CvqDLkOiZm.dYj7lHBZtGd9300Cgm2wVd9TJqe"], ["updated_at", Mon, 15 Jul 2013 16:52:05 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" = 'test2' 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", Mon, 15 Jul 2013 16:52:05 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 16:52:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sPhWVe6kxRzztX5dq8z7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 16:52:05.231218', "updated_at" = '2013-07-15 16:52:05.231218', "authentication_token" = 'sPhWVe6kxRzztX5dq8z7' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.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", Mon, 15 Jul 2013 16:52:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:52:05 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (10.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" ("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)  (3.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 11:52:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:52:05 -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' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:52:05 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$p/LbG3AGNYCtnuDAEjF6Zu71I558dv7H1LdiIPkp.84LJpVUVQNZq"], ["updated_at", Mon, 15 Jul 2013 16:52:05 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", 1], ["created_at", Mon, 15 Jul 2013 16:52:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:52:05 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 113ms (Views: 4.9ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:52:05 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 12ms (Views: 6.2ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:52:05 -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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 7ms (Views: 4.1ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:52:05 -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" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (3.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  (13.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.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 16:52:05 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$tlhpwhIVvEP.XbOX2pqGMuzSkDfgR/whfd0O7VmYC.htLuavd2.Ka"], ["updated_at", Mon, 15 Jul 2013 16:52:05 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", Mon, 15 Jul 2013 16:52:05 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 16:52:05 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'D19UEyefzq4cnFaHznB8' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 16:52:05.599076', "updated_at" = '2013-07-15 16:52:05.599076', "authentication_token" = 'D19UEyefzq4cnFaHznB8' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 16:52:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:52:05 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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)  (2.4ms) 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.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)   (1.7ms) 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")  (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)   (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 ('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-15 11:52:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:52:05 -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.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" = 'user3@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 110ms (Views: 5.1ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:52:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (5.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  (13.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (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 16:52:05 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$CVwxvqUOf1jB/jU8BUXZHec0a6jkr3fKuVIYA6uD.1WjgeUn93GSq"], ["updated_at", Mon, 15 Jul 2013 16:52:05 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.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", Mon, 15 Jul 2013 16:52:05 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 16:52:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YHpYPDqGcUdkG1ov5Jxs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 16:52:05.910646', "updated_at" = '2013-07-15 16:52:05.910646', "authentication_token" = 'YHpYPDqGcUdkG1ov5Jxs' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:52:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:52:05 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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)  (2.3ms) 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.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)   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)  (4.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:52:05 -0500 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1  (3.5ms) 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  (12.0ms) 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.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 16:52:06 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$y6aYOgcbdBeoQ8Njg5FUHOIACitW3XxIlfWkgpcgmxIY2sEOQ1Dla"], ["updated_at", Mon, 15 Jul 2013 16:52:06 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.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", Mon, 15 Jul 2013 16:52:06 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 16:52:06 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DkzHsXTfm5xUX5G7Ntiw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 16:52:06.170722', "updated_at" = '2013-07-15 16:52:06.170722', "authentication_token" = 'DkzHsXTfm5xUX5G7Ntiw' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:52:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:52:06 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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.7ms) 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.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)   (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.8ms) 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)  (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.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-15 11:52:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:52:06 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 'foo@example.com' LIMIT 1 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' LIMIT 1  (8.6ms) 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  (24.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (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 16:52:06 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$SmNmQFogg3tJjoQ08z/AF.jRbBuMYYQbtypZ9i9FCgA2VhQaImUO6"], ["updated_at", Mon, 15 Jul 2013 16:52:06 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 (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", Mon, 15 Jul 2013 16:52:06 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 16:52:06 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1xyzNe456GCCCLUEGzhV' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 16:52:06.393211', "updated_at" = '2013-07-15 16:52:06.393211', "authentication_token" = '1xyzNe456GCCCLUEGzhV' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) 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 16:52:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:52:06 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (8.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")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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"  (0.3ms) 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-15 11:52:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:52:06 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (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 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' LIMIT 1  (4.6ms) 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.1ms) 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", Mon, 15 Jul 2013 16:52:06 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$28IBzrNh.tgwP2urzHHpsOoY1np6cR1N06WW0pQz4SnpW5opFltGO"], ["updated_at", Mon, 15 Jul 2013 16:52:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' 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", Mon, 15 Jul 2013 16:52:06 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 16:52:06 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mjdzDMpjcxX4h4cVix6E' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 16:52:06.609339', "updated_at" = '2013-07-15 16:52:06.609339', "authentication_token" = 'mjdzDMpjcxX4h4cVix6E' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 16:52:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:52:06 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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)  (1.6ms) 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.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")  (0.8ms) 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)  (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.3ms) 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')  (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 16:52:06 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$njWCs3.qNlc8NyBl0OvTaeWxFhr6Vc0wPpAquS5M.5gAaxKfjA8C2"], ["updated_at", Mon, 15 Jul 2013 16:52:06 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", Mon, 15 Jul 2013 16:52:06 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 2], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 16:52:06 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'z2ZyuQHTjwvHjgqSQMMh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 2, "created_at" = '2013-07-15 16:52:06.769938', "updated_at" = '2013-07-15 16:52:06.769938', "authentication_token" = 'z2ZyuQHTjwvHjgqSQMMh' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Mon, 15 Jul 2013 16:52:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:52:06 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 11:52:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 11:52:06 -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 ('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" = 'user8@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 8ms (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.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  (17.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 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.2ms) 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  (14.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.8ms) 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"}} Completed 422 Unprocessable Entity in 3ms (Views: 2.6ms | 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  (11.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 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)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (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  (11.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  (0.3ms) 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  (13.3ms) 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.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (1.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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 16:52:14 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$Kxb4uDzpi4pypjJlA.7V3eA3/NeUUhzfahf/uPF9uZ9Tz7VDY4Vgy"], ["updated_at", Mon, 15 Jul 2013 16:52:14 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 (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", Mon, 15 Jul 2013 16:52:14 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 16:52:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '75RNt4YqNpaXK3MhwvDr' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 16:52:14.965597', "updated_at" = '2013-07-15 16:52:14.965597', "authentication_token" = '75RNt4YqNpaXK3MhwvDr' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 16:52:14 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:52:14 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", Mon, 15 Jul 2013 16:52:15 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$YLtGbf0Rv.WwN0SWyt5B7eBpt5Dxhb3znNk2nx7i5E3ActmPvXfvG"], ["updated_at", Mon, 15 Jul 2013 16:52:15 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", Mon, 15 Jul 2013 16:52:15 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$b.xmB37uMFk9w0439BqX2eS/hmuEdZ7jRnm8aEiXObX92tl586GiO"], ["updated_at", Mon, 15 Jul 2013 16:52:15 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", Mon, 15 Jul 2013 16:52:15 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 16:52:15 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'iyEwoyPZDcKgko14x7Es' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-15 16:52:15.184668', "updated_at" = '2013-07-15 16:52:15.184668', "authentication_token" = 'iyEwoyPZDcKgko14x7Es' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "www"  (7.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.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.9ms) 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')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (3.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  (13.1ms) 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.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.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  (11.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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) 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  (18.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  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 11:52:15 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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.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 16:52:15 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$jp2GOTCExZs8GSZpqc0Jneu2N/N0koUQEbY.g44L0/HmB7S0hW5b6"], ["updated_at", Mon, 15 Jul 2013 16:52:15 UTC +00:00]] 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", Mon, 15 Jul 2013 16:52:15 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 16:52:15 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9zsEaVKxxctEkbhm7zDh' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 16:52:15.440379', "updated_at" = '2013-07-15 16:52:15.440379', "authentication_token" = '9zsEaVKxxctEkbhm7zDh' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 16:52:15 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:52:15 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (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" ("authentication_token")  (1.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)  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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"  (2.3ms) 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') 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" != 1) LIMIT 1 Completed 201 Created in 176ms (Views: 2.4ms | ActiveRecord: 39.0ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' 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  (23.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 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", Mon, 15 Jul 2013 16:52:15 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$wHh6PdEaX/fFz.99/bqxFefF.td2mtKmsuD5xikwAAxrz75NRKWvi"], ["updated_at", Mon, 15 Jul 2013 16:52:15 UTC +00:00]] 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", Mon, 15 Jul 2013 16:52:15 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 16:52:15 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'po3UL1onoqbyKQdUAyPu' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 16:52:15.706073', "updated_at" = '2013-07-15 16:52:15.706073', "authentication_token" = 'po3UL1onoqbyKQdUAyPu' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 11:52:15 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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.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 112ms (Views: 0.4ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.3ms) 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  (11.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.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  (144.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.3ms) 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.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  (10.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.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 7ms (Views: 5.8ms | ActiveRecord: 1.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  (52.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.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.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 7ms (Views: 5.3ms | ActiveRecord: 1.0ms)  (0.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  (36.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.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:52:16 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$oAmU9zWUtoCx.6At9XMEcettOFn5QUCBty5KvH8ZPFI.KMxYFGb8u"], ["updated_at", Mon, 15 Jul 2013 16:52:16 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" = 'test10' 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", Mon, 15 Jul 2013 16:52:17 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 16:52:17 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sCE4r1HwxzqxKX99VENn' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-15 16:52:17.005669', "updated_at" = '2013-07-15 16:52:17.005669', "authentication_token" = 'sCE4r1HwxzqxKX99VENn' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.0ms) 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 16:52:17 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:52:17 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (5.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "authentication_token" character varying(255), "owner_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (10.4ms) 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.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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:52:17 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1  (3.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 16:52:17 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ucAAF67BmdtbhUo7mBMr4OXASLTJbHRJFJwbHJBd7s/qrSvZCor.e"], ["updated_at", Mon, 15 Jul 2013 16:52:17 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", 1], ["created_at", Mon, 15 Jul 2013 16:52:17 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:52:17 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (4.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (3.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" = 2 Completed 201 Created in 216ms (Views: 5.8ms | ActiveRecord: 14.5ms) Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:52:17 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 9ms (Views: 4.9ms | ActiveRecord: 1.3ms)  (3.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  (26.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (1.4ms) 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", Mon, 15 Jul 2013 16:52:17 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$uOr2Txs4/wLCTt02KWT.8eAhJDaDONh5lDx1WmpGGodEMLEbge7DK"], ["updated_at", Mon, 15 Jul 2013 16:52:17 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" = 'test11' 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", Mon, 15 Jul 2013 16:52:17 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 16:52:17 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xACMrnRJHhL2QbVV5DyJ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-15 16:52:17.579089', "updated_at" = '2013-07-15 16:52:17.579089', "authentication_token" = 'xACMrnRJHhL2QbVV5DyJ' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 16:52:17 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:52:17 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (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.0ms) 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")  (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)   (4.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (13.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)  (5.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.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 POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:52:17 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1  (1.4ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 16:52:17 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$6CkE16UGEMhGNNj0A2L.peRyHExo1SAHLD6VT1Tu1lajg4lUHfjry"], ["updated_at", Mon, 15 Jul 2013 16:52:17 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", 1], ["created_at", Mon, 15 Jul 2013 16:52:17 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:52:17 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (17.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (13.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 172ms (Views: 5.7ms | ActiveRecord: 37.7ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:52:17 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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 (2.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (2.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" = 2 Completed 200 OK in 14ms (Views: 5.5ms | ActiveRecord: 5.0ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (1.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Mon, 15 Jul 2013 16:52:17 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 2], ["subdomain", "test12"], ["updated_at", Mon, 15 Jul 2013 16:52:17 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'KPHLx3mJAeFVd2s8eyBi' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 2, "created_at" = '2013-07-15 16:52:17.865162', "updated_at" = '2013-07-15 16:52:17.865162', "authentication_token" = 'KPHLx3mJAeFVd2s8eyBi' WHERE "public"."cadenero_accounts"."id" = 2  (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", Mon, 15 Jul 2013 16:52:17 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:52:17 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (12.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")  (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)   (9.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.6ms) 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.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 11:52:17 -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", Mon, 15 Jul 2013 16:52:18 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$pyR.aWE/VgrLFj9xd8qMAOXAZu1eHYuwT7nZbAovnwps6vhVcxngS"], ["updated_at", Mon, 15 Jul 2013 16:52:18 UTC +00:00]] 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", 2], ["created_at", Mon, 15 Jul 2013 16:52:18 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 16:52:18 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 121ms (Views: 5.6ms | ActiveRecord: 3.3ms) Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/3" for 127.0.0.1 at 2013-07-15 11:52:18 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"3"} Cadenero::V1::Account Load (2.0ms) 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" = 2 AND "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (5.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 3 Completed 200 OK in 18ms (Views: 5.4ms | ActiveRecord: 9.5ms) Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 11:52:18 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 14ms (Views: 6.3ms | ActiveRecord: 3.6ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 11:52:18 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' 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" = 1 Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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" = 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 19ms (Views: 12.4ms | ActiveRecord: 5.5ms)  (9.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  (13.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (12.9ms) 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.6ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (11.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 17:12:43 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$Q27WrS2xUI4foQB2QGppBeOCTyP3Ogv8IahhBVn7to/3C27dw3mnW"], ["updated_at", Mon, 15 Jul 2013 17:12:43 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 17:12:43 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 17:12:43 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ko8PCNmgcKjwyJeqFs5X' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 17:12:43.488489', "updated_at" = '2013-07-15 17:12:43.488489', "authentication_token" = 'ko8PCNmgcKjwyJeqFs5X' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:12:43 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:12:43 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) 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)  (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)   (6.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 ('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-15 12:12:43 -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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 12:12:43 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 17:12:43 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$C269NpEaelOhU4olvIaiaOArpE7AbVuPe08jCUsmhbckwszhEShRu"], ["updated_at", Mon, 15 Jul 2013 17:12: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", 1], ["created_at", Mon, 15 Jul 2013 17:12:43 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:12:43 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 146ms (Views: 37.6ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:12:43 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 1.4ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:12:43 -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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 9ms (Views: 4.5ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:12:43 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 6ms (Views: 4.0ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1  (5.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  (11.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) 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  (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 17:12:44 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$sMuvcDsEcpm2RKIKet14S.NHAynusJhQ6BLgWZkoKzb5aN9llAXG6"], ["updated_at", Mon, 15 Jul 2013 17:12:44 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 17:12:44 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 17:12:44 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nzf6wnHjGmA9VbXrHZRM' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 17:12:44.096465', "updated_at" = '2013-07-15 17:12:44.096465', "authentication_token" = 'nzf6wnHjGmA9VbXrHZRM' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.9ms) 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 17:12:44 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:12:44 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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)   (2.6ms) 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")  (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)  (4.8ms) 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.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.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 ('20130612073709')  (0.1ms) 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-15 12:12:44 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@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 ('test2') 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" = 'user2@example.com' LIMIT 1 Cadenero::User Load (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 121ms (Views: 5.6ms | ActiveRecord: 4.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:12:44 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (2.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 2.1ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:12:44 -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)  (13.4ms) ROLLBACK  (1.0ms) 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  (18.4ms) 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 (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 17:12:44 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$hCdEu9Rz17jtXD6Q4fClu.UX9RLiAgmACtLmYN.EhC5IGMRrbLzEW"], ["updated_at", Mon, 15 Jul 2013 17:12:44 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", Mon, 15 Jul 2013 17:12:44 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 17:12:44 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'foDgiT3puBhd3n1iD9ay' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 17:12:44.524975', "updated_at" = '2013-07-15 17:12:44.524975', "authentication_token" = 'foDgiT3puBhd3n1iD9ay' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:12:44 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:12:44 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.7ms) 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)  (2.2ms) 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")  (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)  (11.6ms) 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 ('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-15 12:12:44 -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 12:12:44 -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.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (1.6ms) 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 17:12:44 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$CwuZhw2NLr2MTwuCM7XyIOMMK3qpE03W5GdJQPoxLt1g7tHDTRjCa"], ["updated_at", Mon, 15 Jul 2013 17:12:44 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", 1], ["created_at", Mon, 15 Jul 2013 17:12:44 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:12:44 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 124ms (Views: 4.9ms | ActiveRecord: 4.6ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:12:44 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.3ms | ActiveRecord: 1.4ms) 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 12:12:44 -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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 6ms (Views: 3.8ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:12:44 -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" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.3ms) 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  (23.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) 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", Mon, 15 Jul 2013 17:12:44 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$xEeoLO6cCp6Dc1ufMt.52eJXpaUjM/.vjHa4HGiQdoAOq8YyYwPoO"], ["updated_at", Mon, 15 Jul 2013 17:12:44 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.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", Mon, 15 Jul 2013 17:12:44 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 17:12:44 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'HQ2qpf8jytKxFXUfEfR5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 17:12:44.964238', "updated_at" = '2013-07-15 17:12:44.964238', "authentication_token" = 'HQ2qpf8jytKxFXUfEfR5' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", Mon, 15 Jul 2013 17:12:44 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:12:44 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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)  (2.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.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)   (1.4ms) 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.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)  (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.6ms) 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 ('20130612073709')  (0.2ms) 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-15 12:12:45 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:12:45 -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.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" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 107ms (Views: 4.5ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:12:45 -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" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.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  (11.7ms) 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.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 17:12:45 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$n6zKgJX8b3.Iah6E5CxUIOW93McRhWl9npekxp6tIVOXtPBZnkdfi"], ["updated_at", Mon, 15 Jul 2013 17:12:45 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.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", Mon, 15 Jul 2013 17:12:45 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 17:12:45 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tKzSLKQjrsZaN79Xa6PP' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 17:12:45.290902', "updated_at" = '2013-07-15 17:12:45.290902', "authentication_token" = 'tKzSLKQjrsZaN79Xa6PP' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 17:12:45 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:12:45 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (8.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.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (13.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.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.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 ('20130612073709')  (0.1ms) 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-15 12:12:45 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' LIMIT 1  (4.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  (17.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  (1.0ms) 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", Mon, 15 Jul 2013 17:12:45 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$H4G562mcDXe4rbl/pILD8upNBlQFuDFj/fvA/dWDSaoEB59AVBR6m"], ["updated_at", Mon, 15 Jul 2013 17:12:45 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 (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", Mon, 15 Jul 2013 17:12:45 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 17:12:45 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'kxKSPgA4uTEYKwGYLPox' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 17:12:45.613351', "updated_at" = '2013-07-15 17:12:45.613351', "authentication_token" = 'kxKSPgA4uTEYKwGYLPox' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:12:45 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:12:45 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.0ms) 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")  (4.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)   (2.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Mon, 15 Jul 2013 17:12:45 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$WJPUZJ0jl.f7LSK6axijWu76FxEytnAFleZDcLr6kOhcnl88FOlpu"], ["updated_at", Mon, 15 Jul 2013 17:12:45 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' 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", Mon, 15 Jul 2013 17:12:45 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 2], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 17:12:45 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2FXkUVfWfVxLmYSFMq4c' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 2, "created_at" = '2013-07-15 17:12:45.774082', "updated_at" = '2013-07-15 17:12:45.774082', "authentication_token" = '2FXkUVfWfVxLmYSFMq4c' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Mon, 15 Jul 2013 17:12:45 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:12:45 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:12:45 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:12:45 -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 ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.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  (13.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (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 17:12:45 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$rRBpkQ40XfscEKVumzyCCevp3HEkeBgEcunf1T6Z1ZR9MIU9inM.O"], ["updated_at", Mon, 15 Jul 2013 17:12:45 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" = 'test8' 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", Mon, 15 Jul 2013 17:12:45 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 17:12:45 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qLmyvopqfx8kiSoQFHqV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 17:12:45.946588', "updated_at" = '2013-07-15 17:12:45.946588', "authentication_token" = 'qLmyvopqfx8kiSoQFHqV' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.4ms) 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 17:12:45 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:12:45 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (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)  (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")  (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)   (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:12:45 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:12:46 -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 ('test8') 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" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 2.3ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.1ms) ROLLBACK  (0.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  (15.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  (0.1ms) 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", Mon, 15 Jul 2013 17:12:46 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$k8EvYwO9SGD2MgDnJWVHBe7PJwqDlDUic5N5dBQsZXtFBd7oKI3eW"], ["updated_at", Mon, 15 Jul 2013 17:12:46 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' 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", Mon, 15 Jul 2013 17:12:46 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 17:12:46 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3CHHucxxpS6GhvFx53nG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 17:12:46.190175', "updated_at" = '2013-07-15 17:12:46.190175', "authentication_token" = '3CHHucxxpS6GhvFx53nG' WHERE "public"."cadenero_accounts"."id" = 1  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) 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 17:12:46 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:12:46 UTC +00:00], ["user_id", 1]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (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)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (11.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (8.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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 ('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-15 12:12:46 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:12:46 -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.7ms) 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" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.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  (5.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  (15.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 Connecting to database specified by database.yml  (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  (2.4ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (56.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.1ms) SAVEPOINT active_record_1 SQL (48.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 17:17:31 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$ObE8uFRsbqxYHzd/s0rOgOGrYNR2JmXvmrP1bJrgOAYJLJM5GHY/u"], ["updated_at", Mon, 15 Jul 2013 17:17:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 17:17:32 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 17:17:32 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4qyfG3y5FHUHDU6ExyQq' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 17:17:32.058418', "updated_at" = '2013-07-15 17:17:32.058418', "authentication_token" = '4qyfG3y5FHUHDU6ExyQq' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) 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 17:17:32 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:17:32 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (8.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")  (3.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.5ms) 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-15 12:17:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 44ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 12:17:32 -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" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 17:17:32 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$7lG8qYQLSIlPctWUQJYM6.Bd0coTt8u5r.zF5r0y7WQIE7Ufi3oZS"], ["updated_at", Mon, 15 Jul 2013 17:17:32 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", 1], ["created_at", Mon, 15 Jul 2013 17:17:32 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:17:32 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 142ms (Views: 34.8ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:17:32 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.8ms) 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 4.9ms | ActiveRecord: 1.9ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:17:32 -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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 7ms (Views: 4.8ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:17:32 -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" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.1ms) ROLLBACK  (1.0ms) 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  (10.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (5.6ms) 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", Mon, 15 Jul 2013 17:17:32 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$YxkdNTDeCSrrc3F3zbs5BeKfZX/kwqOwZV8Wi4zj5Zp8iTtHMe0fG"], ["updated_at", Mon, 15 Jul 2013 17:17:32 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" = 'test2' 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", Mon, 15 Jul 2013 17:17:32 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 17:17:32 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Zh4o5TqCDPw6f9FGXdPd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 17:17:32.702901', "updated_at" = '2013-07-15 17:17:32.702901', "authentication_token" = 'Zh4o5TqCDPw6f9FGXdPd' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 1], ["created_at", Mon, 15 Jul 2013 17:17:32 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:17:32 UTC +00:00], ["user_id", 1]]  (2.0ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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)  (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")  (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)   (0.9ms) 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")  (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)   (4.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 12:17:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:17:32 -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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 106ms (Views: 4.6ms | ActiveRecord: 1.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:17:32 -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" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.2ms) 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  (14.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (10.9ms) 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 17:17:33 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$erfKwFBEv1ih77XG1uW75esl3zVOR/E3CIQY77OAKcWSG2MqYDmKO"], ["updated_at", Mon, 15 Jul 2013 17:17:33 UTC +00:00]]  (1.7ms) RELEASE SAVEPOINT active_record_1  (10.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Mon, 15 Jul 2013 17:17:33 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 17:17:33 UTC +00:00]] Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'izUecioYzZ71CdfGW55b' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 17:17:33.103649', "updated_at" = '2013-07-15 17:17:33.103649', "authentication_token" = 'izUecioYzZ71CdfGW55b' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 17:17:33 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:17:33 UTC +00:00], ["user_id", 1]]  (1.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (7.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" ("authentication_token")  (0.9ms) 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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) 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 ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:17:33 -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 ('test3') LIMIT 1 Cadenero::User Load (2.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" = 1 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" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 109ms (Views: 4.9ms | ActiveRecord: 4.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:17:33 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:17:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (8.0ms) ROLLBACK  (1.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  (24.0ms) 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  (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 17:17:33 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$4Vo7r8iWC5/gNOn.kO3VROcLDjcW1q54B4HjUjdKr4gpdOhiig7Hi"], ["updated_at", Mon, 15 Jul 2013 17:17:33 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.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", Mon, 15 Jul 2013 17:17:33 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 17:17:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'BpKysuYR5MyxQ13pTCW7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 17:17:33.472932', "updated_at" = '2013-07-15 17:17:33.472932', "authentication_token" = 'BpKysuYR5MyxQ13pTCW7' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:17:33 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:17:33 UTC +00:00], ["user_id", 1]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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")  (2.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)   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:17:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:17:33 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.7ms) 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" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 160ms (Views: 54.3ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:17:33 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 12:17:33 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user4@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" = 'test4' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 17:17:33 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$.QpRsuycmoACN3PVdpAYi.WvHGSBAoHXYpehlJsXXWLg32qq3vkt6"], ["updated_at", Mon, 15 Jul 2013 17:17:33 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", 1], ["created_at", Mon, 15 Jul 2013 17:17:33 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:17:33 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 115ms (Views: 4.8ms | ActiveRecord: 2.7ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:17:33 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 9ms (Views: 4.8ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:17:33 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 6ms (Views: 4.1ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1  (6.2ms) ROLLBACK  (0.4ms) 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.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.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 17:17:34 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$w93yKW4oN0KTMTZqrjYTO.WV3sTLHA/.upW8VAGsrXHasnkBM45uK"], ["updated_at", Mon, 15 Jul 2013 17:17:34 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.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", Mon, 15 Jul 2013 17:17:34 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 17:17:34 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CNTqTKWV4z5vqAzpcwqR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 17:17:34.013305', "updated_at" = '2013-07-15 17:17:34.013305', "authentication_token" = 'CNTqTKWV4z5vqAzpcwqR' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 17:17:34 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:17:34 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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.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")  (7.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.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:17:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 10ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:17:34 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (13.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (11.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  (31.3ms) 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  (1.3ms) BEGIN  (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", Mon, 15 Jul 2013 17:17:34 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$3jvtlpdMEopTXTPozvfp9.yWxSROoTPfF7yQbLKRwRmd81V/Y2ZKe"], ["updated_at", Mon, 15 Jul 2013 17:17:34 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.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", Mon, 15 Jul 2013 17:17:34 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 17:17:34 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xpxSzCz8vXPp8AWuRZXf' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 17:17:34.313983', "updated_at" = '2013-07-15 17:17:34.313983', "authentication_token" = 'xpxSzCz8vXPp8AWuRZXf' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 17:17:34 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:17:34 UTC +00:00], ["user_id", 1]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (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.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) 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)   (1.2ms) 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")  (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)   (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 ('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-15 12:17:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:17:34 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (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 6ms (Views: 0.3ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.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  (13.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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.7ms) 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 17:17:34 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$gkbftP/TyVwVhu.6OCLPYOwiPX9aFcdEjL14091gJadBeB608GGBq"], ["updated_at", Mon, 15 Jul 2013 17:17:34 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 (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", Mon, 15 Jul 2013 17:17:34 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 17:17:34 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'f569WXsAGpBQyeYsPDJW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 17:17:34.520753', "updated_at" = '2013-07-15 17:17:34.520753', "authentication_token" = 'f569WXsAGpBQyeYsPDJW' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) 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 17:17:34 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:17:34 UTC +00:00], ["user_id", 1]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test7"  (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.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.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)   (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Mon, 15 Jul 2013 17:17:34 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$qRvotTe5dm/SbZFZUAABS.e3FYrehngGfX2gtLEUCxYrZja7maLv6"], ["updated_at", Mon, 15 Jul 2013 17:17:34 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", Mon, 15 Jul 2013 17:17:34 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 2], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 17:17:34 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'for2p5jfuGXsnMoeZC5U' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 2, "created_at" = '2013-07-15 17:17:34.674902', "updated_at" = '2013-07-15 17:17:34.674902', "authentication_token" = 'for2p5jfuGXsnMoeZC5U' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Mon, 15 Jul 2013 17:17:34 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:17:34 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:17:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:17:34 -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 ('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" = 'user8@example.com' LIMIT 1 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' LIMIT 1  (4.8ms) 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  (15.6ms) 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  (1.0ms) 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 17:17:34 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$UOKDUXMNh3t8aFum76G6r.x00Rg1e/dsXUs6MtgrOwcMvDB9fDWN6"], ["updated_at", Mon, 15 Jul 2013 17:17:34 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 (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", Mon, 15 Jul 2013 17:17:34 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 17:17:34 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xXZiZ3dp6K1Zy7Dms8mk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 17:17:34.837625', "updated_at" = '2013-07-15 17:17:34.837625', "authentication_token" = 'xXZiZ3dp6K1Zy7Dms8mk' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 17:17:34 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:17:34 UTC +00:00], ["user_id", 1]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test9"  (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)  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) 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)   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) 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.8ms) 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 ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:17:34 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@example.com' LIMIT 1  (6.2ms) ROLLBACK  (0.9ms) 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.1ms) 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 Connecting to database specified by database.yml  (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  (5.4ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (10.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (57.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 17:19:40 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$Dq9rW4DtzHdYjjcFHKuIhOkKCtzd02yWRo1zGiGY9rsPRRzwP5afi"], ["updated_at", Mon, 15 Jul 2013 17:19:40 UTC +00:00]]  (4.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 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", Mon, 15 Jul 2013 17:19:40 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 17:19:40 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Xv7tvH3w71UND2R3UqJp' LIMIT 1  (1.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 17:19:40.413745', "updated_at" = '2013-07-15 17:19:40.413745', "authentication_token" = 'Xv7tvH3w71UND2R3UqJp' WHERE "public"."cadenero_accounts"."id" = 1  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 17:19:40 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:19:40 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test1"  (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)   (0.9ms) 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")  (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)  (1.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('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-15 12:19:40 -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 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:19:40 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (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 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.4ms) 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 141ms (Views: 27.6ms | ActiveRecord: 3.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:19:40 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 12:19:40 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user1@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" = 'test1' 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 17:19:40 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$ln3eOUyN4U0bHz//h8TSRuKcSfyPZMS1qCbtXRULSu8Q10YcVU/pW"], ["updated_at", Mon, 15 Jul 2013 17:19:40 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", 1], ["created_at", Mon, 15 Jul 2013 17:19:40 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:19:40 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 112ms (Views: 5.0ms | ActiveRecord: 2.5ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:19:40 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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 (1.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 12ms (Views: 5.2ms | ActiveRecord: 2.9ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:19:40 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 6ms (Views: 3.9ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user1@example.com' LIMIT 1  (8.3ms) 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  (42.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) 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.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 17:19:41 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$YWBoHinP2jN3ReZwoDc6rOD/Ux01ilolDljZfTxjoveiLo8ohIjQm"], ["updated_at", Mon, 15 Jul 2013 17:19:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.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", Mon, 15 Jul 2013 17:19:41 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 17:19:41 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fS3uxdSaUiszTYhYhKdk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 17:19:41.232265', "updated_at" = '2013-07-15 17:19:41.232265', "authentication_token" = 'fS3uxdSaUiszTYhYhKdk' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.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 17:19:41 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:19:41 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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.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")  (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)  (4.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:19:41 -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 12:19:41 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.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" = 'user2@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 115ms (Views: 4.6ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:19:41 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (6.3ms) 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  (17.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (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 17:19:41 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$5z9BZvoqTnVNekHAh.UDhesdsLG6VIrX0h2x9lr4ZXnjv27Etm0q6"], ["updated_at", Mon, 15 Jul 2013 17:19:41 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Mon, 15 Jul 2013 17:19:41 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 17:19:41 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Up76h2HErMwpyWusp35e' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 17:19:41.632068', "updated_at" = '2013-07-15 17:19:41.632068', "authentication_token" = 'Up76h2HErMwpyWusp35e' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 17:19:41 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:19:41 UTC +00:00], ["user_id", 1]]  (5.6ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test3"  (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)   (5.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (5.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.7ms) 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-15 12:19:41 -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 12:19:41 -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' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 17:19:41 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$j.855lq4h16GTreMsSEdFeFxiQwmOs9Hi5FAXqs9nmMck5XDjl9t2"], ["updated_at", Mon, 15 Jul 2013 17:19:41 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", Mon, 15 Jul 2013 17:19:41 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:19:41 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 114ms (Views: 4.9ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:19:41 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:19:41 -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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 6ms (Views: 3.8ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:19:41 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (5.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  (14.6ms) 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.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 17:19:42 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$ZqvDsypR5bSxcIBBtNQRFucCBBb8.rtTi0SSHQJDv/5lFIZRctiIC"], ["updated_at", Mon, 15 Jul 2013 17:19:42 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.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", Mon, 15 Jul 2013 17:19:42 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 17:19:42 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'HCVVoCyLnPMLM5BWzQvc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 17:19:42.063622', "updated_at" = '2013-07-15 17:19:42.063622', "authentication_token" = 'HCVVoCyLnPMLM5BWzQvc' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.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 17:19:42 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:19:42 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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)  (2.2ms) 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.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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.2ms) 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 ('20130612073709')  (0.1ms) 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-15 12:19:42 -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 (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" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 114ms (Views: 5.3ms | ActiveRecord: 2.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:19:42 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:19:42 -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.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  (61.9ms) 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  (0.1ms) 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 17:19:42 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$3WwXKKWr2WNF.91ZEBF8IumkEcO6J3mT2TEJ1Y28uQ12sXQ/OKBv."], ["updated_at", Mon, 15 Jul 2013 17:19:42 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.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", Mon, 15 Jul 2013 17:19:42 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 17:19:42 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oJY3oyRFKaLwn61VMsR2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 17:19:42.479433', "updated_at" = '2013-07-15 17:19:42.479433', "authentication_token" = 'oJY3oyRFKaLwn61VMsR2' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 17:19:42 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:19:42 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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)  (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.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")  (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)  (1.2ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:19:42 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user5@example.com' LIMIT 1  (5.4ms) ROLLBACK  (1.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  (15.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.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 17:19:42 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$O6zTPUTp8yJohf7yTPUrm.6f94.KnDgEprLiWGx6tUlnYMtAKCP7C"], ["updated_at", Mon, 15 Jul 2013 17:19:42 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.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", Mon, 15 Jul 2013 17:19:42 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 17:19:42 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Zdy1tyjUcoWb6UvM29Sq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 17:19:42.685628', "updated_at" = '2013-07-15 17:19:42.685628', "authentication_token" = 'Zdy1tyjUcoWb6UvM29Sq' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 1], ["created_at", Mon, 15 Jul 2013 17:19:42 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:19:42 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test6"  (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.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.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)   (1.5ms) 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")  (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)  (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.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-15 12:19:42 -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 12:19:42 -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 ('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"."email" = 'user@example.com' LIMIT 1 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' LIMIT 1  (4.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  (13.5ms) 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  (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 17:19:42 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$bEDOOIy2OLZGd1Z8c6Liy.DnBme5BuI99aR8zmeGZDRW/rvc2RjPy"], ["updated_at", Mon, 15 Jul 2013 17:19:42 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 (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", Mon, 15 Jul 2013 17:19:42 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 17:19:42 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vyANHnXrHdHxxMCQWGJw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 17:19:42.899683', "updated_at" = '2013-07-15 17:19:42.899683', "authentication_token" = 'vyANHnXrHdHxxMCQWGJw' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) 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 17:19:42 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:19:42 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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")  (1.7ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) 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.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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.5ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) 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-15 12:19:42 -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 12:19:42 -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 ('test7') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.3ms) 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  (0.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 17:19:43 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$EZusAtfMCAzVGeexD45HR.yupPoYKaWbhZd/dhyRoGsWen2paUiFi"], ["updated_at", Mon, 15 Jul 2013 17:19:43 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" = 'test8' 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", Mon, 15 Jul 2013 17:19:43 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 17:19:43 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PrpGfSXffjzeK6AJWuFC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 17:19:43.125316', "updated_at" = '2013-07-15 17:19:43.125316', "authentication_token" = 'PrpGfSXffjzeK6AJWuFC' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:19:43 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:19:43 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test8"  (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)  (1.2ms) 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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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")  (0.2ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Mon, 15 Jul 2013 17:19:43 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$VnOuGI5XkTrun.Fm7ZMlYe.ANUNaWktnTKGw73qQ/dfsRbSFOvmOe"], ["updated_at", Mon, 15 Jul 2013 17:19:43 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", Mon, 15 Jul 2013 17:19:43 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 2], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 17:19:43 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JdAvb6PxzRCSUnRD23xU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 2, "created_at" = '2013-07-15 17:19:43.281274', "updated_at" = '2013-07-15 17:19:43.281274', "authentication_token" = 'JdAvb6PxzRCSUnRD23xU' WHERE "public"."cadenero_accounts"."id" = 2  (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", Mon, 15 Jul 2013 17:19:43 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:19:43 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:19:43 -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 12:19:43 -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.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 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.9ms) ROLLBACK  (0.7ms) 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.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.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.2ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (51.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 17:21:32 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$SZroQ5S6SDwzyX1.GdRia.VpPF8FxFBiv0GBgB.5VDY9nGlP0c4xC"], ["updated_at", Mon, 15 Jul 2013 17:21:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 17:21:33 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 17:21:33 UTC +00:00]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zigiUCxUjkTTNQDN9ng8' LIMIT 1  (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 17:21:33.024538', "updated_at" = '2013-07-15 17:21:33.024538', "authentication_token" = 'zigiUCxUjkTTNQDN9ng8' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 SQL (1.9ms) 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 17:21:33 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:21:33 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (3.1ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) 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)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.1ms) 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)   (2.2ms) 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.7ms) 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 GET "/v1" for 127.0.0.1 at 2013-07-15 12:21:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 12:21:33 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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 17:21:33 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$il8QfRnbXiywqkFDSvQMhevVSEqQbUij/U7ihxz4JZH2ic99vYnE."], ["updated_at", Mon, 15 Jul 2013 17:21:33 UTC +00:00]] 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", 1], ["created_at", Mon, 15 Jul 2013 17:21:33 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:21:33 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."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" = 2 Completed 201 Created in 178ms (Views: 43.8ms | ActiveRecord: 5.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:21:33 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.5ms | 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 12:21:33 -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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 8ms (Views: 4.5ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user_second@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:21:33 -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" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.9ms) 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  (18.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.4ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 17:21:33 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$0Gs3X8LOVrckU.3dMGH48.ZiaroZfk7WTDSXq/5IrXF42tnuCSv6."], ["updated_at", Mon, 15 Jul 2013 17:21:33 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" = 'test2' 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", Mon, 15 Jul 2013 17:21:33 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 17:21:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RJzUzo746mfyq9zdznfR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 17:21:33.759510', "updated_at" = '2013-07-15 17:21:33.759510', "authentication_token" = 'RJzUzo746mfyq9zdznfR' WHERE "public"."cadenero_accounts"."id" = 1  (0.2ms) 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", Mon, 15 Jul 2013 17:21:33 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:21:33 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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.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")  (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)   (3.0ms) 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")  (8.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.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 ('20130612073709')  (0.1ms) 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-15 12:21:33 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') 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" = 'user2@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 121ms (Views: 4.8ms | ActiveRecord: 5.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user2@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:21:33 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:21:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (9.5ms) 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  (18.7ms) 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.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 17:21:34 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$UaMfxJsrsXCCc9JcrX1rdOu9.G.FsCM8Zqd7OUmazm0pSAXr15WjO"], ["updated_at", Mon, 15 Jul 2013 17:21:34 UTC +00:00]]  (0.6ms) 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 (1.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", Mon, 15 Jul 2013 17:21:34 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 17:21:34 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dxHxmJRkvpBCB9dJJFBz' LIMIT 1  (1.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 17:21:34.188654', "updated_at" = '2013-07-15 17:21:34.188654', "authentication_token" = 'dxHxmJRkvpBCB9dJJFBz' WHERE "public"."cadenero_accounts"."id" = 1  (4.2ms) RELEASE SAVEPOINT active_record_1  (2.3ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 17:21:34 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:21:34 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test3"  (8.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)  (2.1ms) 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")  (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)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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)  (1.2ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:21:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:21:34 -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.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" = 'user3@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 (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 135ms (Views: 7.0ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (3.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user3@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:21:34 -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" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.7ms | ActiveRecord: 0.3ms)  (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  (20.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.1ms) 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 17:21:34 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$cpKfJchfTpb7E/PD6HaM5upyIOVEuNjHPbbg7H15kibBjYNPZGjyy"], ["updated_at", Mon, 15 Jul 2013 17:21:34 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 (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", Mon, 15 Jul 2013 17:21:34 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 17:21:34 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZzJLkhrGKu2hmVehUgeo' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 17:21:34.653449', "updated_at" = '2013-07-15 17:21:34.653449', "authentication_token" = 'ZzJLkhrGKu2hmVehUgeo' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.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", Mon, 15 Jul 2013 17:21:34 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:21:34 UTC +00:00], ["user_id", 1]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (1.4ms) CREATE SCHEMA "test4"  (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.4ms) 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")  (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)   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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")  (2.0ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (4.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:21:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:21:34 -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 (7.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" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 125ms (Views: 4.6ms | ActiveRecord: 8.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:21:34 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:21:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 12:21:34 -0500 Processing by Cadenero::V1::Account::UsersController#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" = 'test4' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 17:21:34 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$W9HgStXzjK4axbccaSSxp.L2K29oGWodhxHebcU2yr/iu7dgPdp2G"], ["updated_at", Mon, 15 Jul 2013 17:21:34 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", 1], ["created_at", Mon, 15 Jul 2013 17:21:34 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:21:34 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 117ms (Views: 5.1ms | ActiveRecord: 3.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:21:35 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 1.6ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:21:35 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user4@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 7ms (Views: 4.2ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user4@example.com' LIMIT 1  (6.8ms) 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  (28.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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.4ms) BEGIN  (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", Mon, 15 Jul 2013 17:21:35 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$COt.LxUpUHff4Paij6sjdOmEc.5NCiOOMI3jwlWhqWbEjU1odNT8S"], ["updated_at", Mon, 15 Jul 2013 17:21:35 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", Mon, 15 Jul 2013 17:21:35 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 17:21:35 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'F9zdUhsgmh1Z7ibSAFv8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 17:21:35.274822', "updated_at" = '2013-07-15 17:21:35.274822', "authentication_token" = 'F9zdUhsgmh1Z7ibSAFv8' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 17:21:35 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:21:35 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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" ("authentication_token")  (1.0ms) 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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.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)  (14.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:21: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/sessions" for 127.0.0.1 at 2013-07-15 12:21:35 -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.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 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.5ms) 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  (18.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.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", Mon, 15 Jul 2013 17:21:35 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$wYB0xj5lYOjfd9gqwGZ0YeVNICuyjJ5itF9PIb3.vT5mYhH2PqZzq"], ["updated_at", Mon, 15 Jul 2013 17:21:35 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 (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", Mon, 15 Jul 2013 17:21:35 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 17:21:35 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xJ7A2VsWHXWfxuvsxJps' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 17:21:35.534197', "updated_at" = '2013-07-15 17:21:35.534197', "authentication_token" = 'xJ7A2VsWHXWfxuvsxJps' WHERE "public"."cadenero_accounts"."id" = 1  (1.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", Mon, 15 Jul 2013 17:21:35 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:21:35 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.8ms) 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")  (5.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)   (1.4ms) 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.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.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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Mon, 15 Jul 2013 17:21:35 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$/9jrL/1KPxK3GkuiEboD6eKDOA5wyL0A/JBQS5Kq5k/yO1joGVXDK"], ["updated_at", Mon, 15 Jul 2013 17:21:35 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.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", Mon, 15 Jul 2013 17:21:35 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 2], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 17:21:35 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '83MMj5qrGqs7sy4FtjfN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 2, "created_at" = '2013-07-15 17:21:35.699077', "updated_at" = '2013-07-15 17:21:35.699077', "authentication_token" = '83MMj5qrGqs7sy4FtjfN' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Mon, 15 Jul 2013 17:21:35 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:21:35 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:21: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/sessions" for 127.0.0.1 at 2013-07-15 12:21:35 -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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') 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" = 'user7@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.5ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.2ms) ROLLBACK  (1.0ms) 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  (18.5ms) 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.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 17:21:35 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$WJ.QvilPBKn.kbvQXvDdR.OtwBuCjJid.UwhsAsfSiawgj845Q8nG"], ["updated_at", Mon, 15 Jul 2013 17:21:35 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" = 'test8' 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", Mon, 15 Jul 2013 17:21:35 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 17:21:35 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7iyy7u7qFaaJ3pNM7tyL' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 17:21:35.876148', "updated_at" = '2013-07-15 17:21:35.876148', "authentication_token" = '7iyy7u7qFaaJ3pNM7tyL' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:21:35 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:21:35 UTC +00:00], ["user_id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test8"  (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)  (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.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)   (1.2ms) 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")  (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.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:21: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/sessions" for 127.0.0.1 at 2013-07-15 12:21:35 -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 (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" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.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  (3.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  (12.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 (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 17:21:36 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$mWZnhtFeFk3e1zb0lZfVqOJwglPt75imZvZa2/y3fzI.vgAlp7iPO"], ["updated_at", Mon, 15 Jul 2013 17:21:36 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" = '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", Mon, 15 Jul 2013 17:21:36 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 17:21:36 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'y6emwhTqdjBkBe2BkERz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 17:21:36.174385', "updated_at" = '2013-07-15 17:21:36.174385', "authentication_token" = 'y6emwhTqdjBkBe2BkERz' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (14.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", Mon, 15 Jul 2013 17:21:36 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:21:36 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.3ms) CREATE SCHEMA "test9"  (20.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)  (13.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.4ms) 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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (26.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.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.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-15 12:21:36 -0500 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user9@example.com' LIMIT 1  (19.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  (22.1ms) 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 Connecting to database specified by database.yml  (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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.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  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (53.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 17:23:21 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$mr0Pqx8IxIW25rtVjtJk8eem0OpgP42nhhg97ymYM0nKR9hdgbyjW"], ["updated_at", Mon, 15 Jul 2013 17:23:21 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 17:23:21 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 17:23:21 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DeFbCVzFBgvRyQcmPTTw' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 17:23:21.768163', "updated_at" = '2013-07-15 17:23:21.768163', "authentication_token" = 'DeFbCVzFBgvRyQcmPTTw' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) 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 17:23:21 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:23:21 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test1"  (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)   (0.9ms) 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")  (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)  (2.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.0ms) 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.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 ('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-15 12:23: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 6ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:23:22 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (0.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" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 146ms (Views: 34.2ms | ActiveRecord: 2.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 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:23:22 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:23:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 12:23:22 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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 17:23:22 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$JuBRZ5atsov55jLZ/2T8leG3fCwlecivP1LILmDAbMmOAdbjF1s8q"], ["updated_at", Mon, 15 Jul 2013 17:23:22 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", 1], ["created_at", Mon, 15 Jul 2013 17:23:22 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:23:22 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 120ms (Views: 5.0ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:23:22 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 4.9ms | ActiveRecord: 1.9ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:23:22 -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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 7ms (Views: 4.6ms | 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.9ms) 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  (27.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.4ms) 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", Mon, 15 Jul 2013 17:23:22 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$gVSTywvTCHHDxMA63gSGjeUwgsSreR.ZOakgJMsyEjRAfZ0n63YSS"], ["updated_at", Mon, 15 Jul 2013 17:23:22 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Mon, 15 Jul 2013 17:23:22 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 17:23:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZXCyiuhXgA6BrPMKYAo1' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 17:23:22.580948', "updated_at" = '2013-07-15 17:23:22.580948', "authentication_token" = 'ZXCyiuhXgA6BrPMKYAo1' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 17:23:22 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:23:22 UTC +00:00], ["user_id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.9ms) CREATE SCHEMA "test2"  (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")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.8ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.2ms) 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")  (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)   (2.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (7.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (3.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:23:22 -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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 117ms (Views: 4.6ms | ActiveRecord: 2.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 DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:23:22 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:23:22 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (4.0ms) 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  (17.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.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 17:23:22 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$FgTlcUF2gH1nz/ul27tfFuxBn9x4iQ5ywfQLerIfUoFcPnqio9j3C"], ["updated_at", Mon, 15 Jul 2013 17:23:22 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", Mon, 15 Jul 2013 17:23:22 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 17:23:22 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'AbqZxw9xGsur4xUUheVP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 17:23:22.968033', "updated_at" = '2013-07-15 17:23:22.968033', "authentication_token" = 'AbqZxw9xGsur4xUUheVP' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (6.4ms) 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 17:23:22 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:23:22 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)   (3.3ms) 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)  (0.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (8.2ms) 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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (9.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (8.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:23: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 12:23: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.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.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 17:23:23 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$0FQLmv.ksqgN.4XzRMN7he.YkqMmcIfm7vCNUX0EU2nfTf9kmwf1q"], ["updated_at", Mon, 15 Jul 2013 17:23: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", 1], ["created_at", Mon, 15 Jul 2013 17:23:23 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:23:23 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 114ms (Views: 5.0ms | ActiveRecord: 2.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/2" for 127.0.0.1 at 2013-07-15 12:23:23 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.6ms | ActiveRecord: 1.4ms) 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 12:23: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.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 8ms (Views: 4.3ms | ActiveRecord: 1.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 12:23:23 -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" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (5.5ms) ROLLBACK  (0.7ms) 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  (15.3ms) 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.5ms) 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 17:23:23 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$U7MFe0JRLcZyObsfcxLUl.vyG1QmCH8/9PRy0O5zsayyvldznhU.e"], ["updated_at", Mon, 15 Jul 2013 17:23:23 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.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", Mon, 15 Jul 2013 17:23:23 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 17:23:23 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XMbnrWNs7SsyPBDYzKYZ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 17:23:23.412443', "updated_at" = '2013-07-15 17:23:23.412443', "authentication_token" = 'XMbnrWNs7SsyPBDYzKYZ' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 17:23:23 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:23:23 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) 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.3ms) 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.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)   (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) 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-15 12:23: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 12:23:23 -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.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 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 105ms (Views: 4.4ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:23: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" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.1ms) 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  (18.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.1ms) BEGIN  (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", Mon, 15 Jul 2013 17:23:23 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$XKjStPOXY51Xrt0D87l2WOjDbNbLUUSxU.OG.OpW64yZGdaDhZiCC"], ["updated_at", Mon, 15 Jul 2013 17:23:23 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 (2.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", Mon, 15 Jul 2013 17:23:23 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 17:23:23 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eRkaaCTWdw6ZGaoLUh2J' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 17:23:23.895823', "updated_at" = '2013-07-15 17:23:23.895823', "authentication_token" = 'eRkaaCTWdw6ZGaoLUh2J' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 17:23:23 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:23:23 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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)  (3.3ms) 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.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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.7ms) 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-15 12:23:23 -0500 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.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  (13.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.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 17:23:24 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$pNfNb1tNz4eYAbQuXp56Ce.2/Dlk4s46iif3c.bl9yOvidfmFVVwi"], ["updated_at", Mon, 15 Jul 2013 17:23:24 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.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", Mon, 15 Jul 2013 17:23:24 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 17:23:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8tciDdQhDz8KkKLSxxwM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 17:23:24.095938', "updated_at" = '2013-07-15 17:23:24.095938', "authentication_token" = '8tciDdQhDz8KkKLSxxwM' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:23:24 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:23:24 UTC +00:00], ["user_id", 1]]  (1.7ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.4ms) 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.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)   (2.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Mon, 15 Jul 2013 17:23:24 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$orqOyeoZcSr6hxlxv4aoyuiykHO77Ikh.xk.J6IqG5Nr5Lb8LzTxS"], ["updated_at", Mon, 15 Jul 2013 17:23:24 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (0.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", Mon, 15 Jul 2013 17:23:24 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 2], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 17:23:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZVuofRFTZwc68eBRGjyp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 2, "created_at" = '2013-07-15 17:23:24.255387', "updated_at" = '2013-07-15 17:23:24.255387', "authentication_token" = 'ZVuofRFTZwc68eBRGjyp' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Mon, 15 Jul 2013 17:23:24 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:23:24 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:23: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.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:23:24 -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 ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.6ms) 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  (15.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (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 17:23:24 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$xFygr5GmQQYpqOiCoG9fV.19emz1.irkoz.JR4CC4jugxCZmUriQG"], ["updated_at", Mon, 15 Jul 2013 17:23:24 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" = 'test8' 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", Mon, 15 Jul 2013 17:23:24 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 17:23:24 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UYFtnSiaCnRSFMmkxhrx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 17:23:24.424831', "updated_at" = '2013-07-15 17:23:24.424831', "authentication_token" = 'UYFtnSiaCnRSFMmkxhrx' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) 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 17:23:24 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:23:24 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test8"  (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" ("authentication_token")  (1.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.6ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.5ms) 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-15 12:23: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.5ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:23: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 ('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"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.9ms) 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  (15.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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.7ms) BEGIN  (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", Mon, 15 Jul 2013 17:23:24 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$riyQtrdQNhzcU.r6GSVZH.eupg6IRL00DI0hMHp9Yt/rx/EFcUAS."], ["updated_at", Mon, 15 Jul 2013 17:23:24 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.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", Mon, 15 Jul 2013 17:23:24 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 17:23:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'kNx9cfzSycUhhC42HAep' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 17:23:24.641883', "updated_at" = '2013-07-15 17:23:24.641883', "authentication_token" = 'kNx9cfzSycUhhC42HAep' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) 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 17:23:24 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:23:24 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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.4ms) 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")  (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)   (1.2ms) 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")  (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"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:23: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 12:23: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 ('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" = 'user@example.com' LIMIT 1 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' LIMIT 1  (2.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  (15.1ms) 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  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (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  (0.3ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (49.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 17:26:56 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$m3q39FGhji49DbCi4HiC9uvyC.zUPW2dcBtzo45xr17WPjyaB.8tO"], ["updated_at", Mon, 15 Jul 2013 17:26:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Mon, 15 Jul 2013 17:26:57 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 17:26:57 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'MhCpLxH9QkqgLfD4yCZm' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 17:26:57.063353', "updated_at" = '2013-07-15 17:26:57.063353', "authentication_token" = 'MhCpLxH9QkqgLfD4yCZm' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) 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 17:26:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:26:57 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test1"  (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.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.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)  (6.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.1ms) 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)   (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.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 ('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-15 12:26: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 6ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:26:57 -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 (3.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" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 159ms (Views: 29.4ms | ActiveRecord: 5.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:26: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" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (9.1ms) ROLLBACK  (1.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  (61.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (8.2ms) 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  (2.7ms) BEGIN  (3.3ms) SAVEPOINT active_record_1 SQL (4.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 17:26:57 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$KddvDB6RaBMXmJJ4GoISUeZGfWEFyNn33kNuZnn9sdNKRE8ejen.S"], ["updated_at", Mon, 15 Jul 2013 17:26:57 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (5.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (3.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", Mon, 15 Jul 2013 17:26:57 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 17:26:57 UTC +00:00]] Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mHdDJ9bxxXZ3H2oeyjxP' LIMIT 1  (9.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 17:26:57.805713', "updated_at" = '2013-07-15 17:26:57.805713', "authentication_token" = 'mHdDJ9bxxXZ3H2oeyjxP' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 17:26:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:26:57 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)   (6.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (8.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) 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")  (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.9ms) 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 ('20130612073709')  (4.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:26: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) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 12:26: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (7.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 17:26:58 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$sK1xahMSFEWDaVti7hwfR.0ZYgTHH1viRkKFkOKEwrR0HmUqMU1Mu"], ["updated_at", Mon, 15 Jul 2013 17:26:58 UTC +00:00]] 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", Mon, 15 Jul 2013 17:26:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:26:58 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 130ms (Views: 5.9ms | ActiveRecord: 11.5ms) Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:26:58 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (2.7ms) 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (5.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (7.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" = 2 Completed 200 OK in 32ms (Views: 6.6ms | ActiveRecord: 16.1ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:26: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 (5.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 19ms (Views: 9.8ms | ActiveRecord: 7.7ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:26:58 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.7ms)  (6.2ms) ROLLBACK  (2.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  (31.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.8ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 17:26:58 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$8cLUDWT3WEc6sWAerDt3uu4OCG09BPsoC9d7pBh/UL9Kf8nelEIdK"], ["updated_at", Mon, 15 Jul 2013 17:26:58 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 (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", Mon, 15 Jul 2013 17:26:58 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 17:26:58 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pVfYBYSsGqK7cyoxTeWT' LIMIT 1  (2.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 17:26:58.297405', "updated_at" = '2013-07-15 17:26:58.297405', "authentication_token" = 'pVfYBYSsGqK7cyoxTeWT' WHERE "public"."cadenero_accounts"."id" = 1  (4.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 17:26:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:26:58 UTC +00:00], ["user_id", 1]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (11.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (2.2ms) 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")  (9.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.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) 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-15 12:26: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.3ms) 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 Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (6.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 180ms (Views: 16.4ms | ActiveRecord: 9.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:26:58 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:26: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)  (4.3ms) 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  (32.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (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", Mon, 15 Jul 2013 17:26:58 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$EAaNhaKglAWiorsajhcMruIj3rDgtpfzO8jq9NT0mHZGR9SH8dI7O"], ["updated_at", Mon, 15 Jul 2013 17:26:58 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 (1.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", Mon, 15 Jul 2013 17:26:58 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 17:26:58 UTC +00:00]] Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pb9ihRyL7eWUbfish7aB' LIMIT 1  (4.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 17:26:58.846954', "updated_at" = '2013-07-15 17:26:58.846954', "authentication_token" = 'pb9ihRyL7eWUbfish7aB' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (1.9ms) 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 17:26:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:26:58 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (2.3ms) 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.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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) 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-15 12:26: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 (17.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test4') 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" = 1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 Cadenero::V1::Account Load (2.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 147ms (Views: 4.9ms | ActiveRecord: 22.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 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:26:59 -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 2ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:26: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/users" for 127.0.0.1 at 2013-07-15 12:26: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 (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.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 17:26:59 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$.WD57GzKTq51LZrxdGStJO2fDo3/qAB1JTaRO3bB3IbGR5GJD0S8G"], ["updated_at", Mon, 15 Jul 2013 17:26:59 UTC +00:00]] SQL (2.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", Mon, 15 Jul 2013 17:26:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:26:59 UTC +00:00], ["user_id", 2]]  (1.4ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (7.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 272ms (Views: 6.7ms | ActiveRecord: 13.6ms) 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/2" for 127.0.0.1 at 2013-07-15 12:26:59 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (12.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 29ms (Views: 7.9ms | ActiveRecord: 17.1ms) Cadenero::User Load (0.8ms) 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 12:26: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.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 6ms (Views: 3.9ms | ActiveRecord: 0.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  (4.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  (13.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  (0.2ms) BEGIN  (0.6ms) 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", Mon, 15 Jul 2013 17:26:59 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$w.OTLAZBpcbZE0oQpuUXWuCJlOLq92xQ7qYt/QGIqJU9i49b2UBEO"], ["updated_at", Mon, 15 Jul 2013 17:26:59 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.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", Mon, 15 Jul 2013 17:26:59 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 17:26:59 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3NqSmsjLgzxwJ1pyVFht' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 17:26:59.638520', "updated_at" = '2013-07-15 17:26:59.638520', "authentication_token" = '3NqSmsjLgzxwJ1pyVFht' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:26:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:26:59 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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)  (2.2ms) 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")  (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)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) 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.8ms) 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-15 12:26: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 12:26: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.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 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' LIMIT 1  (3.1ms) ROLLBACK  (0.9ms) 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  (18.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.3ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 SQL (2.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 17:26:59 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$n2LJApHfK/I2XsNk.mAvieXcyFiGj0F7RAyDgRFtrHFGPqIwnRhOq"], ["updated_at", Mon, 15 Jul 2013 17:26:59 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" = 'test6' LIMIT 1 SQL (3.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", Mon, 15 Jul 2013 17:26:59 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 17:26:59 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pqRHhr1a26Eg2kwTarM5' LIMIT 1  (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 17:26:59.884055', "updated_at" = '2013-07-15 17:26:59.884055', "authentication_token" = 'pqRHhr1a26Eg2kwTarM5' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) 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 17:26:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:26:59 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (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)  (1.1ms) 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.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)   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.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 ('20130612073709')  (0.3ms) 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-15 12:26: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 12:26: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.4ms) 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" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 1.5ms) Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.6ms) 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.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.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 17:27:00 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$825XMCjxJ1vxPLRrK0Czp.omyCvUMObYFrWzl91t3D6y795nqo89i"], ["updated_at", Mon, 15 Jul 2013 17:27:00 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", Mon, 15 Jul 2013 17:27:00 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 17:27:00 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QyCWbt1K5kCdppzm4nrQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 17:27:00.118629', "updated_at" = '2013-07-15 17:27:00.118629', "authentication_token" = 'QyCWbt1K5kCdppzm4nrQ' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 17:27:00 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:27:00 UTC +00:00], ["user_id", 1]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test7"  (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.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")  (5.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.5ms) 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")  (7.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)   (3.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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 17:27:00 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$S8GoBOXQrRStdKhNG412Yu70D7j/b1VoFQGOeBBD9a0Z5l9NBXo/6"], ["updated_at", Mon, 15 Jul 2013 17:27:00 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", Mon, 15 Jul 2013 17:27:00 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 2], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 17:27:00 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '78MXCwPbWfuxyyxSYUyd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 2, "created_at" = '2013-07-15 17:27:00.280511', "updated_at" = '2013-07-15 17:27:00.280511', "authentication_token" = '78MXCwPbWfuxyyxSYUyd' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Mon, 15 Jul 2013 17:27:00 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:27:00 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:27:00 -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 12:27:00 -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 ('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" = 'user8@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (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  (5.9ms) ROLLBACK  (2.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  (21.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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 (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 17:27:00 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$ZI7.SXgFnzAlwaha1vuzmeoqAv4XXsdZJxd7keVUBwCKHb3gBIINq"], ["updated_at", Mon, 15 Jul 2013 17:27:00 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.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", Mon, 15 Jul 2013 17:27:00 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 17:27:00 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'paNnDwHQSpoJCoZyuJqt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 17:27:00.476203', "updated_at" = '2013-07-15 17:27:00.476203', "authentication_token" = 'paNnDwHQSpoJCoZyuJqt' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:27:00 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:27:00 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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)  (2.3ms) 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)   (1.2ms) 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")  (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.2ms) 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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.4ms) 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-15 12:27:00 -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  (5.6ms) ROLLBACK  (0.4ms) 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  (15.1ms) 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 Connecting to database specified by database.yml  (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  (2.6ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) 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  (2.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (49.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 17:33:10 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$yMmLFcu545QrDC/0leU87eFajE8FG/zV3nDfnoMmijMBhSFcmKGjm"], ["updated_at", Mon, 15 Jul 2013 17:33:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Mon, 15 Jul 2013 17:33:10 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 17:33:10 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zT9PK5MpQ43x9hxxcaVW' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 17:33:10.121727', "updated_at" = '2013-07-15 17:33:10.121727', "authentication_token" = 'zT9PK5MpQ43x9hxxcaVW' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:33:10 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:10 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test1"  (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.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.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)  (0.9ms) 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")  (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)  (4.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.9ms) SELECT version FROM "schema_migrations"  (0.5ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:33:10 -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.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') 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" = 1 AND "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) 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 142ms (Views: 27.1ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:33: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 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:33: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/users" for 127.0.0.1 at 2013-07-15 12:33:10 -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" = 'test1' 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 17:33:10 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$BC/iLTxYGQukldZiBVf5DOI26zETishBfELhD3MlNWkxuVRAZYWP6"], ["updated_at", Mon, 15 Jul 2013 17:33:10 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", 1], ["created_at", Mon, 15 Jul 2013 17:33:10 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:10 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 113ms (Views: 5.4ms | ActiveRecord: 2.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/2" for 127.0.0.1 at 2013-07-15 12:33:10 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 12ms (Views: 4.9ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:33:10 -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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 6ms (Views: 4.2ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.8ms) 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  (11.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.3ms) 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", Mon, 15 Jul 2013 17:33:10 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$W4Hlh3DBjfC3b/PsuubiQ.YXhijhnkzpXRBVBys53cDnQsnJUd0Su"], ["updated_at", Mon, 15 Jul 2013 17:33: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" = 'test2' 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", Mon, 15 Jul 2013 17:33:10 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 17:33:10 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fD4BTsMqdp3zdx4rU8Z9' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 17:33:10.874460', "updated_at" = '2013-07-15 17:33:10.874460', "authentication_token" = 'fD4BTsMqdp3zdx4rU8Z9' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 17:33:10 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:10 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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)   (2.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:33:10 -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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user2@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 109ms (Views: 4.6ms | 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 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:33:11 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:33:11 -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)  (7.4ms) 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  (22.7ms) 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  (3.3ms) SAVEPOINT active_record_1 SQL (9.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 17:33:11 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$5fib5pt1YXu5AJb8z50QAutn3pE/kn.72uh9zd/EEqicGofbZOzkS"], ["updated_at", Mon, 15 Jul 2013 17:33:11 UTC +00:00]]  (0.8ms) 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 (1.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", Mon, 15 Jul 2013 17:33:11 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 17:33:11 UTC +00:00]] Cadenero::V1::Account Load (3.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Z2cxMcNBPy4Q4iefDNR3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 17:33:11.250778', "updated_at" = '2013-07-15 17:33:11.250778', "authentication_token" = 'Z2cxMcNBPy4Q4iefDNR3' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:33:11 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:11 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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)   (7.7ms) 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.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)  (4.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.8ms) 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.6ms) 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"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:33:11 -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 12:33:11 -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' 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 17:33:11 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$XYOsuSlrgANhmslj9NFP4.7t00LITzq2hNJMj9O6crDiAaosmMpcC"], ["updated_at", Mon, 15 Jul 2013 17:33:11 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", Mon, 15 Jul 2013 17:33:11 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:11 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 112ms (Views: 5.0ms | ActiveRecord: 2.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:33:11 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 1.4ms) 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 12:33:11 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 6ms (Views: 3.9ms | 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 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:33:11 -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" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.2ms) 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  (13.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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", Mon, 15 Jul 2013 17:33:11 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$fmSEVQC9LBXz0C9bUJFtpOssFM3ISI77955rVx3uem8dd/qiENJU6"], ["updated_at", Mon, 15 Jul 2013 17:33:11 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 (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", Mon, 15 Jul 2013 17:33:11 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 17:33:11 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'd1rodBopRp4TZepmayQw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 17:33:11.701723', "updated_at" = '2013-07-15 17:33:11.701723', "authentication_token" = 'd1rodBopRp4TZepmayQw' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 17:33:11 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:11 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (9.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.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)   (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")  (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)   (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 ('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-15 12:33:11 -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 12:33:11 -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.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 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 107ms (Views: 4.4ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:33:11 -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" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.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  (11.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.4ms) BEGIN  (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", Mon, 15 Jul 2013 17:33:12 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$wAEZsP.b7c0K73vmCLPQROuQvoZi/RM9DtSF9Fx8/uxNWpVHZ1hje"], ["updated_at", Mon, 15 Jul 2013 17:33:12 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.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", Mon, 15 Jul 2013 17:33:12 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 17:33:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mVDu61ap9FzqxsfETzuV' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 17:33:12.040576', "updated_at" = '2013-07-15 17:33:12.040576', "authentication_token" = 'mVDu61ap9FzqxsfETzuV' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 17:33:12 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:12 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (18.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.1ms) 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.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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) 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)  (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"  (5.5ms) 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-15 12:33:12 -0500 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.3ms) 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  (30.9ms) 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", Mon, 15 Jul 2013 17:33:12 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$idPs/9k.lxZsnkOP98kGSO/nfz7Acd7dhtkDiibGwrgwej.cJMOtC"], ["updated_at", Mon, 15 Jul 2013 17:33:12 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.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", Mon, 15 Jul 2013 17:33:12 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 17:33:12 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6znEddWQ4VCfxVpzERNs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 17:33:12.303373', "updated_at" = '2013-07-15 17:33:12.303373', "authentication_token" = '6znEddWQ4VCfxVpzERNs' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:33:12 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:12 UTC +00:00], ["user_id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test6"  (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.3ms) 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")  (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)   (0.9ms) 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")  (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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Mon, 15 Jul 2013 17:33:12 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$fNyqh3Eul1Fj7fPQpfzP5unrMcygaFYrZA9TA05wzWUV3u/8QH75W"], ["updated_at", Mon, 15 Jul 2013 17:33: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" = '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", Mon, 15 Jul 2013 17:33:12 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 2], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 17:33:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WsKuHnR99Hy2eiiydz1T' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 2, "created_at" = '2013-07-15 17:33:12.458721', "updated_at" = '2013-07-15 17:33:12.458721', "authentication_token" = 'WsKuHnR99Hy2eiiydz1T' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) 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", 2], ["created_at", Mon, 15 Jul 2013 17:33:12 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:12 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:33:12 -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 12:33:12 -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 ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | 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  (6.7ms) 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  (13.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.9ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (2.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 17:33:12 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$8PuQ4JfjNUCpjVL1zvT9COpE4BAVI53y6IrkWB2jBKwDE1h1doKSO"], ["updated_at", Mon, 15 Jul 2013 17:33:12 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" = 'test8' 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", Mon, 15 Jul 2013 17:33:12 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 17:33:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2N9y16ttFtt2qUqeCysB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 17:33:12.617516', "updated_at" = '2013-07-15 17:33:12.617516', "authentication_token" = '2N9y16ttFtt2qUqeCysB' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 17:33:12 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:12 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.7ms) CREATE SCHEMA "test8"  (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")  (2.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (0.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') Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:33:12 -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 12:33:12 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.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" = 'foo@example.com' LIMIT 1 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' LIMIT 1  (3.8ms) 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  (14.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.3ms) 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 17:33:12 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$iQutOke1F778eYIfMm6Wz.tVUKvz9wInNulmBTabU0WlkjC0bFs6S"], ["updated_at", Mon, 15 Jul 2013 17:33:12 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.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", Mon, 15 Jul 2013 17:33:12 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 17:33:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'AUt2S9hBp6q2Uyp6eDHN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 17:33:12.827094', "updated_at" = '2013-07-15 17:33:12.827094', "authentication_token" = 'AUt2S9hBp6q2Uyp6eDHN' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 17:33:12 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:12 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.3ms) 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")  (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)   (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:33:12 -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 12:33:12 -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.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 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.2ms) 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  (17.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (23.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (48.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 17:33:32 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$Q8Wn6OZBrof.8915Rn6zUeBtDigMCBMT0xrBEZ54v8PE31tCKtbWi"], ["updated_at", Mon, 15 Jul 2013 17:33:32 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" = 'test1' 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", Mon, 15 Jul 2013 17:33:32 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 17:33:32 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GPNz3nJ1CeepQs6QqUy2' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 17:33:32.380442', "updated_at" = '2013-07-15 17:33:32.380442', "authentication_token" = 'GPNz3nJ1CeepQs6QqUy2' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) 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 17:33:32 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:32 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (0.9ms) 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.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)  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (13.2ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('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-15 12:33:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:33:32 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (0.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" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 146ms (Views: 30.5ms | ActiveRecord: 2.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:33:32 -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" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (10.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  (24.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (9.7ms) 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", Mon, 15 Jul 2013 17:33:33 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$qO/9TsEwojb5JSYSYiL7aePLec8NMervf3xME8zRxBdbdzamyIYsK"], ["updated_at", Mon, 15 Jul 2013 17:33:33 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" = 'test2' 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", Mon, 15 Jul 2013 17:33:33 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 17:33:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hzCQUiJM3AL5jWRUfrys' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 17:33:33.005665', "updated_at" = '2013-07-15 17:33:33.005665', "authentication_token" = 'hzCQUiJM3AL5jWRUfrys' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 17:33:33 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:33 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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)   (3.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.4ms) 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)  (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.2ms) 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)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (8.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (2.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') Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:33:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 12:33:33 -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" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 17:33:33 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$.2zHfVB.McAlr3vPNNLuPebgh4.J5m1xbERKRF0AALsSqf9eWx6/2"], ["updated_at", Mon, 15 Jul 2013 17:33:33 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", Mon, 15 Jul 2013 17:33:33 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:33 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 116ms (Views: 4.8ms | 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 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:33:33 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 4.8ms | ActiveRecord: 1.4ms) 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 12:33:33 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 6ms (Views: 3.8ms | 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 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:33:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (5.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.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.8ms) 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.4ms) 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 17:33:33 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$LZaesxw.pYKLzhHIAVY/uehCd.9LnKBJvfL8l5JZeZdPeoUGmvvwW"], ["updated_at", Mon, 15 Jul 2013 17:33:33 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", Mon, 15 Jul 2013 17:33:33 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 17:33:33 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2eX2qYcj9VWZV4saFiD7' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 17:33:33.421671', "updated_at" = '2013-07-15 17:33:33.421671', "authentication_token" = '2eX2qYcj9VWZV4saFiD7' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 17:33:33 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:33 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (7.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" ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.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)   (3.5ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (9.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 ('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-15 12:33:33 -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.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" = 'user3@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 110ms (Views: 5.2ms | ActiveRecord: 2.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:33:33 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:33:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (6.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  (22.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  (0.1ms) SAVEPOINT active_record_1 SQL (4.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 17:33:33 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$OnTuzb7jk0CrKqupzw1iq.JWL.ilCvfOk61KBQNkAJASVVgELKiqq"], ["updated_at", Mon, 15 Jul 2013 17:33:33 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 (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", Mon, 15 Jul 2013 17:33:33 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 17:33:33 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Y3aprfirRQHWr93aSdx3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 17:33:33.892410', "updated_at" = '2013-07-15 17:33:33.892410', "authentication_token" = 'Y3aprfirRQHWr93aSdx3' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:33:33 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:33 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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)  (2.2ms) 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")  (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)   (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")  (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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) 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-15 12:33:33 -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.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" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 106ms (Views: 4.5ms | ActiveRecord: 2.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:33:34 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:33:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 12:33:34 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (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.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 17:33:34 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$hqvS08.n43CRd/4dtcGc/OvBQ5cbqmOIqQ3ZAu/gklt4p27mrIfnC"], ["updated_at", Mon, 15 Jul 2013 17:33:34 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", 1], ["created_at", Mon, 15 Jul 2013 17:33:34 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:34 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 110ms (Views: 4.7ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:33:34 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 9ms (Views: 4.7ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:33:34 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 6ms (Views: 3.8ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.1ms) 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  (15.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  (0.1ms) BEGIN  (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", Mon, 15 Jul 2013 17:33:34 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$sYIZ0J/ulIueD3RjdCVBz.o66ppJTZUBEltwu07lFjg14F0xq4wlm"], ["updated_at", Mon, 15 Jul 2013 17:33:34 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.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", Mon, 15 Jul 2013 17:33:34 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 17:33:34 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qqip5j5JxY3Qyy6Fxyyi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 17:33:34.456304', "updated_at" = '2013-07-15 17:33:34.456304', "authentication_token" = 'qqip5j5JxY3Qyy6Fxyyi' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 17:33:34 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:34 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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)  (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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) 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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:33:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:33:34 -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 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' LIMIT 1  (2.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.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.3ms) 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 17:33:34 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$fclkmXcg/5qjNqkJQDlpJuuF8c8CUa41FcLmmUXRKKVHHJpstf6a2"], ["updated_at", Mon, 15 Jul 2013 17:33:34 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.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", Mon, 15 Jul 2013 17:33:34 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 17:33:34 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'AHJw9DGjNopmsz57hftx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 17:33:34.670974', "updated_at" = '2013-07-15 17:33:34.670974', "authentication_token" = 'AHJw9DGjNopmsz57hftx' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.7ms) 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 17:33:34 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:34 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (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.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")  (4.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.3ms) 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")  (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.9ms) 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 ('20130612073709')  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:33:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:33:34 -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.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" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.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  (13.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.3ms) 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 17:33:34 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$653ts6KK5R6w1GfO2efKe.Z5HINn0PUWlkA54xJWDG0ICqbzjL7W2"], ["updated_at", Mon, 15 Jul 2013 17:33:34 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.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", Mon, 15 Jul 2013 17:33:34 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 17:33:34 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8LdoD9HcPWDy9BHSTDsg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 17:33:34.885433', "updated_at" = '2013-07-15 17:33:34.885433', "authentication_token" = '8LdoD9HcPWDy9BHSTDsg' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 17:33:34 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:34 UTC +00:00], ["user_id", 1]]  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test7"  (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)  (3.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")  (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)   (1.3ms) 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")  (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.2ms) 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 ('20130612073709')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Mon, 15 Jul 2013 17:33:35 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$EMCdtKmmLfe4xuM..1Take8Kr0ZCLIoN5ZxqGqJX6ksh5vtMG8DGi"], ["updated_at", Mon, 15 Jul 2013 17:33:35 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.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", Mon, 15 Jul 2013 17:33:35 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 2], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 17:33:35 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hqHKC6MbFz3m5kLXWY4Y' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 2, "created_at" = '2013-07-15 17:33:35.042573', "updated_at" = '2013-07-15 17:33:35.042573', "authentication_token" = 'hqHKC6MbFz3m5kLXWY4Y' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["created_at", Mon, 15 Jul 2013 17:33:35 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:35 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:33: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.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:33:35 -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 ('test7') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.8ms) 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  (16.3ms) 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", Mon, 15 Jul 2013 17:33:35 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$KtmB3u/HgZbUSF0.p69cmebwZ8MQcp6WwqUaURzHtatHstmYxo65u"], ["updated_at", Mon, 15 Jul 2013 17:33:35 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.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", Mon, 15 Jul 2013 17:33:35 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 17:33:35 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LDdqDSehy1NqhMnKq3Yf' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 17:33:35.212339', "updated_at" = '2013-07-15 17:33:35.212339', "authentication_token" = 'LDdqDSehy1NqhMnKq3Yf' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 1], ["created_at", Mon, 15 Jul 2013 17:33:35 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:33:35 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (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)  (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")  (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)   (1.0ms) 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")  (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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (0.6ms) 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') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:33:35 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.0ms) 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  (13.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 Connecting to database specified by database.yml  (0.7ms) 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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (14.9ms) 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  (1.0ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.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  (13.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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::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.4ms) 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.3ms) 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.7ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (0.7ms) 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 117ms (Views: 114.2ms | ActiveRecord: 2.4ms)  (0.3ms) 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  (12.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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::Account::UsersController#index as JSON Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.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 6ms (Views: 4.8ms | ActiveRecord: 1.0ms)  (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  (42.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (2.7ms) BEGIN  (4.0ms) SAVEPOINT active_record_1 SQL (12.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 17:41:13 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$tsA1T45EQOsIQerKp9NOMOKpYG3TYTlnvd4L6PwKig8R8icwAddLa"], ["updated_at", Mon, 15 Jul 2013 17:41:13 UTC +00:00]]  (6.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Mon, 15 Jul 2013 17:41:13 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 17:41:13 UTC +00:00]] Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ZzLTwy5ei98ZDGNzyxC7' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 17:41:13.320315', "updated_at" = '2013-07-15 17:41:13.320315', "authentication_token" = 'ZzLTwy5ei98ZDGNzyxC7' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.0ms) 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 17:41:13 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:41:13 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (10.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" ("authentication_token")  (1.3ms) 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)  (2.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (7.4ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.7ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 12:41:13 -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 (6.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (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 17:41:13 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$epGh.VWIYmXEOQ2sa/kxfe2/v.RE4DStkPfO.F9nLuIBWbRZBOJnm"], ["updated_at", Mon, 15 Jul 2013 17:41:13 UTC +00:00]] 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", 1], ["created_at", Mon, 15 Jul 2013 17:41:13 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:41:13 UTC +00:00], ["user_id", 2]]  (1.3ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (1.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (5.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" = 2 Completed 201 Created in 172ms (Views: 20.8ms | ActiveRecord: 18.0ms) Cadenero::V1::Account Load (6.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:41:13 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (3.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" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 16ms (Views: 7.0ms | ActiveRecord: 4.9ms)  (14.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  (23.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "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  (0.1ms) BEGIN  (10.4ms) 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", Mon, 15 Jul 2013 17:41:13 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$FPpT8hyLvruuidV7BK59eOlCGslavswQI7HaAvxBj8k1c5.ETs/de"], ["updated_at", Mon, 15 Jul 2013 17:41:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (9.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", Mon, 15 Jul 2013 17:41:13 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 17:41:13 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9nLSAXgHq6CGcGHtoij5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 17:41:13.951578', "updated_at" = '2013-07-15 17:41:13.951578', "authentication_token" = '9nLSAXgHq6CGcGHtoij5' WHERE "public"."cadenero_accounts"."id" = 1  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) 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 17:41:13 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:41:13 UTC +00:00], ["user_id", 1]]  (0.7ms) RELEASE SAVEPOINT active_record_1  (1.0ms) CREATE SCHEMA "test2"  (21.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)  (2.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.6ms) 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)   (6.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.6ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 12:41:14 -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_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 17:41:14 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ClrGp.gfiRZiKVgiylFo4uaseBFVyMeq5bXYu1Lv4WMfovQTFttwK"], ["updated_at", Mon, 15 Jul 2013 17:41:14 UTC +00:00]] 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", Mon, 15 Jul 2013 17:41:14 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:41:14 UTC +00:00], ["user_id", 2]]  (0.5ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 155ms (Views: 4.9ms | ActiveRecord: 4.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:41:14 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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 (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"."id" = 2 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."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" = 2 Completed 200 OK in 14ms (Views: 5.5ms | ActiveRecord: 4.3ms) Cadenero::User Load (1.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Mon, 15 Jul 2013 17:41:14 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 17:41:14 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7N35w4MdhnvnstjDpFhs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 2, "created_at" = '2013-07-15 17:41:14.248705', "updated_at" = '2013-07-15 17:41:14.248705', "authentication_token" = '7N35w4MdhnvnstjDpFhs' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 2], ["created_at", Mon, 15 Jul 2013 17:41:14 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:41:14 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.4ms) CREATE SCHEMA "test3"  (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)  (2.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.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)   (5.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 12:41:14 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 17:41:14 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$NPT.mUeHQ8eXAm9xDS2CvOe81gWnMg6vY6WYYBVVRyC.3bUoQqJtC"], ["updated_at", Mon, 15 Jul 2013 17:41:14 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", 2], ["created_at", Mon, 15 Jul 2013 17:41:14 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:41:14 UTC +00:00], ["user_id", 3]]  (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" = 3 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 111ms (Views: 4.8ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/3" for 127.0.0.1 at 2013-07-15 12:41:14 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"3"} 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.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" = 2 AND "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 200 OK in 10ms (Views: 4.9ms | ActiveRecord: 1.5ms) Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:41:14 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 1.5ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 12:41:14 -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" = 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 13ms (Views: 9.4ms | ActiveRecord: 2.1ms)  (9.5ms) ROLLBACK  (0.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.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.8ms) 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", Mon, 15 Jul 2013 17:41:14 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$3zqYkLudnxADQjldjn8bGejAgKAuuRS8HzLzKKoNv6ETYvx36los2"], ["updated_at", Mon, 15 Jul 2013 17:41:14 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 (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", Mon, 15 Jul 2013 17:41:14 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 17:41:14 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sjBALYHX4sENAxSx7tGp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 17:41:14.636802', "updated_at" = '2013-07-15 17:41:14.636802', "authentication_token" = 'sjBALYHX4sENAxSx7tGp' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:41:14 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:41:14 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (4.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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" ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.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-15 12:41:14 -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 12:41:14 -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 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) 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 123ms (Views: 5.6ms | ActiveRecord: 2.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:41:14 -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" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (6.5ms) ROLLBACK  (0.7ms) 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.3ms) 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.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 17:41:15 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$BZSHyT9CJIUeBfnxoZnubO2eHu98ZK5w8INjl9S0IHEDLFQXKIZuC"], ["updated_at", Mon, 15 Jul 2013 17:41:15 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.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", Mon, 15 Jul 2013 17:41:15 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 17:41:15 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pTXqSV5FP7XyGse6RpYW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 17:41:15.150725', "updated_at" = '2013-07-15 17:41:15.150725', "authentication_token" = 'pTXqSV5FP7XyGse6RpYW' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:41:15 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:41:15 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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)   (1.3ms) 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")  (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)  (1.4ms) 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.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)  (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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:41:15 -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 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 106ms (Views: 4.4ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:41:15 -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 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:41:15 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (6.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  (12.3ms) 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.4ms) 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 17:41:15 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$v1CsS0i6CRBAMsa44S7pBOpx/A5GMh5z03nrha67IsR3HeDQrXHGm"], ["updated_at", Mon, 15 Jul 2013 17:41:15 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.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", Mon, 15 Jul 2013 17:41:15 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 17:41:15 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'g9HEynFqQooqPES2AgFH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 17:41:15.471555', "updated_at" = '2013-07-15 17:41:15.471555', "authentication_token" = 'g9HEynFqQooqPES2AgFH' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:41:15 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:41:15 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test6"  (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)   (2.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.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)  (1.0ms) 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")  (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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:41:15 -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 12:41:15 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 17:41:15 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$jhkHqoUY1e/WMjxjCSq.TuDrSiS/yrwHtvh1Ou1iWoARD72nSnZMW"], ["updated_at", Mon, 15 Jul 2013 17:41:15 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", Mon, 15 Jul 2013 17:41:15 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:41:15 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 108ms (Views: 4.7ms | ActiveRecord: 2.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:41:15 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 9ms (Views: 4.8ms | 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 12:41:15 -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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 6ms (Views: 3.7ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:41:15 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (4.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  (11.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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", Mon, 15 Jul 2013 17:41:15 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$k1k/5y2xfLxH3fJ/r8I/u.oDRpBzdCKpDkiprVG3xupFlwiDqFujO"], ["updated_at", Mon, 15 Jul 2013 17:41:15 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 (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", Mon, 15 Jul 2013 17:41:15 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 17:41:15 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4ths2QxUx825nwiqSUvF' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 17:41:15.802774', "updated_at" = '2013-07-15 17:41:15.802774', "authentication_token" = '4ths2QxUx825nwiqSUvF' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:41:15 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:41:15 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (2.4ms) 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.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)   (1.0ms) 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")  (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.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) 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-15 12:41:15 -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.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" = 'user6@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 105ms (Views: 4.3ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:41:15 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:41:15 -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 12:41:15 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.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 17:41:16 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$XqtVayOB.Ko/yNFGFvECFuFB0bnNBCA317UiADTNOnT/Esgs7KfAm"], ["updated_at", Mon, 15 Jul 2013 17:41:16 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", Mon, 15 Jul 2013 17:41:16 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:41:16 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 110ms (Views: 4.5ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:41:16 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 9ms (Views: 4.6ms | ActiveRecord: 1.5ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:41:16 -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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 6ms (Views: 3.7ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.3ms) ROLLBACK  (0.4ms) 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.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 17:41:16 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$gHORxsftWf7VNbpR9f9owuEDxsGip9B8HbwyVcx4Lld6OZh6.cjzu"], ["updated_at", Mon, 15 Jul 2013 17:41:16 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" = 'test8' 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", Mon, 15 Jul 2013 17:41:16 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 17:41:16 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eY28VaRZMMjdpPuzpHjA' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 17:41:16.293619', "updated_at" = '2013-07-15 17:41:16.293619', "authentication_token" = 'eY28VaRZMMjdpPuzpHjA' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:41:16 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:41:16 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (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" ("authentication_token")  (1.6ms) 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)   (1.0ms) 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")  (6.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.7ms) 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 ('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-15 12:41: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 12:41:16 -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 ('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"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 38ms (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.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  (15.2ms) 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.4ms) 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 17:41:16 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$rteP1oNXsXFS6Hv3bgwV.umaNkkPjm7EVn4cthpYAbOpHb/qquyum"], ["updated_at", Mon, 15 Jul 2013 17:41:16 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 (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", Mon, 15 Jul 2013 17:41:16 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 17:41:16 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'BJsqisXCXf77uEJBRNpk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 17:41:16.542562', "updated_at" = '2013-07-15 17:41:16.542562', "authentication_token" = 'BJsqisXCXf77uEJBRNpk' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:41:16 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:41:16 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (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.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.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)   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.4ms) 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)  (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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (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", Mon, 15 Jul 2013 17:41:16 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$qTkojLTy6Rx37J4TFWI8JefghEigtA5hiiJUtehJM9sEE8kO9PfH6"], ["updated_at", Mon, 15 Jul 2013 17:41:16 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", Mon, 15 Jul 2013 17:41:16 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 2], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 17:41:16 UTC +00:00]] Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'sz6s5mjhyMnQkEpp75Uw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 2, "created_at" = '2013-07-15 17:41:16.712860', "updated_at" = '2013-07-15 17:41:16.712860', "authentication_token" = 'sz6s5mjhyMnQkEpp75Uw' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["created_at", Mon, 15 Jul 2013 17:41:16 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:41:16 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:41: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 12:41:16 -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.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" = 'user9@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.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  (18.3ms) 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.5ms) 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 17:41:16 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$FjrbwohVz8xRwgdr/SZhh.UO48VBph3XkKCOL5MesByTSxXQEew7q"], ["updated_at", Mon, 15 Jul 2013 17:41:16 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.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", Mon, 15 Jul 2013 17:41:16 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 17:41:16 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nZHqRqMbWuJjXoyGFRA1' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-15 17:41:16.903194', "updated_at" = '2013-07-15 17:41:16.903194', "authentication_token" = 'nZHqRqMbWuJjXoyGFRA1' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:41:16 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:41:16 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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")  (2.5ms) 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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.6ms) 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-15 12:41: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 12:41:16 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.8ms) ROLLBACK  (0.9ms) 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.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.1ms) 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", Mon, 15 Jul 2013 17:41:17 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$shaWIPZWzuG4JlWc31CvbOBNauJqI/3Kt.JvJG9sXFij4vfv/FcqK"], ["updated_at", Mon, 15 Jul 2013 17:41:17 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" = 'test12' 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", Mon, 15 Jul 2013 17:41:17 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1], ["subdomain", "test12"], ["updated_at", Mon, 15 Jul 2013 17:41:17 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'kWiKMpg7Jfsv5oBwvKeQ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 1, "created_at" = '2013-07-15 17:41:17.117873', "updated_at" = '2013-07-15 17:41:17.117873', "authentication_token" = 'kWiKMpg7Jfsv5oBwvKeQ' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 1], ["created_at", Mon, 15 Jul 2013 17:41:17 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:41:17 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test12"  (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.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")  (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)   (1.4ms) 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")  (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)   (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 ('20130612073709')  (0.1ms) 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-15 12:41:17 -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  (5.2ms) 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  (12.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 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" = 101 LIMIT 1  (0.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  (16.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 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.2ms) 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  (14.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.2ms) 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  (14.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 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) 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  (13.1ms) 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 Cadenero::V1::Account Exists (0.5ms) 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 17:41:17 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Fi4wEVgRh.uPWnqSXPb1ju.S2OaRD3yeT3klxmUdodQ33pcHjyviS"], ["updated_at", Mon, 15 Jul 2013 17:41:17 UTC +00:00]] 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", Mon, 15 Jul 2013 17:41:17 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 17:41:17 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'x1zTjBevTxatnappEJFf' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 17:41:17.761829', "updated_at" = '2013-07-15 17:41:17.761829', "authentication_token" = 'x1zTjBevTxatnappEJFf' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 17:41:17 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:41:17 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (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" ("authentication_token")  (1.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') 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 LIMIT 1  (2.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.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  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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 17:41:20 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$BpOXNI0Z12QprPQBLA/8dOJ6tnmSLd6NgwO3SPudeLhALwTKjwJ56"], ["updated_at", Mon, 15 Jul 2013 17:41:20 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" = 'test13' 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", Mon, 15 Jul 2013 17:41:20 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1], ["subdomain", "test13"], ["updated_at", Mon, 15 Jul 2013 17:41:20 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'ns5L7ZimW5swsso38s1b' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 1, "created_at" = '2013-07-15 17:41:20.676053', "updated_at" = '2013-07-15 17:41:20.676053', "authentication_token" = 'ns5L7ZimW5swsso38s1b' WHERE "public"."cadenero_accounts"."id" = 1  (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", Mon, 15 Jul 2013 17:41:20 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:41:20 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", Mon, 15 Jul 2013 17:41:20 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$X9jwyxZ5UUlDmK.lHC61N.fpZF9neVm3oYceWAbJz/ETv5/XRKGXK"], ["updated_at", Mon, 15 Jul 2013 17:41:20 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", Mon, 15 Jul 2013 17:41:20 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$z2uc.VBS0h0NL6tICood7.mtSZAlA2HIc/PVfKcaLe60Y/DaYmxWi"], ["updated_at", Mon, 15 Jul 2013 17:41: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" = '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", Mon, 15 Jul 2013 17:41:20 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 17:41:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VN4UdjRJV9eE3WsM8YzC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-15 17:41:20.883981', "updated_at" = '2013-07-15 17:41:20.883981', "authentication_token" = 'VN4UdjRJV9eE3WsM8YzC' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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" ("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)   (1.0ms) 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")  (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"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (2.8ms) 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  (11.3ms) 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 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)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) 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  (12.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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) 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  (12.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) 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  (18.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.2ms) BEGIN  (0.1ms) 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  (11.3ms) 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 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 12:41:24 -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 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 17:41:24 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$0/KpWrtyuZhv7gAUPpFix.7Rb/qWmZxV.57bMOlh1xyY/xKM5BXmS"], ["updated_at", Mon, 15 Jul 2013 17:41:24 UTC +00:00]] 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", Mon, 15 Jul 2013 17:41:24 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 17:41:24 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tKzVTxtsqtZJEme77BMp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 17:41:24.952917', "updated_at" = '2013-07-15 17:41:24.952917', "authentication_token" = 'tKzVTxtsqtZJEme77BMp' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 17:41:24 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:41:24 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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)  (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")  (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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') 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" != 1) LIMIT 1 Completed 201 Created in 164ms (Views: 2.2ms | ActiveRecord: 35.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (2.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  (12.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 Cadenero::V1::Account Exists (0.5ms) 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 17:41:25 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$1gTSFKmi0ocFHlHINkHnRe5rI7wK37ZgAalfaFv3Ul2RF2amh4wOm"], ["updated_at", Mon, 15 Jul 2013 17:41:25 UTC +00:00]] 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", Mon, 15 Jul 2013 17:41:25 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 17:41:25 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wPWNiZQshYRzyLzFq1ap' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 17:41:25.138404', "updated_at" = '2013-07-15 17:41:25.138404', "authentication_token" = 'wPWNiZQshYRzyLzFq1ap' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 12:41:25 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 CACHE (0.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 103ms (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.3ms) 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  (16.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.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  (18.3ms) 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 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.2ms) 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  (13.9ms) 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  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.6ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.7ms) BEGIN 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" = 101  (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  (18.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms)  (0.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  (17.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 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)  (1.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  (10.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.1ms) BEGIN  (2.9ms) SAVEPOINT active_record_1 SQL (10.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 17:42:18 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$FpkWgr5zy87N3IY6hl37P.zG2tfigtvRMGjF2n7Yz.5mx7wbqLWzm"], ["updated_at", Mon, 15 Jul 2013 17:42:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (9.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", Mon, 15 Jul 2013 17:42:18 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 17:42:18 UTC +00:00]] Cadenero::V1::Account Load (3.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gf1NFqGFzc21TenBHWif' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 17:42:18.359195', "updated_at" = '2013-07-15 17:42:18.359195', "authentication_token" = 'gf1NFqGFzc21TenBHWif' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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", Mon, 15 Jul 2013 17:42:18 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:42:18 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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)   (0.9ms) 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.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)  (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")  (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)   (3.0ms) 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 ('20130612073709')  (0.8ms) 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-15 12:42:18 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (0.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" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 130ms (Views: 12.5ms | 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::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user1@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:42:18 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:42: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 12:42: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 (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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 17:42:18 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$W.cpr.sRzttT73Kykoa22u3cfUhXE/K94U33dM6CQkRK07sjvIDw2"], ["updated_at", Mon, 15 Jul 2013 17:42:18 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", 1], ["created_at", Mon, 15 Jul 2013 17:42:18 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:42:18 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (2.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 114ms (Views: 5.5ms | 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 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:42:18 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.0ms | ActiveRecord: 1.4ms) 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 12:42: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 (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 6ms (Views: 4.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.1ms) 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  (19.3ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (1.3ms) 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 (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 17:42:19 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$6rPFTNLLcesw1xmM3hynw.k1ChjfXykJLBp9aJ/KdnOvv/A4Zgllq"], ["updated_at", Mon, 15 Jul 2013 17:42:19 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" = 'test2' 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", Mon, 15 Jul 2013 17:42:19 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 17:42:19 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DSavMgWZrFqQzKa6qN4H' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 17:42:19.039620', "updated_at" = '2013-07-15 17:42:19.039620', "authentication_token" = 'DSavMgWZrFqQzKa6qN4H' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 17:42:19 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:42:19 UTC +00:00], ["user_id", 1]]  (1.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (13.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.8ms) 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")  (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)  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (14.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) 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 ('20130612073709')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:42:19 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.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" = 'user2@example.com' LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 111ms (Views: 4.9ms | ActiveRecord: 2.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 DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:42:19 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:42: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)  (6.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  (17.4ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (4.3ms) 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.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 17:42:19 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$lhPx4VBVnbcquXenkenjDe7d/r57OtUkjA3fO2sWrAY1yVhOQf41m"], ["updated_at", Mon, 15 Jul 2013 17:42:19 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 (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", Mon, 15 Jul 2013 17:42:19 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 17:42:19 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'J8akoqsVoNvBj3jcFrip' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 17:42:19.418810', "updated_at" = '2013-07-15 17:42:19.418810', "authentication_token" = 'J8akoqsVoNvBj3jcFrip' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 17:42:19 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:42:19 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.1ms) CREATE SCHEMA "test3"  (7.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" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:42: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/users" for 127.0.0.1 at 2013-07-15 12:42: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 17:42:19 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Ggjqmm8iwIzAvHItL7XIoOPBAxrr6DuR66CY3sThbJvCO8BNiMWE2"], ["updated_at", Mon, 15 Jul 2013 17:42:19 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", 1], ["created_at", Mon, 15 Jul 2013 17:42:19 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:42:19 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (2.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" = 2 Completed 201 Created in 175ms (Views: 57.0ms | ActiveRecord: 4.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/2" for 127.0.0.1 at 2013-07-15 12:42:19 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 12ms (Views: 5.5ms | ActiveRecord: 1.4ms) 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 12:42: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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 6ms (Views: 4.1ms | 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 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:42: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" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (6.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  (12.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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", Mon, 15 Jul 2013 17:42:19 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$2Tn4qAsGLhpjlC0xZq438OYK20RBES3t48MngohvzFupHkE2q9YYC"], ["updated_at", Mon, 15 Jul 2013 17:42:19 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.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", Mon, 15 Jul 2013 17:42:19 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 17:42:19 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'T4udXFk8ysJxbtpXnsoH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 17:42:19.879244', "updated_at" = '2013-07-15 17:42:19.879244', "authentication_token" = 'T4udXFk8ysJxbtpXnsoH' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.4ms) 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 17:42:19 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:42:19 UTC +00:00], ["user_id", 1]]  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.6ms) 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.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")  (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)   (1.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.2ms) SELECT version FROM "schema_migrations"  (0.3ms) 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') Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:42: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 12:42: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 ('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"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 106ms (Views: 4.4ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:42:20 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.6ms) 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  (10.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  (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 17:42:20 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$s64EHu9Sx30uHOVA5Zjmp..yZRIOZXl44yMYjm/2GbHhbRFSugUrS"], ["updated_at", Mon, 15 Jul 2013 17:42:20 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.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", Mon, 15 Jul 2013 17:42:20 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 17:42:20 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JKHxxRE1cBTSsoj6DbUn' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 17:42:20.189101', "updated_at" = '2013-07-15 17:42:20.189101', "authentication_token" = 'JKHxxRE1cBTSsoj6DbUn' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.4ms) 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 17:42:20 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:42:20 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) 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.5ms) 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")  (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)   (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (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.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.3ms) 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 POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:42: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  (5.6ms) 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  (14.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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", Mon, 15 Jul 2013 17:42:20 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$0KJQlMJH4RO5FQGQSaeIqO5u5xwKmwnaHN9Vk13KFTr9I.q5BFk2W"], ["updated_at", Mon, 15 Jul 2013 17:42:20 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 (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", Mon, 15 Jul 2013 17:42:20 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 17:42:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'tCjxYSL585prMDAzwUk7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 17:42:20.398114', "updated_at" = '2013-07-15 17:42:20.398114', "authentication_token" = 'tCjxYSL585prMDAzwUk7' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 17:42:20 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:42:20 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.9ms) SELECT version FROM "schema_migrations"  (0.9ms) 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.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", Mon, 15 Jul 2013 17:42:20 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$DfSzCWixqbxSQXBU59OOtu0Iy42ozarNKnLMseZeuryFuUX0ASNtK"], ["updated_at", Mon, 15 Jul 2013 17:42: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" = '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", Mon, 15 Jul 2013 17:42:20 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 2], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 17:42:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QaxCaF4whqdgBSUUuS15' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 2, "created_at" = '2013-07-15 17:42:20.557466', "updated_at" = '2013-07-15 17:42:20.557466', "authentication_token" = 'QaxCaF4whqdgBSUUuS15' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["created_at", Mon, 15 Jul 2013 17:42:20 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:42:20 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 12:42: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 12:42:20 -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 ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user7@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.1ms) 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  (20.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (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 17:42:20 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$YXGRwsuWWoITJAsYzBbbrOxnrKXZXCJ.ZjJqg3BLtD1sYkxr0JNBO"], ["updated_at", Mon, 15 Jul 2013 17:42: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" = 'test8' 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", Mon, 15 Jul 2013 17:42:20 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 17:42:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'f9Cuiu27xjhSjNPt7Q5b' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 17:42:20.731816', "updated_at" = '2013-07-15 17:42:20.731816', "authentication_token" = 'f9Cuiu27xjhSjNPt7Q5b' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) 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 17:42:20 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:42:20 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (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.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.9ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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 ('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-15 12:42:20 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:42: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 (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.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.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.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 17:42:20 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$34OLRKtPm8vXvStyhGpLyeqTFL6SF.wVg1eLpPryJAxWIr6/4h9My"], ["updated_at", Mon, 15 Jul 2013 17:42:20 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.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", Mon, 15 Jul 2013 17:42:20 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 17:42:20 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gcFFtzfgHqxkp1D6rRbs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 17:42:20.944996', "updated_at" = '2013-07-15 17:42:20.944996', "authentication_token" = 'gcFFtzfgHqxkp1D6rRbs' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) 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 17:42:20 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:42:20 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (4.0ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (0.8ms) 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)   (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.8ms) 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)  (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 ('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-15 12:42:20 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 12:42:20 -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 ('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" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.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  (13.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (1.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 17:42:23 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$4XFFBQEqSmaQlQRnvGNXI.DDAJIuEDO5SwzPCkgszByobybjZEBZm"], ["updated_at", Mon, 15 Jul 2013 17:42:23 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' 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", Mon, 15 Jul 2013 17:42:23 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 17:42:23 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EStCWFJacuzRkUuPmyRo' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-15 17:42:23.815735', "updated_at" = '2013-07-15 17:42:23.815735', "authentication_token" = 'EStCWFJacuzRkUuPmyRo' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 17:42:23 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:42:23 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", Mon, 15 Jul 2013 17:42:23 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$yWy7hb1973uEgSy.XCtN/uAw0OeeR.zBBBWXKWegStIpd0uvyoHoy"], ["updated_at", Mon, 15 Jul 2013 17:42:23 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", Mon, 15 Jul 2013 17:42:24 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$XzB2HKR8SZY/vEp3Ow8N6OSnT9FMyHFVJgDZcNReIfk0ritA.n1cW"], ["updated_at", Mon, 15 Jul 2013 17:42:24 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", Mon, 15 Jul 2013 17:42:24 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 17:42:24 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'BureVVqqibPgdC3fj7B3' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-15 17:42:24.027457', "updated_at" = '2013-07-15 17:42:24.027457', "authentication_token" = 'BureVVqqibPgdC3fj7B3' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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)  (1.1ms) 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")  (2.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)   (1.6ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (5.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  (11.1ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.4ms) BEGIN  (0.3ms) 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  (19.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 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)  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.5ms) 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  (11.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (8.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.1ms) BEGIN  (1.3ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.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  (11.7ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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) 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  (25.7ms) 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 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", Mon, 15 Jul 2013 17:42:28 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$9GNyju9AM2JmG1J2IfKhb.xBrwYjXTrbdkyGHyjzFgFcUKLOpimMy"], ["updated_at", Mon, 15 Jul 2013 17:42:28 UTC +00:00]] 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", Mon, 15 Jul 2013 17:42:28 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 17:42:28 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XvyCYHFyS9QybJHjMpGP' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 17:42:28.313341', "updated_at" = '2013-07-15 17:42:28.313341', "authentication_token" = 'XvyCYHFyS9QybJHjMpGP' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 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", 1], ["created_at", Mon, 15 Jul 2013 17:42:28 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:42:28 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.8ms) CREATE SCHEMA "test"  (8.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.5ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.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)  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("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)   (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') 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 LIMIT 1  (7.1ms) ROLLBACK  (1.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  (33.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 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (3.8ms) 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  (32.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  (0.2ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.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  (14.5ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.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  (15.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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 (2.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 17:42:29 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$i3yi4Z0Mjjso/rqp2Ozp9.ZAx9PUnkRwOh6gsT9rZGYPq7cLc2w7u"], ["updated_at", Mon, 15 Jul 2013 17:42:29 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" = 'test11' 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", Mon, 15 Jul 2013 17:42:29 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 17:42:29 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YExx8zajXcMTsv5Ut8PF' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-15 17:42:29.015686', "updated_at" = '2013-07-15 17:42:29.015686', "authentication_token" = 'YExx8zajXcMTsv5Ut8PF' WHERE "public"."cadenero_accounts"."id" = 1  (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", 1], ["created_at", Mon, 15 Jul 2013 17:42:29 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:42:29 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (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.3ms) 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.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.4ms) 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")  (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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) 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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 12:42:29 -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_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 17:42:29 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$WHlcjexyVYxTSs2wKK204u.FrpnO9SY6kvyUbSgjCNnLyFsMV8Bi2"], ["updated_at", Mon, 15 Jul 2013 17:42:29 UTC +00:00]] 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", Mon, 15 Jul 2013 17:42:29 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:42:29 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 115ms (Views: 6.0ms | 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' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:42:29 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 13ms (Views: 7.7ms | ActiveRecord: 1.8ms)  (4.6ms) 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  (12.2ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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.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 17:42:29 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$Fj5BzliNUGpTcJJJvGVg9.S8ub69VOgHGiXWmLF4u0ME0Y.2IQ6wO"], ["updated_at", Mon, 15 Jul 2013 17:42:29 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" = 'test12' 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", Mon, 15 Jul 2013 17:42:29 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1], ["subdomain", "test12"], ["updated_at", Mon, 15 Jul 2013 17:42:29 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eG3gioqzyKPpJJyvpftp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 1, "created_at" = '2013-07-15 17:42:29.418702', "updated_at" = '2013-07-15 17:42:29.418702', "authentication_token" = 'eG3gioqzyKPpJJyvpftp' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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 17:42:29 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:42:29 UTC +00:00], ["user_id", 1]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test12"  (12.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)  (3.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")  (27.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)   (6.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.3ms) SELECT version FROM "schema_migrations"  (0.9ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-15 12:42:29 -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 (3.9ms) 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", Mon, 15 Jul 2013 17:42:29 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$/DgHGk2hEouV/lY.zJsr1.YpRaRijb5vIc/FmiDOomcKjOEtDDRKe"], ["updated_at", Mon, 15 Jul 2013 17:42:29 UTC +00:00]] SQL (4.3ms) 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 17:42:29 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:42:29 UTC +00:00], ["user_id", 2]]  (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" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (2.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" = 2 Completed 201 Created in 206ms (Views: 15.6ms | ActiveRecord: 11.9ms) Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:42:29 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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"."id" = 2 LIMIT 1 Cadenero::User Load (2.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 13ms (Views: 5.3ms | ActiveRecord: 4.3ms) Cadenero::User Load (4.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (2.7ms) 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" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Mon, 15 Jul 2013 17:42:29 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 2], ["subdomain", "test13"], ["updated_at", Mon, 15 Jul 2013 17:42:29 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'hkypApvPDisoRvtHwEwY' LIMIT 1  (6.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 2, "created_at" = '2013-07-15 17:42:29.868957', "updated_at" = '2013-07-15 17:42:29.868957', "authentication_token" = 'hkypApvPDisoRvtHwEwY' WHERE "public"."cadenero_accounts"."id" = 2  (1.5ms) 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", 2], ["created_at", Mon, 15 Jul 2013 17:42:29 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:42:29 UTC +00:00], ["user_id", 2]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test13"  (11.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)  (3.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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)   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (14.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 12:42:29 -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" = 'test13' LIMIT 1  (5.5ms) SAVEPOINT active_record_1 SQL (2.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 17:42:30 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$.A330WRCk3fZpsQNLx736u7YOlx5Z60H6OcoRcM8uV9fK/69UIX7K"], ["updated_at", Mon, 15 Jul 2013 17:42:30 UTC +00:00]] SQL (19.5ms) 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 17:42:30 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:42:30 UTC +00:00], ["user_id", 3]]  (5.8ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (3.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 191ms (Views: 6.3ms | ActiveRecord: 39.8ms) 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/3" for 127.0.0.1 at 2013-07-15 12:42:30 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"3"} Cadenero::V1::Account Load (3.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 2 AND "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 200 OK in 13ms (Views: 4.9ms | ActiveRecord: 4.5ms) Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 12:42:30 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.0ms | ActiveRecord: 1.4ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 12:42:30 -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 (2.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 Cadenero::User Load (4.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (9.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (6.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" = 2 Completed 200 OK in 44ms (Views: 13.2ms | ActiveRecord: 28.1ms)  (10.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  (15.9ms) 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  (5.5ms) 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)  (18.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  (48.9ms) 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  (2.7ms) 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) 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  (43.7ms) 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  (1.7ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 98ms (Views: 96.1ms | ActiveRecord: 1.2ms)  (9.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  (28.9ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (5.1ms) 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::Account::UsersController#index as JSON Cadenero::V1::Account Load (4.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (12.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 30ms (Views: 10.3ms | ActiveRecord: 16.8ms)  (0.3ms) ROLLBACK  (5.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  (45.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 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 12:42:31 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (5.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (7.0ms) 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 17:42:31 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$tClkotRhcC6ggqTU2jv2eeF7CO.ertPASlZH0fzCvZhzDrwrQEE2q"], ["updated_at", Mon, 15 Jul 2013 17:42:31 UTC +00:00]] 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", Mon, 15 Jul 2013 17:42:31 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 17:42:31 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dJrZcd4ZroWoqdx5Ma7b' LIMIT 1  (4.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 17:42:31.695530', "updated_at" = '2013-07-15 17:42:31.695530', "authentication_token" = 'dJrZcd4ZroWoqdx5Ma7b' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) 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", 1], ["created_at", Mon, 15 Jul 2013 17:42:31 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:42:31 UTC +00:00], ["user_id", 1]]  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.2ms) CREATE SCHEMA "test"  (10.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" ("authentication_token")  (10.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (3.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (5.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 ('20130612073709')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652') Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1 Completed 201 Created in 336ms (Views: 2.2ms | ActiveRecord: 108.2ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (9.5ms) ROLLBACK  (1.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  (22.7ms) 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.1ms) BEGIN  (5.1ms) 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 (2.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 17:42:32 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$hhZEN6zQ7POqIKxmvQWLIO.YIIP6m5GteQ3RMsd5b9uPn7k1ycL4e"], ["updated_at", Mon, 15 Jul 2013 17:42:32 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", Mon, 15 Jul 2013 17:42:32 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 17:42:32 UTC +00:00]] Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Px6wSrVvR6qgDGBw99pe' LIMIT 1  (1.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 17:42:32.057399', "updated_at" = '2013-07-15 17:42:32.057399', "authentication_token" = 'Px6wSrVvR6qgDGBw99pe' WHERE "public"."cadenero_accounts"."id" = 1  (0.4ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 12:42:32 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (2.4ms) 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  (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 211ms (Views: 0.4ms | ActiveRecord: 2.9ms) Cadenero::V1::Account Load (2.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (2.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  (26.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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 Connecting to database specified by database.yml Connecting to database specified by database.yml  (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  (2.0ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (17.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (3.2ms) 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) 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.8ms) 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 Connecting to database specified by database.yml  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.5ms) 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  (0.3ms) 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  (15.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.8ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (0.3ms) 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  (0.1ms) SAVEPOINT active_record_1 SQL (12.4ms) 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 17:47:25 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:47:25 UTC +00:00], ["user_id", 101]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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  (18.0ms) TRUNCATE TABLE "cadenero_users", "cadenero_accounts", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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 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 AddAuthTokenToMembers (20130715174857)  (0.1ms) BEGIN  (2.9ms) CREATE INDEX "index_members_on_auth_token" ON "members" ("auth_token") PG::Error: ERROR: relation "members" does not exist : CREATE INDEX "index_members_on_auth_token" ON "members" ("auth_token")  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.1ms) BEGIN  (2.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") PG::Error: ERROR: column "auth_token" does not exist : CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (5.2ms) 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 "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604)  (0.1ms) BEGIN  (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.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130612061604')  (1.1ms) COMMIT Migrating to CreateCadeneroV1Users (20130612064652)  (0.2ms) BEGIN  (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.6ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130612064652')  (1.1ms) COMMIT Migrating to CreateCadeneroV1Members (20130612073709)  (0.2ms) BEGIN  (7.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)   (1.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130612073709')  (1.7ms) COMMIT Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.3ms) BEGIN  (0.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") PG::Error: ERROR: column "auth_token" does not exist : CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.1ms) BEGIN  (0.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token") PG::Error: ERROR: column "auth_token" does not exist : CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.1ms) ROLLBACK Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.1ms) BEGIN  (3.4ms) ALTER TABLE "cadenero_members" ADD COLUMN "auth_token" character varying(255)  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130715174857')  (0.7ms) COMMIT  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"   (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.1ms) BEGIN  (2.8ms) ALTER TABLE "cadenero_members" DROP "auth_token"  (0.8ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = '20130715174857'  (0.7ms) COMMIT  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.1ms) BEGIN  (0.7ms) ALTER TABLE "cadenero_members" ADD COLUMN "auth_token" character varying(255)  (2.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130715174857')  (0.6ms) COMMIT  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Connecting to database specified by database.yml  (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.5ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (17.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (9.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", Mon, 15 Jul 2013 17:55:31 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:55:31 UTC +00:00], ["user_id", 101]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.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  (14.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 Connecting to database specified by database.yml  (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.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.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  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (10.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 17:56:30 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:56:30 UTC +00:00], ["user_id", 101]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.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  (16.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 Connecting to database specified by database.yml  (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'  (23.6ms) 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  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (9.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", 1001], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 17:58:08 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:58:08 UTC +00:00], ["user_id", 101]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.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  (132.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (4.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 Connecting to database specified by database.yml  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (19.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (12.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.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (11.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 17:58:30 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 17:58:30 UTC +00:00], ["user_id", 101]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.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  (25.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 Connecting to database specified by database.yml  (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'  (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.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (9.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", 1001], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:02:32 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:02:32 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'za3rXijB8EqbYbEgEA9W' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-15 18:02:32.256627', "updated_at" = '2013-07-15 18:02:32.256627', "auth_token" = 'za3rXijB8EqbYbEgEA9W' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.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  (11.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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 Connecting to database specified by database.yml  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.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  (3.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (13.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", 1001], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:04:11 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:04:11 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (1.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bsxjegojNj65Cc1Z3Kx4' LIMIT 1  (1.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-15 18:04:11.362023', "updated_at" = '2013-07-15 18:04:11.362023', "auth_token" = 'bsxjegojNj65Cc1Z3Kx4' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.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  (33.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 Connecting to database specified by database.yml  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (17.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (6.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  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 14ms (Views: 2.9ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.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.8ms) 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.4ms) 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.3ms) ROLLBACK  (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  (22.2ms) 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.1ms) BEGIN Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.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.2ms) 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.1ms) BEGIN Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.2ms) ROLLBACK  (0.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  (16.8ms) 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.1ms) BEGIN Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (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  (16.5ms) 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  (0.1ms) BEGIN  (0.3ms) 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 (7.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 18:07:55 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$IGcMvj.pp/9OfSqyjzDGjOSUuOITjVynU0Mow0zpnJL4Us9bH6GSi"], ["updated_at", Mon, 15 Jul 2013 18:07:55 UTC +00:00]] SQL (4.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", Mon, 15 Jul 2013 18:07:55 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:07:55 UTC +00:00]]  (3.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.4ms) ROLLBACK  (0.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  (23.5ms) 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.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (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 18:07:58 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$65r0Krf5OW9toWyJBKolW.G/JgUmAFX1i3DA88ecaVRecGLIQIHgy"], ["updated_at", Mon, 15 Jul 2013 18:07:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' 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", Mon, 15 Jul 2013 18:07:58 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 18:07:58 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (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  (13.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  (0.4ms) BEGIN  (0.1ms) 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  (18.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  (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.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  (16.0ms) 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.1ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) ROLLBACK  (0.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  (21.6ms) 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  (0.1ms) BEGIN  (1.4ms) ROLLBACK  (1.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  (15.8ms) 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.5ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:08:02 -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.4ms) 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 (2.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 18:08:02 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$FzLpRP190wiFYCXf3t8v1O75TTTL3bn/mPJ4IPkagdafHptX3.btq"], ["updated_at", Mon, 15 Jul 2013 18:08:02 UTC +00:00]] 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", Mon, 15 Jul 2013 18:08:02 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:08:02 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1 Completed 500 Internal Server Error in 122ms  (0.1ms) ROLLBACK  (0.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  (20.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  (1.5ms) 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 (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 18:08:02 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$1b7XixPjM0k8Me2/X8Bvu.nA6Yn8sbhJBkoZys47VTiqDaG3qa5fS"], ["updated_at", Mon, 15 Jul 2013 18:08:02 UTC +00:00]] 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", Mon, 15 Jul 2013 18:08:02 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:08:02 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.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  (14.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  (0.6ms) 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.2ms) ROLLBACK  (0.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  (16.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (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.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  (12.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.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} 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" = 101 Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Completed 200 OK in 34ms (Views: 31.2ms | ActiveRecord: 2.8ms)  (0.1ms) ROLLBACK  (0.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  (17.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  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON 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" = 101 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 1.1ms)  (0.2ms) ROLLBACK  (0.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  (22.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.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (24.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", 1001], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:08:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:08:03 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (3.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zSxyCp7qgZE7ZtybpYyK' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-15 18:08:03.688109', "updated_at" = '2013-07-15 18:08:03.688109', "auth_token" = 'zSxyCp7qgZE7ZtybpYyK' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (1.2ms) ROLLBACK  (0.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  (49.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  (0.2ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (27.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:08:04 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$rCVKTf4blhauSPJZ2WW.g.v6f7YOVwLDRaewwRdiV.aJlWM0Hkn9G"], ["updated_at", Mon, 15 Jul 2013 18:08:04 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 (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", Mon, 15 Jul 2013 18:08:04 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 18:08:04 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (10.1ms) 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  (28.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  (3.5ms) BEGIN  (7.3ms) SAVEPOINT active_record_1 SQL (9.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:08:04 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$oSpCbwphKSSxPEtroLhlMuB2RqLLOdHwwwAS5Hb.xZP4v1pEPts/W"], ["updated_at", Mon, 15 Jul 2013 18:08:04 UTC +00:00]]  (5.7ms) 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 (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", Mon, 15 Jul 2013 18:08:04 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 18:08:04 UTC +00:00]]  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (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  (19.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (25.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  (48.4ms) BEGIN  (1.4ms) SAVEPOINT active_record_1 SQL (8.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:08:04 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$dWffX.g3fV3t6MlclWzVNeqTMgbD7vKgqTFbU2EHcJtGoWHN1FceS"], ["updated_at", Mon, 15 Jul 2013 18:08:04 UTC +00:00]]  (0.8ms) 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 (2.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", Mon, 15 Jul 2013 18:08:04 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 18:08:04 UTC +00:00]]  (4.2ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (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  (24.2ms) 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  (0.1ms) BEGIN  (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", Mon, 15 Jul 2013 18:08:04 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$JC9vZPHpCk8bltodGAO6ZOc2LbVdUDQelYFVxg1SGv69/tBD/G8H6"], ["updated_at", Mon, 15 Jul 2013 18:08:04 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.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", Mon, 15 Jul 2013 18:08:04 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 18:08:04 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.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  (17.6ms) 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  (0.2ms) BEGIN  (10.3ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:08:05 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$v56OSkJXeFWPqiUo/j9mGOfg1Wi1o8lavAaBNxJaGAFIHihrSt3A6"], ["updated_at", Mon, 15 Jul 2013 18:08:05 UTC +00:00]]  (9.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) 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 (2.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", Mon, 15 Jul 2013 18:08:05 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 18:08:05 UTC +00:00]]  (5.6ms) ROLLBACK TO SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (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  (35.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  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:08:05 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$Ww.gDeKWf/ZHA3DptNB6WuXiBswB/A8fVY7cgKCU3vACPfT/Tcb9m"], ["updated_at", Mon, 15 Jul 2013 18:08:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (2.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", Mon, 15 Jul 2013 18:08:05 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 18:08:05 UTC +00:00]]  (1.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.6ms) ROLLBACK  (0.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  (27.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (4.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  (0.4ms) BEGIN  (0.2ms) 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", Mon, 15 Jul 2013 18:08:05 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$TT/SQ6WewB/F58CZH.qPieH8HWTM6Hya67jRugHiCOohzjsIuX2f6"], ["updated_at", Mon, 15 Jul 2013 18:08:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (4.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", Mon, 15 Jul 2013 18:08:05 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 18:08:05 UTC +00:00]]  (1.0ms) ROLLBACK TO SAVEPOINT active_record_1  (8.9ms) ROLLBACK  (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.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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  (1.2ms) BEGIN  (1.3ms) SAVEPOINT active_record_1 SQL (4.0ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:08:05 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$7winLtNFCNNbleqe21ERT.Um.cSiiR2kPRQ5k7OCrsGxyx/i6lUou"], ["updated_at", Mon, 15 Jul 2013 18:08:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (4.5ms) 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 (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", Mon, 15 Jul 2013 18:08:05 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 18:08:05 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.5ms) ROLLBACK  (0.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  (20.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) 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) BEGIN  (1.3ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:08:05 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$CWJiqfbrmIiB6KYzlTUVbOVdsprzVvKcGs2cR7GeqftDtYiEHunBq"], ["updated_at", Mon, 15 Jul 2013 18:08:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (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" = 'test10' LIMIT 1 SQL (2.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", Mon, 15 Jul 2013 18:08:05 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 18:08:05 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.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  (18.2ms) 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  (1.3ms) 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:08:06 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$ppd1PGt5Vcllzx/FD/XGZOEfummMQZ27sI4topiXPrtRYcwCHJrxK"], ["updated_at", Mon, 15 Jul 2013 18:08:06 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" = 'test11' 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", Mon, 15 Jul 2013 18:08:06 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 18:08:06 UTC +00:00]]  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (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  (18.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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 Connecting to database specified by database.yml  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.7ms) 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  (0.5ms) 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 (3.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:08:53 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$vXq9xZD2MrfGmsgNzgH72OukVQ4dKH.n.KLqSVrjcoB2x3mgJdEyS"], ["updated_at", Mon, 15 Jul 2013 18:08:53 UTC +00:00]] 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", Mon, 15 Jul 2013 18:08:53 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:08:53 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'aiKZzQzVKpksUcBxmfgM' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:08:53.030747', "updated_at" = '2013-07-15 18:08:53.030747', "authentication_token" = 'aiKZzQzVKpksUcBxmfgM' WHERE "public"."cadenero_accounts"."id" = 1  (2.0ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:08:53 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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 114ms (Views: 0.3ms | ActiveRecord: 0.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.3ms) ROLLBACK  (0.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  (13.2ms) 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  (0.8ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:08:53 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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", Mon, 15 Jul 2013 18:08:53 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$4F5orGKs5A.eSmoU8aLmlupKUY5vx4am8Zu7RPVrqJ0o5asN3jni2"], ["updated_at", Mon, 15 Jul 2013 18:08:53 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", Mon, 15 Jul 2013 18:08:53 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:08:53 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'nzZbreJohS1mq6355LQR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:08:53.406042', "updated_at" = '2013-07-15 18:08:53.406042', "authentication_token" = 'nzZbreJohS1mq6355LQR' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:08:53 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:08:53 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" = 'mU2wpkxMAZYEE9VZHgzW' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:08:53.470692', "updated_at" = '2013-07-15 18:08:53.470692', "auth_token" = 'mU2wpkxMAZYEE9VZHgzW' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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)  (2.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.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.7ms) 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")  (2.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (5.5ms) 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.1ms) 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" != 1) LIMIT 1 Completed 201 Created in 339ms (Views: 2.1ms | ActiveRecord: 58.9ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (7.2ms) ROLLBACK  (0.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  (20.0ms) 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  (0.3ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON 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" = 101 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Completed 200 OK in 32ms (Views: 30.2ms | ActiveRecord: 1.4ms)  (0.3ms) ROLLBACK  (0.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.5ms) 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  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} 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" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (0.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  (18.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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.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.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  (17.8ms) 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.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.3ms) ROLLBACK  (0.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  (16.2ms) 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  (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)  (1.4ms) ROLLBACK  (0.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  (21.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  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 13ms (Views: 12.5ms | ActiveRecord: 0.0ms)  (0.9ms) ROLLBACK  (0.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  (23.6ms) 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  (1.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 (1.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 18:08:57 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$a8AUkqliuFvIWbvf/LvtFO0vn65J6Ytau.FV87xThUBIpwz/2267G"], ["updated_at", Mon, 15 Jul 2013 18:08:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (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", Mon, 15 Jul 2013 18:08:57 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 18:08:57 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5CLydwCdeS5SKTLULaJm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 18:08:57.357742', "updated_at" = '2013-07-15 18:08:57.357742', "authentication_token" = '5CLydwCdeS5SKTLULaJm' WHERE "public"."cadenero_accounts"."id" = 1  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:08:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:08:57 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'U4qk5s5Eb4bHeLxLfvxs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:08:57.367820', "updated_at" = '2013-07-15 18:08:57.367820', "auth_token" = 'U4qk5s5Eb4bHeLxLfvxs' WHERE "public"."cadenero_members"."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", Mon, 15 Jul 2013 18:08:57 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$nPwCVa3Sa8tdzct2UrTlyOr1q1wFNSwEe2pc2noJheWbMjAeaGP/O"], ["updated_at", Mon, 15 Jul 2013 18:08:57 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", Mon, 15 Jul 2013 18:08:57 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$fmuEWBWNIAH8p5HugfpYwOe2F.ZAq5KnwU65QbbgiGpuFPj7timMm"], ["updated_at", Mon, 15 Jul 2013 18:08:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Mon, 15 Jul 2013 18:08:57 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 18:08:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pzTZXg6yxc2PGvoCHjwz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-15 18:08:57.578931', "updated_at" = '2013-07-15 18:08:57.578931', "authentication_token" = 'pzTZXg6yxc2PGvoCHjwz' WHERE "public"."cadenero_accounts"."id" = 2  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "www"  (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")  (1.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (9.4ms) 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  (17.1ms) 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.4ms) BEGIN  (2.3ms) ROLLBACK  (0.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  (16.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.9ms) 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 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.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  (17.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  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (0.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  (16.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  (5.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) ROLLBACK  (0.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  (18.1ms) 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.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (2.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:09:01 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$dGVP84XEQhHbLmJc5xMYUu1G87ajo2Yqeyuz5YC1SDBTaiQK4QAEy"], ["updated_at", Mon, 15 Jul 2013 18:09:01 UTC +00:00]]  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 18:09:01 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 18:09:01 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wetKAhMYbfhBFSyiywYg' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 18:09:01.804535', "updated_at" = '2013-07-15 18:09:01.804535', "authentication_token" = 'wetKAhMYbfhBFSyiywYg' WHERE "public"."cadenero_accounts"."id" = 1  (1.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:09:01 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:09:01 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" = 'zk8hLsY7xcZHLs7xHUQq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:09:01.814809', "updated_at" = '2013-07-15 18:09:01.814809', "auth_token" = 'zk8hLsY7xcZHLs7xHUQq' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test2"  (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.5ms) 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")  (6.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))   (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.9ms) 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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) 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:09:01 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.5ms) 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:09:02 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$5BaXgOnIaJ504AViQqCX6OZ51Mx88XwF7oqPlYztv70i2IhO5YhB."], ["updated_at", Mon, 15 Jul 2013 18:09:02 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:09:02 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:09:02 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'w6eGDbJvt3JuWzExLdxA' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:09:02.005388', "updated_at" = '2013-07-15 18:09:02.005388', "auth_token" = 'w6eGDbJvt3JuWzExLdxA' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 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" = 2 Completed 500 Internal Server Error in 122ms  (8.2ms) ROLLBACK  (0.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  (17.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (0.2ms) 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", Mon, 15 Jul 2013 18:09:02 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$TfV6e3EDKt0.N0BhMCN8LeDoyGJlHcNP5ss1VUrFkov8SFlvXok.S"], ["updated_at", Mon, 15 Jul 2013 18:09:02 UTC +00:00]]  (0.8ms) 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 (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", Mon, 15 Jul 2013 18:09:02 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 18:09:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LyP6V4v3W9VTwpjCxya9' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 18:09:02.191868', "updated_at" = '2013-07-15 18:09:02.191868', "authentication_token" = 'LyP6V4v3W9VTwpjCxya9' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:09:02 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:09:02 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'q6hwnwFGjzBjzjPH8oGS' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:09:02.199547', "updated_at" = '2013-07-15 18:09:02.199547', "auth_token" = 'q6hwnwFGjzBjzjPH8oGS' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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" ("authentication_token")  (0.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (0.8ms) 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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:09: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:09:02 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$aDZpQTG5bQNEtbm9xMeUM.kOMcNa62nL1UWIhgJb.iHbvPF29Lcuq"], ["updated_at", Mon, 15 Jul 2013 18:09:02 UTC +00:00]] SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:09:02 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:09:02 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gbnVRzyxTREDw9aVDzWD' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:09:02.364105', "updated_at" = '2013-07-15 18:09:02.364105', "auth_token" = 'gbnVRzyxTREDw9aVDzWD' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 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" = 2 Completed 500 Internal Server Error in 119ms  (7.9ms) ROLLBACK  (0.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  (16.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  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (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:09:02 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$qaevzVQvfvOkJf08HlZW6.3vZZCQi8eUHM.E5hsi2szscpTLA3aQa"], ["updated_at", Mon, 15 Jul 2013 18:09:02 UTC +00:00]] 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", Mon, 15 Jul 2013 18:09:02 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:09:02 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mqyDmM2xGydLoG5cnwir' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:09:02.523504', "updated_at" = '2013-07-15 18:09:02.523504', "authentication_token" = 'mqyDmM2xGydLoG5cnwir' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:09:02 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:09:02 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qp83QDzfEQBihKcMTrnC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:09:02.530408', "updated_at" = '2013-07-15 18:09:02.530408', "auth_token" = 'qp83QDzfEQBihKcMTrnC' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test"  (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)  (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.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" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') 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 LIMIT 1  (48.8ms) ROLLBACK  (0.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  (55.0ms) 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.3ms) 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.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  (29.3ms) 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.1ms) BEGIN Cadenero::V1::Account Exists (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.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  (33.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  (0.2ms) BEGIN Cadenero::V1::Account Exists (3.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (8.7ms) ROLLBACK  (0.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  (35.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  (0.1ms) BEGIN  (3.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:09:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:09:03 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (11.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'eGoMkjhTh9vzLHAZiMu9' LIMIT 1  (10.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-15 18:09:03.618274', "updated_at" = '2013-07-15 18:09:03.618274', "auth_token" = 'eGoMkjhTh9vzLHAZiMu9' WHERE "public"."cadenero_members"."id" = 1  (5.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.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  (16.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (6.9ms) 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  (1.6ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (8.4ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:09:03 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$mOYo45/rS7YIp4uwHwQfPuIpued6XFVQWuT.j8QGqh/MoJ09sXIwS"], ["updated_at", Mon, 15 Jul 2013 18:09:03 UTC +00:00]]  (2.4ms) RELEASE SAVEPOINT active_record_1  (5.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (6.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Mon, 15 Jul 2013 18:09:03 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 18:09:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DeyLU4zctvzaNdMv37Yu' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 18:09:03.880854', "updated_at" = '2013-07-15 18:09:03.880854', "authentication_token" = 'DeyLU4zctvzaNdMv37Yu' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:09:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:09:03 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fvK5sU195fGWpmFykzm8' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:09:03.887615', "updated_at" = '2013-07-15 18:09:03.887615', "auth_token" = 'fvK5sU195fGWpmFykzm8' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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)  (4.3ms) 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")  (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")  (3.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")  (14.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.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (5.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.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 13:09:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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"."email" = 'user5@example.com' LIMIT 1 Cadenero::User Load (2.1ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::V1::Account Load (2.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 1 Completed 500 Internal Server Error in 129ms  (9.6ms) ROLLBACK  (0.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  (23.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  (0.6ms) BEGIN  (6.6ms) 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:09:04 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$cjHtmZbyO2hkwj4bp/I3xu/bzueESt8FHjt7JxPDmuy1RlWsAcrey"], ["updated_at", Mon, 15 Jul 2013 18:09:04 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (4.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 18:09:04 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 18:09:04 UTC +00:00]] Cadenero::V1::Account Load (10.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Pn3d2x5zS9vmyiLeR7Pd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 18:09:04.369572', "updated_at" = '2013-07-15 18:09:04.369572', "authentication_token" = 'Pn3d2x5zS9vmyiLeR7Pd' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:09:04 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:09:04 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HgJEbigWG1myu1YmnFp5' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:09:04.388225', "updated_at" = '2013-07-15 18:09:04.388225', "auth_token" = 'HgJEbigWG1myu1YmnFp5' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (9.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.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")  (11.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")  (1.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.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.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (132.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.1ms) SELECT version FROM "schema_migrations"  (1.0ms) 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 13:09:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:09:04 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (7.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" = 'user6@example.com' LIMIT 1 Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 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" = 1 Completed 500 Internal Server Error in 154ms  (5.4ms) ROLLBACK  (0.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.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  (2.9ms) BEGIN  (10.2ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:09:05 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$uhhP6eD5f8ITYyqqhFtkY.sJr4CoxvS2dJimwf/QIpxE4tJ2rHCI6"], ["updated_at", Mon, 15 Jul 2013 18:09:05 UTC +00:00]]  (0.6ms) 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 (1.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", Mon, 15 Jul 2013 18:09:05 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 18:09:05 UTC +00:00]] Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'q4KApWF4J4goYgsKUVYc' LIMIT 1  (9.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 18:09:05.078063', "updated_at" = '2013-07-15 18:09:05.078063', "authentication_token" = 'q4KApWF4J4goYgsKUVYc' WHERE "public"."cadenero_accounts"."id" = 1  (0.6ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:09:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:09:05 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sLqaGAQcpAmpWs8Ey2za' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:09:05.097124', "updated_at" = '2013-07-15 18:09:05.097124', "auth_token" = 'sLqaGAQcpAmpWs8Ey2za' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (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.8ms) 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")  (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))   (2.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (10.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (4.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.8ms) 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:09:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:09:05 -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' LIMIT 1  (0.6ms) SAVEPOINT active_record_1 SQL (3.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:09:05 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$CZLxE1ZEEt5N692QWe7MpeGoXMsRj67Wzm8ONMMR/hv3NWueqSjiW"], ["updated_at", Mon, 15 Jul 2013 18:09:05 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:09:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:09:05 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'erydEaipWmYpQz3hu9dz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:09:05.320713', "updated_at" = '2013-07-15 18:09:05.320713', "auth_token" = 'erydEaipWmYpQz3hu9dz' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 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" = 2 Completed 500 Internal Server Error in 147ms  (4.4ms) ROLLBACK  (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  (16.1ms) 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.6ms) BEGIN  (3.2ms) SAVEPOINT active_record_1 SQL (3.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:09:05 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$UAhATdIIt7VuvS3pwLU05Ovl2MsKlo6LHzkyD54LilnEu8KxMuYSu"], ["updated_at", Mon, 15 Jul 2013 18:09:05 UTC +00:00]]  (4.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' 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", Mon, 15 Jul 2013 18:09:05 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 18:09:05 UTC +00:00]] Cadenero::V1::Account Load (4.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'L5XkDgiWKrzxTS9rjkXp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 18:09:05.498220', "updated_at" = '2013-07-15 18:09:05.498220', "authentication_token" = 'L5XkDgiWKrzxTS9rjkXp' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:09:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:09:05 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (6.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Z9wrv9XHYmbMsnuxN81F' LIMIT 1  (2.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:09:05.509147', "updated_at" = '2013-07-15 18:09:05.509147', "auth_token" = 'Z9wrv9XHYmbMsnuxN81F' WHERE "public"."cadenero_members"."id" = 1  (3.8ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test7"  (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)  (4.5ms) 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")  (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))   (5.7ms) 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.8ms) 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)   (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.4ms) SELECT version FROM "schema_migrations"  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:09:05 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.6ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Cadenero::User Load (2.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 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" = 1 Completed 500 Internal Server Error in 128ms  (7.2ms) ROLLBACK  (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.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  (0.6ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 SQL (7.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:09:05 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$HxA.MbcD0pdDcG2YysIQ7.2cZ1w4uBRQX6Go7LKQT9ugJld8Ig.S."], ["updated_at", Mon, 15 Jul 2013 18:09:05 UTC +00:00]]  (10.6ms) 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" = 'test8' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 18:09:05 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 18:09:05 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XqssPQyEQybrqcXpnH8y' LIMIT 1  (3.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 18:09:05.947951', "updated_at" = '2013-07-15 18:09:05.947951', "authentication_token" = 'XqssPQyEQybrqcXpnH8y' WHERE "public"."cadenero_accounts"."id" = 1  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:09:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:09:05 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" = 'u9fyE1ZmBQyqKsp3ZBYk' LIMIT 1  (1.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:09:05.963392', "updated_at" = '2013-07-15 18:09:05.963392', "auth_token" = 'u9fyE1ZmBQyqKsp3ZBYk' WHERE "public"."cadenero_members"."id" = 1  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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)   (3.7ms) 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.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.5ms) 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")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.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.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 13:09:06 -0500 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.0ms) ROLLBACK  (0.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  (18.8ms) 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.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", Mon, 15 Jul 2013 18:09:06 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$IMAWJIpgIouazSl94B7p1.nyPiDB6qXMNXqRN5BiBTSUeYOYZWQE2"], ["updated_at", Mon, 15 Jul 2013 18:09:06 UTC +00:00]]  (1.0ms) RELEASE SAVEPOINT active_record_1  (1.0ms) 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 (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", Mon, 15 Jul 2013 18:09:06 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 18:09:06 UTC +00:00]] Cadenero::V1::Account Load (3.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rDmwPpqQsJpxqV9FoDMq' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 18:09:06.216985', "updated_at" = '2013-07-15 18:09:06.216985', "authentication_token" = 'rDmwPpqQsJpxqV9FoDMq' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (7.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:09:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:09:06 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SQJcskKpfNRMixwzJ5kq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:09:06.226523', "updated_at" = '2013-07-15 18:09:06.226523', "auth_token" = 'SQJcskKpfNRMixwzJ5kq' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (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)   (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))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.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 13:09:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:09:06 -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.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" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.3ms) ROLLBACK  (0.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.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (0.1ms) 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", Mon, 15 Jul 2013 18:09:06 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$vH4tFLYtwfB0GySJfBDlrOQWKBqK4kV5BfjIPmIuLQOHOzgAt7i8m"], ["updated_at", Mon, 15 Jul 2013 18:09:06 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.9ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 18:09:06 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 18:09:06 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FnxzpsBUQ6n81PWnHxkK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-15 18:09:06.458725', "updated_at" = '2013-07-15 18:09:06.458725', "authentication_token" = 'FnxzpsBUQ6n81PWnHxkK' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:09:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:09:06 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7BcpiQ6RreZFXN7oiVth' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:09:06.466543', "updated_at" = '2013-07-15 18:09:06.466543', "auth_token" = '7BcpiQ6RreZFXN7oiVth' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (7.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.4ms) 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")  (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.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:09:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:09:06 -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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') LIMIT 1 Cadenero::User Load (4.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 Completed 422 Unprocessable Entity in 10ms (Views: 0.4ms | ActiveRecord: 6.0ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.1ms) ROLLBACK  (0.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  (16.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  (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", Mon, 15 Jul 2013 18:09:06 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$2Esn6Yf.7sGh8WH0/ZHhYOJKMEd0iwyjoijmLWQcYM1ToOC7XenLu"], ["updated_at", Mon, 15 Jul 2013 18:09:06 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.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", Mon, 15 Jul 2013 18:09:06 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 18:09:06 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pUZMZ7yAedyzzNmjV9Bm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-15 18:09:06.682388', "updated_at" = '2013-07-15 18:09:06.682388', "authentication_token" = 'pUZMZ7yAedyzzNmjV9Bm' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:09:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:09:06 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DzZ8d42fTsDQzzRksFZR' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:09:06.688804', "updated_at" = '2013-07-15 18:09:06.688804', "auth_token" = 'DzZ8d42fTsDQzzRksFZR' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (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.4ms) 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")  (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.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (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", Mon, 15 Jul 2013 18:09:06 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$zdHe2R4P5qT8gXujA.0UxOmSsg/MzZKm51hMAAZ3./Ju4zjnk8bry"], ["updated_at", Mon, 15 Jul 2013 18:09:06 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", Mon, 15 Jul 2013 18:09:06 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 2], ["subdomain", "test12"], ["updated_at", Mon, 15 Jul 2013 18:09:06 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'WZDX2ezxxpmFkGropD6f' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 2, "created_at" = '2013-07-15 18:09:06.837251', "updated_at" = '2013-07-15 18:09:06.837251', "authentication_token" = 'WZDX2ezxxpmFkGropD6f' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:09:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:09:06 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'p2XCoXSq7VYGqsQpJw1G' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 2, "created_at" = '2013-07-15 18:09:06.842411', "updated_at" = '2013-07-15 18:09:06.842411', "auth_token" = 'p2XCoXSq7VYGqsQpJw1G' WHERE "public"."cadenero_members"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:09:06 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:09:06 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user13@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user13@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.2ms) ROLLBACK  (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.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 Connecting to database specified by database.yml  (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'  (15.1ms) 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  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (10.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", 1001], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:10:02 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:10:02 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" = 'DhqC26Fbceq2hhmfMzg4' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-15 18:10:02.719760', "updated_at" = '2013-07-15 18:10:02.719760', "auth_token" = 'DhqC26Fbceq2hhmfMzg4' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) 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  (13.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  (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 18:10:02 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$rrBcZxr.QbdqQLLrZkOHJey5LSNvFZxg6a7yl/H.um9cw1mbUR8tq"], ["updated_at", Mon, 15 Jul 2013 18:10:02 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 (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", Mon, 15 Jul 2013 18:10:02 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 18:10:02 UTC +00:00]] Cadenero::V1::Account Load (2.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mrKgG8wKCMFqxEURnHJa' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 18:10:02.963572', "updated_at" = '2013-07-15 18:10:02.963572', "authentication_token" = 'mrKgG8wKCMFqxEURnHJa' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:10:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:10:03 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ympRjWSsrdWxcRi7M91A' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:10:03.059906', "updated_at" = '2013-07-15 18:10:03.059906', "auth_token" = 'ympRjWSsrdWxcRi7M91A' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (21.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.8ms) 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")  (9.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))  (2.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")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (13.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)  (1.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (11.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (5.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:10:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:10:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (0.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" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 146ms (Views: 30.2ms | ActiveRecord: 2.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  (5.8ms) ROLLBACK  (0.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  (12.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "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 (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:10:03 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$EBJS5fSQ38CBazpEnflDW.LE2EDLJD6bpCKVNoexRORGadogr/mFi"], ["updated_at", Mon, 15 Jul 2013 18:10:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Mon, 15 Jul 2013 18:10:03 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 18:10:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LxUsMssMxvn5satbNrmz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 18:10:03.619068', "updated_at" = '2013-07-15 18:10:03.619068', "authentication_token" = 'LxUsMssMxvn5satbNrmz' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:10:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:10:03 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" = 'nJY7hGsG1xNqA9PeUFAp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:10:03.626343', "updated_at" = '2013-07-15 18:10:03.626343', "auth_token" = 'nJY7hGsG1xNqA9PeUFAp' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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.2ms) 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.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))  (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")  (2.6ms) 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.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.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 13:10:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:10:03 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (4.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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:10:03 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$IAJG1Hx2WSo.3LUd1JF9VOZCvybpZ67P03FLam1o6KcBoXOUwopwm"], ["updated_at", Mon, 15 Jul 2013 18:10: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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:10:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:10:03 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DHDchADpJ7XnpgMyv9cY' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:10:03.813187', "updated_at" = '2013-07-15 18:10:03.813187', "auth_token" = 'DHDchADpJ7XnpgMyv9cY' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 126ms (Views: 5.7ms | ActiveRecord: 7.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/2" for 127.0.0.1 at 2013-07-15 13:10:03 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 12ms (Views: 5.9ms | ActiveRecord: 1.9ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:10:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 7ms (Views: 4.9ms | ActiveRecord: 1.0ms) 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" for 127.0.0.1 at 2013-07-15 13:10:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (6.5ms) ROLLBACK  (0.4ms) 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  (18.7ms) 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  (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 18:10:04 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$Pqz1HHxr.Tj1m9blrhmjDuIGphS5wYUoNIeJsgQkjvlJfedkZqt8a"], ["updated_at", Mon, 15 Jul 2013 18:10:04 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 (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", Mon, 15 Jul 2013 18:10:04 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 18:10:04 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'r4AWk66nJzcADeiF7sB1' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 18:10:04.052453', "updated_at" = '2013-07-15 18:10:04.052453', "authentication_token" = 'r4AWk66nJzcADeiF7sB1' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:10:04 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:10:04 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" = '1iKKZdpyGrxfKpoW3q7e' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:10:04.066697', "updated_at" = '2013-07-15 18:10:04.066697', "auth_token" = '1iKKZdpyGrxfKpoW3q7e' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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" ("authentication_token")  (3.0ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.5ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.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")  (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.9ms) 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.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 13:10:04 -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 ('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" = 1 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" = 1 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 108ms (Views: 5.7ms | ActiveRecord: 2.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  (4.3ms) 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  (18.3ms) 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  (0.6ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (2.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:10:04 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$uL9qWKqPmLqcuzXFZLgcPO.ozFKLFNXUPdmS8bbiBHU.d5zB2vukq"], ["updated_at", Mon, 15 Jul 2013 18:10:04 UTC +00:00]]  (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" = 'test4' 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", Mon, 15 Jul 2013 18:10:04 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 18:10:04 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'afAaKD9cmUvEzKNjovJv' LIMIT 1  (13.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 18:10:04.451784', "updated_at" = '2013-07-15 18:10:04.451784', "authentication_token" = 'afAaKD9cmUvEzKNjovJv' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (8.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:10:04 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:10:04 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" = 'uzzfSsQJx3YsyVHdq6wC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:10:04.474086', "updated_at" = '2013-07-15 18:10:04.474086', "auth_token" = 'uzzfSsQJx3YsyVHdq6wC' WHERE "public"."cadenero_members"."id" = 1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test4"  (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)   (1.2ms) 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.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" ("account_id")  (6.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:10:04 -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.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" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.5ms) 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 154ms (Views: 51.2ms | ActiveRecord: 2.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  (4.0ms) ROLLBACK  (0.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.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  (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", Mon, 15 Jul 2013 18:10:04 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$O.70Uw7E6d937cFywzVqBepFaGyFoT.hPyRw.ZttOuOkZhYBc.1xe"], ["updated_at", Mon, 15 Jul 2013 18:10:04 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 (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", Mon, 15 Jul 2013 18:10:04 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 18:10:04 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VfqhqqSzDcfRyM4sqyDh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 18:10:04.850947', "updated_at" = '2013-07-15 18:10:04.850947', "authentication_token" = 'VfqhqqSzDcfRyM4sqyDh' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:10:04 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:10:04 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" = 'buKAQHtSYr5yVMjjxgtq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:10:04.859084', "updated_at" = '2013-07-15 18:10:04.859084', "auth_token" = 'buKAQHtSYr5yVMjjxgtq' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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.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.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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.5ms) SELECT version FROM "schema_migrations"  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:10:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:10:04 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.5ms) ROLLBACK  (0.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  (18.0ms) 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  (1.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 18:10:05 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$KunIXeGLhCq6zZrbn6XKf.gJ7ACU0YzsuyTSNkoa0zsnrPo4MNwqm"], ["updated_at", Mon, 15 Jul 2013 18:10:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' 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", Mon, 15 Jul 2013 18:10:05 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 18:10:05 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6PxmghrwsThUpvkFTYev' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 18:10:05.071945', "updated_at" = '2013-07-15 18:10:05.071945', "authentication_token" = '6PxmghrwsThUpvkFTYev' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:10:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:10:05 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'x4RHA12B4xsyTpWCpTnM' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:10:05.080042', "updated_at" = '2013-07-15 18:10:05.080042', "auth_token" = 'x4RHA12B4xsyTpWCpTnM' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) CREATE SCHEMA "test6"  (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")  (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))  (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.3ms) 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.5ms) 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 13:10:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:10:05 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.7ms) ROLLBACK  (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.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (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 18:10:05 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$2C/EkAS3bWWfu4C94yAXTOgPxjF745fnMKtkL9FOm/Xmwlgih9uPa"], ["updated_at", Mon, 15 Jul 2013 18:10:05 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 (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", Mon, 15 Jul 2013 18:10:05 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 18:10:05 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '1SBTeDykqJtTTpveE4h4' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 18:10:05.306900', "updated_at" = '2013-07-15 18:10:05.306900', "authentication_token" = '1SBTeDykqJtTTpveE4h4' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:10:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:10:05 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" = 'gxhQ7R3iyyMXU8ALHkHx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:10:05.313154', "updated_at" = '2013-07-15 18:10:05.313154', "auth_token" = 'gxhQ7R3iyyMXU8ALHkHx' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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" ("authentication_token")  (1.9ms) 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))  (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.9ms) 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.8ms) 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.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.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", Mon, 15 Jul 2013 18:10:05 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$MEeHT1uxCeulvH63jbvai.nwjyzhtKphyE1NlBeAKKzKo20HZXZJW"], ["updated_at", Mon, 15 Jul 2013 18:10:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Mon, 15 Jul 2013 18:10:05 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 2], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 18:10:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'RHRKqxzJmpvALrUHg7vU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 2, "created_at" = '2013-07-15 18:10:05.473931', "updated_at" = '2013-07-15 18:10:05.473931', "authentication_token" = 'RHRKqxzJmpvALrUHg7vU' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:10:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:10:05 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7q5mNiM37SCZG22VfAG2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 2, "created_at" = '2013-07-15 18:10:05.479109', "updated_at" = '2013-07-15 18:10:05.479109', "auth_token" = '7q5mNiM37SCZG22VfAG2' WHERE "public"."cadenero_members"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:10:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:10:05 -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 ('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" = 'user8@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.0ms) ROLLBACK  (1.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  (21.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (0.5ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (5.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:10:05 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$3U.XZaSrdqAL2dkaYya2JOFIEemRxAjtmbCQ9TacQbqEuTnwI7rtq"], ["updated_at", Mon, 15 Jul 2013 18:10:05 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.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", Mon, 15 Jul 2013 18:10:05 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 18:10:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3o8YRQDpikLkw57JQMCC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 18:10:05.654586', "updated_at" = '2013-07-15 18:10:05.654586', "authentication_token" = '3o8YRQDpikLkw57JQMCC' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:10:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:10:05 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" = 'yu8wUUDSmpEEuzNnFa7Z' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:10:05.661132', "updated_at" = '2013-07-15 18:10:05.661132', "auth_token" = 'yu8wUUDSmpEEuzNnFa7Z' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (2.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")  (9.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.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.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 13:10:05 -0500 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.2ms) ROLLBACK  (1.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  (17.0ms) 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.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.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  (16.1ms) 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.1ms) BEGIN 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  (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.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  (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.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  (12.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.1ms) BEGIN  (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 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:10:06 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$haeWi1aRmZ7.E4GU7nvciuGi9k4qT3O0jnpkEm4zWRq3krFr1WcWS"], ["updated_at", Mon, 15 Jul 2013 18:10:06 UTC +00:00]] 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", Mon, 15 Jul 2013 18:10:06 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:10:06 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qyX8fS2dMznufkpkaoYc' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:10:06.138897', "updated_at" = '2013-07-15 18:10:06.138897', "authentication_token" = 'qyX8fS2dMznufkpkaoYc' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:10:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:10:06 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sTeSPBDzxzUfCdi2W2yq' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:10:06.144887', "updated_at" = '2013-07-15 18:10:06.144887', "auth_token" = 'sTeSPBDzxzUfCdi2W2yq' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (4.5ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.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.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.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') 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 LIMIT 1  (5.6ms) ROLLBACK  (0.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  (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  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.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.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  (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) ROLLBACK  (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.0ms) 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.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.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.1ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (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.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.1ms) BEGIN 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" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (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.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  (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", Mon, 15 Jul 2013 18:10:06 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$HsEGBcht0A2FbjFtaewtEemTYNh/cezWlzaq7o4.7XxRBrsZYXUKy"], ["updated_at", Mon, 15 Jul 2013 18:10:06 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" = 'test10' 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", Mon, 15 Jul 2013 18:10:06 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 18:10:06 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'iGAszpzwRAFWRayPepLp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-15 18:10:06.952940', "updated_at" = '2013-07-15 18:10:06.952940', "authentication_token" = 'iGAszpzwRAFWRayPepLp' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:10:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:10:06 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'K4xDzSfWDpAoceFn8dkb' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:10:06.993738', "updated_at" = '2013-07-15 18:10:06.993738', "auth_token" = 'K4xDzSfWDpAoceFn8dkb' WHERE "public"."cadenero_members"."id" = 1  (1.0ms) 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.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")  (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.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:10: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:10:07 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$U06ycHCyQIKb5EMJcrFH4eYTdvE7LGz7EwmN3jde2IxgTErck0pz6"], ["updated_at", Mon, 15 Jul 2013 18:10:07 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:10:07 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:10:07 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CbqFLuTgkrBd56CqG8Yw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:10:07.149382', "updated_at" = '2013-07-15 18:10:07.149382', "auth_token" = 'CbqFLuTgkrBd56CqG8Yw' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 116ms (Views: 7.2ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:10:07 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 13ms (Views: 7.0ms | ActiveRecord: 1.8ms)  (3.7ms) ROLLBACK  (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.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.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 18:10:07 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$ujwOjLL71fb5TUFeWbALMOYskFDIw6pvkFHXq2yFB8Zy79B2TNGZu"], ["updated_at", Mon, 15 Jul 2013 18:10:07 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" = 'test11' 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", Mon, 15 Jul 2013 18:10:07 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 18:10:07 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '17PctAGvDnmnP7c52JkN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-15 18:10:07.320205', "updated_at" = '2013-07-15 18:10:07.320205', "authentication_token" = '17PctAGvDnmnP7c52JkN' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:10:07 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:10:07 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'CvsBGmZzGqCqnzU6URAY' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:10:07.327801', "updated_at" = '2013-07-15 18:10:07.327801', "auth_token" = 'CvsBGmZzGqCqnzU6URAY' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (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.2ms) 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))   (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)   (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/users" for 127.0.0.1 at 2013-07-15 13:10: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.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:10:07 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$d2WkEX06XsFsl.Zcgryseeb9YeBqSSfE7tUt2U/wVPxXSFcV2dgpO"], ["updated_at", Mon, 15 Jul 2013 18:10: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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:10:07 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:10:07 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3mseV9hkXRpyzQvyqzWW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:10:07.541679', "updated_at" = '2013-07-15 18:10:07.541679', "auth_token" = '3mseV9hkXRpyzQvyqzWW' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 122ms (Views: 5.9ms | ActiveRecord: 3.7ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:10:07 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 1.7ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' 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", Mon, 15 Jul 2013 18:10:07 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 2], ["subdomain", "test12"], ["updated_at", Mon, 15 Jul 2013 18:10:07 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Jwj8zyn8vbw7B7EM4z5q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 2, "created_at" = '2013-07-15 18:10:07.572933', "updated_at" = '2013-07-15 18:10:07.572933', "authentication_token" = 'Jwj8zyn8vbw7B7EM4z5q' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:10:07 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:10:07 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZiB5VmPxsevTTQWDgBiE' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 2, "created_at" = '2013-07-15 18:10:07.578997', "updated_at" = '2013-07-15 18:10:07.578997', "auth_token" = 'ZiB5VmPxsevTTQWDgBiE' WHERE "public"."cadenero_members"."id" = 3  (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.4ms) 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))   (1.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:10: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" = '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", Mon, 15 Jul 2013 18:10:07 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ibY.CZzcV/9Qqmu0D9zMC.EcaM2T72r37OaBQyexnkR45TtK2fux."], ["updated_at", Mon, 15 Jul 2013 18:10: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", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:10:07 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:10:07 UTC +00:00], ["user_id", 3]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'bzHrwDzScpZE9Bac4xxh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 3, "created_at" = '2013-07-15 18:10:07.732231', "updated_at" = '2013-07-15 18:10:07.732231', "auth_token" = 'bzHrwDzScpZE9Bac4xxh' WHERE "public"."cadenero_members"."id" = 4  (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" = 3 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 3 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 114ms (Views: 5.8ms | ActiveRecord: 3.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/3" for 127.0.0.1 at 2013-07-15 13:10:07 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"3"} 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" = 2 AND "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 3 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 200 OK in 11ms (Views: 5.6ms | ActiveRecord: 1.7ms) Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:10:07 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (1.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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 12ms (Views: 6.0ms | ActiveRecord: 2.9ms)  (5.5ms) ROLLBACK  (0.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  (14.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) 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.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (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:10:10 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$ZIFmdUiWYtrFKxPHztyiXOIt6LC2cpBFenhbrQ3ub3/UJe4PxJCaO"], ["updated_at", Mon, 15 Jul 2013 18:10:10 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (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", Mon, 15 Jul 2013 18:10:10 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1], ["subdomain", "test13"], ["updated_at", Mon, 15 Jul 2013 18:10:10 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'TTSfp538zxZ1xhxSCipG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 1, "created_at" = '2013-07-15 18:10:10.553027', "updated_at" = '2013-07-15 18:10:10.553027', "authentication_token" = 'TTSfp538zxZ1xhxSCipG' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:10:10 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:10:10 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zL6GZoqiBHgE4XyBXnJ3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:10:10.560819', "updated_at" = '2013-07-15 18:10:10.560819', "auth_token" = 'zL6GZoqiBHgE4XyBXnJ3' WHERE "public"."cadenero_members"."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", Mon, 15 Jul 2013 18:10:10 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$LT2Ppoxhv.0GSBpvTKQa2OBlYLSqMcM5QmNIOuJUOXYvhQ3y2lqF6"], ["updated_at", Mon, 15 Jul 2013 18:10:10 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", Mon, 15 Jul 2013 18:10:10 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$M6fsNKpLXFJK2C7hsIQgdu4qLSLF9J4Z7MkTKhhovsEJwetqDsxiy"], ["updated_at", Mon, 15 Jul 2013 18:10:10 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", Mon, 15 Jul 2013 18:10:10 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 18:10:10 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dxJzUsivxx2ZnXLBX8X9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-15 18:10:10.766473', "updated_at" = '2013-07-15 18:10:10.766473', "authentication_token" = 'dxJzUsivxx2ZnXLBX8X9' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "www"  (4.6ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (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.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (5.0ms) ROLLBACK  (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.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  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (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  (18.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.4ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (0.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  (13.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  (0.2ms) BEGIN  (1.0ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.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.8ms) 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.1ms) BEGIN  (0.1ms) ROLLBACK  (0.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  (17.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  (0.2ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:10:15 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.5ms) 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.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:10:15 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$fzVyux3f8a1TuQ3OPST18.n2capnOWRDcTX5Xgf.mK5jX//EF7mVy"], ["updated_at", Mon, 15 Jul 2013 18:10:15 UTC +00:00]] SQL (1.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", Mon, 15 Jul 2013 18:10:15 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:10:15 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6D9A8xzqmywFVQLEanAm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:10:15.154896', "updated_at" = '2013-07-15 18:10:15.154896', "authentication_token" = '6D9A8xzqmywFVQLEanAm' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:10:15 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:10:15 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7U4gwiwe3r5DigKbADAi' LIMIT 1  (1.0ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:10:15.163660', "updated_at" = '2013-07-15 18:10:15.163660', "auth_token" = '7U4gwiwe3r5DigKbADAi' WHERE "public"."cadenero_members"."id" = 1  (3.4ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.2ms) 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")  (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.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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') 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 Completed 201 Created in 208ms (Views: 2.6ms | ActiveRecord: 52.8ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (3.9ms) ROLLBACK  (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  (22.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  (0.7ms) BEGIN  (0.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (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:10:15 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$d9HPxZSzH075ybCVAXqiMeI8KpSLxeUYZV3MOEfPG1VKOq5WvmQze"], ["updated_at", Mon, 15 Jul 2013 18:10:15 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", Mon, 15 Jul 2013 18:10:15 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:10:15 UTC +00:00]] Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'azzD51WAXxRoXacorGqT' LIMIT 1  (6.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:10:15.394547', "updated_at" = '2013-07-15 18:10:15.394547', "authentication_token" = 'azzD51WAXxRoXacorGqT' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:10:15 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.5ms) 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 118ms (Views: 0.4ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.8ms) ROLLBACK  (0.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  (18.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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  (0.5ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.6ms) ROLLBACK  (0.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  (62.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.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.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  (12.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 Connecting to database specified by database.yml  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.7ms) 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  (1.6ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.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  (13.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.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.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.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.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 126ms (Views: 122.0ms | ActiveRecord: 3.2ms)  (0.3ms) ROLLBACK  (0.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.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) 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  (1.8ms) BEGIN 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" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.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  (17.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  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:12: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 (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (5.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:12:58 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$lozmQbLBNYtMFkkiiYIi9OCYPys6Nn8gLLoaVV84P9XlkUtW46cb."], ["updated_at", Mon, 15 Jul 2013 18:12:58 UTC +00:00]] 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", Mon, 15 Jul 2013 18:12:58 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:12:58 UTC +00:00]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'YYqtz7ZTZDRBfnHQxyJv' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:12:58.147340', "updated_at" = '2013-07-15 18:12:58.147340', "authentication_token" = 'YYqtz7ZTZDRBfnHQxyJv' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:12:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:12:58 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Qz7yMzQTjos7pfaDSmiz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:12:58.243633', "updated_at" = '2013-07-15 18:12:58.243633', "auth_token" = 'Qz7yMzQTjos7pfaDSmiz' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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.8ms) 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))  (0.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.8ms) 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)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.7ms) 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.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.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1 Completed 201 Created in 364ms (Views: 3.5ms | ActiveRecord: 58.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (7.2ms) ROLLBACK  (0.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.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "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.3ms) BEGIN  (2.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (7.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 18:12:58 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$qlnFgATbS1f6.B0BkcphLu60IHfrKIqkPcCeUcj1Q0iVzuspvifSy"], ["updated_at", Mon, 15 Jul 2013 18:12:58 UTC +00:00]] SQL (6.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", Mon, 15 Jul 2013 18:12:58 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:12:58 UTC +00:00]] Cadenero::V1::Account Load (1.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eyEC6uxtqhZ7RuapXrQT' LIMIT 1  (7.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:12:58.554289', "updated_at" = '2013-07-15 18:12:58.554289', "authentication_token" = 'eyEC6uxtqhZ7RuapXrQT' WHERE "public"."cadenero_accounts"."id" = 1  (6.9ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:12:58 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (1.8ms) 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.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 Completed 422 Unprocessable Entity in 130ms (Views: 0.3ms | ActiveRecord: 2.4ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (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  (17.8ms) 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.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", Mon, 15 Jul 2013 18:12:58 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$Z9M4c3UVtHM7fYMQ2yk9FOHrSLAG1nuPvGYbCGPYiSyjllcnp8Wne"], ["updated_at", Mon, 15 Jul 2013 18:12:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (0.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", Mon, 15 Jul 2013 18:12:58 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 18:12:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'bRxy3mNKR1ji3ZzxXNMq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 18:12:58.866196', "updated_at" = '2013-07-15 18:12:58.866196', "authentication_token" = 'bRxy3mNKR1ji3ZzxXNMq' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:12:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:12:58 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'exjsWpu3HJ9fe2Ey4Fts' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:12:58.872447', "updated_at" = '2013-07-15 18:12:58.872447', "auth_token" = 'exjsWpu3HJ9fe2Ey4Fts' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test1"  (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)   (2.4ms) 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")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) 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:12:58 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user1@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test1') LIMIT 1 Cadenero::User Load (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" = 'user1@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 130ms (Views: 6.9ms | ActiveRecord: 2.8ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1  (15.0ms) ROLLBACK  (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  (17.2ms) 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  (0.1ms) 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", Mon, 15 Jul 2013 18:12:59 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$lSZvrG8eNlNczZs9oqPb8e.g2qbW/Y9XngD8vgkbuMw4ALEooSiI6"], ["updated_at", Mon, 15 Jul 2013 18:12:59 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" = 'test2' 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", Mon, 15 Jul 2013 18:12:59 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 18:12:59 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qCVzsRiBHg5p9pvsy3pq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 18:12:59.280242', "updated_at" = '2013-07-15 18:12:59.280242', "authentication_token" = 'qCVzsRiBHg5p9pvsy3pq' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:12:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:12:59 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'grTZpkpniVRJQLFMHdPF' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:12:59.286752', "updated_at" = '2013-07-15 18:12:59.286752', "auth_token" = 'grTZpkpniVRJQLFMHdPF' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test2"  (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.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")  (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))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:12: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 13:12:59 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.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" = 'user2@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 107ms (Views: 5.4ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1  (3.6ms) ROLLBACK  (0.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  (16.8ms) 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.5ms) 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 18:12:59 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$IW1oNPZzCge9dCRPiaNOVuOl5OBU11dMUN0KAqAnxZtrFQaBFLlmq"], ["updated_at", Mon, 15 Jul 2013 18:12:59 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.4ms) 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", Mon, 15 Jul 2013 18:12:59 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 18:12:59 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dzteSs67AdcF6MpRf2Eg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 18:12:59.603632', "updated_at" = '2013-07-15 18:12:59.603632', "authentication_token" = 'dzteSs67AdcF6MpRf2Eg' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:12:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:12:59 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2Sze9XB4ijWmaqAMTqb2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:12:59.609762', "updated_at" = '2013-07-15 18:12:59.609762', "auth_token" = '2Sze9XB4ijWmaqAMTqb2' WHERE "public"."cadenero_members"."id" = 1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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.2ms) 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")  (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.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:12: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/users" for 127.0.0.1 at 2013-07-15 13:12: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 (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.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:12:59 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$5RMdocl891bT9TmfZ4.X0.jWDTrtbaS/ky7RKeqTwYecL2crUeV9S"], ["updated_at", Mon, 15 Jul 2013 18:12:59 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:12:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:12:59 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Nz8nWcEpizyfsTeSz75E' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:12:59.776819', "updated_at" = '2013-07-15 18:12:59.776819', "auth_token" = 'Nz8nWcEpizyfsTeSz75E' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 113ms (Views: 5.7ms | ActiveRecord: 3.7ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:12:59 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.6ms | 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 13:12: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.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 7ms (Views: 4.6ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:12:59 -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" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (3.2ms) ROLLBACK  (0.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  (18.4ms) 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  (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 18:12:59 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$lfUhSjZInE2cJx5cVPmIYOoBsJwtdCixhTnOP5biNW6AQGdxi40by"], ["updated_at", Mon, 15 Jul 2013 18:12:59 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.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", Mon, 15 Jul 2013 18:12:59 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 18:12:59 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '28Z4xNABBFThzqGCt7eq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 18:12:59.982601', "updated_at" = '2013-07-15 18:12:59.982601', "authentication_token" = '28Z4xNABBFThzqGCt7eq' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:12:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:12:59 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6BgzXUZzEdywzed6X4Dm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:12:59.989202', "updated_at" = '2013-07-15 18:12:59.989202', "auth_token" = '6BgzXUZzEdywzed6X4Dm' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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.4ms) 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")  (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))  (1.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.4ms) 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")  (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)   (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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:13:00 -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" = 1 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 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" = 1  (6.4ms) ROLLBACK  (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  (19.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  (0.8ms) BEGIN  (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", Mon, 15 Jul 2013 18:13:00 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$xUHuK8dmi57eBAqfk.JJJuwR90uC3OfCuGKpWzDNWV4TbSRpf5D5."], ["updated_at", Mon, 15 Jul 2013 18:13:00 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.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", Mon, 15 Jul 2013 18:13:00 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 18:13:00 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'miyT3rFNJkZy4MQ2Ls9d' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 18:13:00.313117', "updated_at" = '2013-07-15 18:13:00.313117', "authentication_token" = 'miyT3rFNJkZy4MQ2Ls9d' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:13:00 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:13:00 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" = '1sDoMcrEsEvivyE4Zg6u' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:13:00.319250', "updated_at" = '2013-07-15 18:13:00.319250', "auth_token" = '1sDoMcrEsEvivyE4Zg6u' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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.1ms) 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")  (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" ("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.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)  (2.3ms) 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.5ms) 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", Mon, 15 Jul 2013 18:13:00 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$suD8q80L6NwC/tbgW6vPpOpGI2LXtxBbqlaUS4/.Ac4OmNY2WDvqC"], ["updated_at", Mon, 15 Jul 2013 18:13:00 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Mon, 15 Jul 2013 18:13:00 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 2], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 18:13:00 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'eppg1d7Qi2uHG2eaEJCi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 2, "created_at" = '2013-07-15 18:13:00.477946', "updated_at" = '2013-07-15 18:13:00.477946', "authentication_token" = 'eppg1d7Qi2uHG2eaEJCi' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:13:00 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:13:00 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ogvi6ZxKhppTY3pS4iiz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 2, "created_at" = '2013-07-15 18:13:00.483160', "updated_at" = '2013-07-15 18:13:00.483160', "auth_token" = 'ogvi6ZxKhppTY3pS4iiz' WHERE "public"."cadenero_members"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:13:00 -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:13:00 -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.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" = 'user6@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.6ms) ROLLBACK  (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.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  (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", Mon, 15 Jul 2013 18:13:00 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$tcGcSltvuPnd9vteqqYRY.CuqKHM5FTttTWYnJMgMju06iqsSyCmO"], ["updated_at", Mon, 15 Jul 2013 18:13:00 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.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", Mon, 15 Jul 2013 18:13:00 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 18:13:00 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2S6kyHDkkPrQbgq1JKia' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 18:13:00.635178', "updated_at" = '2013-07-15 18:13:00.635178', "authentication_token" = '2S6kyHDkkPrQbgq1JKia' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:13:00 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:13:00 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" = 'yfrnkG37HzyzMEcNyb9z' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:13:00.644883', "updated_at" = '2013-07-15 18:13:00.644883', "auth_token" = 'yfrnkG37HzyzMEcNyb9z' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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)  (1.9ms) 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.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" ("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")  (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)   (3.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.9ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) 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:13:00 -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:13:00 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test7') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (3.8ms) ROLLBACK  (0.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  (16.0ms) 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.4ms) 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 18:13:00 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$NKzQHxUk.TiDbU703rwY3enpADqErYWNlB4O/ikd5qgxonqRkC2g2"], ["updated_at", Mon, 15 Jul 2013 18:13:00 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" = 'test8' 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", Mon, 15 Jul 2013 18:13:00 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 18:13:00 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zxDz6VGsDHkjCr1x9PXq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 18:13:00.887247', "updated_at" = '2013-07-15 18:13:00.887247', "authentication_token" = 'zxDz6VGsDHkjCr1x9PXq' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:13:00 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:13:00 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YauDojsYygVTq6KbSTMq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:13:00.894027', "updated_at" = '2013-07-15 18:13:00.894027', "auth_token" = 'YauDojsYygVTq6KbSTMq' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (5.3ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (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))   (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.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)   (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.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 GET "/v1" for 127.0.0.1 at 2013-07-15 13:13:00 -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:13:00 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (0.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" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (11.5ms) ROLLBACK  (0.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  (12.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.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", Mon, 15 Jul 2013 18:13:01 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$nZS2jjN8bOg3Yo2gzC0KFOOLAcGvKKt/686aHOGp0sxceir5metnS"], ["updated_at", Mon, 15 Jul 2013 18:13:01 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' 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", Mon, 15 Jul 2013 18:13:01 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 18:13:01 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'AzpAsU6K1Zv9VioigFvT' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 18:13:01.102320', "updated_at" = '2013-07-15 18:13:01.102320', "authentication_token" = 'AzpAsU6K1Zv9VioigFvT' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:13:01 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:13:01 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rmduinLENZe56yuNq7P3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:13:01.109611', "updated_at" = '2013-07-15 18:13:01.109611', "auth_token" = 'rmduinLENZe56yuNq7P3' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test9"  (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" ("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.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")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:13:01 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (2.9ms) ROLLBACK  (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  (12.2ms) 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.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:13:01 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:13:01 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" = '7thRHhdiJhjAYFUwsmjJ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-15 18:13:01.288303', "updated_at" = '2013-07-15 18:13:01.288303', "auth_token" = '7thRHhdiJhjAYFUwsmjJ' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (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.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.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 62ms (Views: 62.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (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.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  (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.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  (13.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  (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.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  (16.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  (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.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.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  (0.1ms) BEGIN 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  (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.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.1ms) BEGIN  (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 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:13:01 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$TIWzD5P/wF7sQd36CFE4C.21lTlJTUEH69xzQPTKM1zrfX85n156C"], ["updated_at", Mon, 15 Jul 2013 18:13:01 UTC +00:00]] 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", Mon, 15 Jul 2013 18:13:01 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:13:01 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SzDuFQUKQHXsgVNYtYrw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:13:01.817665', "updated_at" = '2013-07-15 18:13:01.817665', "authentication_token" = 'SzDuFQUKQHXsgVNYtYrw' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:13:01 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:13:01 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HUj5AVgyNsNg7bWrjzUt' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:13:01.823834', "updated_at" = '2013-07-15 18:13:01.823834', "auth_token" = 'HUj5AVgyNsNg7bWrjzUt' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (4.4ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (1.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 LIMIT 1  (4.0ms) ROLLBACK  (0.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  (12.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  (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.3ms) ROLLBACK  (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.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  (0.1ms) BEGIN  (0.1ms) ROLLBACK  (4.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  (12.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  (0.1ms) BEGIN  (0.9ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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", Mon, 15 Jul 2013 18:13:08 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$xxPYN636mYbHOVyC4aEXb.TVF8QpU2dIVWl.D55mxid3QUds.pgOq"], ["updated_at", Mon, 15 Jul 2013 18:13:08 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 (1.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", Mon, 15 Jul 2013 18:13:08 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 18:13:08 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fupxiwz21q6jkc2ohPZt' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-15 18:13:08.849833', "updated_at" = '2013-07-15 18:13:08.849833', "authentication_token" = 'fupxiwz21q6jkc2ohPZt' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:13:08 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:13:08 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fsXvwQxX9D8jxMxg4yzy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:13:08.859546', "updated_at" = '2013-07-15 18:13:08.859546', "auth_token" = 'fsXvwQxX9D8jxMxg4yzy' WHERE "public"."cadenero_members"."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", Mon, 15 Jul 2013 18:13:08 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$/xDnXM0.NoirCaFaj2eWJ.pU9Cguobw1sNmVv0RMBzL3rKaNp/gwu"], ["updated_at", Mon, 15 Jul 2013 18:13:08 UTC +00:00]]  (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", Mon, 15 Jul 2013 18:13:09 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$O7ncqeNB.389LAmSqg9h7OB0fyMzNWeeCGeNv9n.3fsfFAYbUEFBy"], ["updated_at", Mon, 15 Jul 2013 18:13:09 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" = 'www' 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", Mon, 15 Jul 2013 18:13:09 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 18:13:09 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'wEwMw3y8Zr1ippRq7ytY' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-15 18:13:09.065018', "updated_at" = '2013-07-15 18:13:09.065018', "authentication_token" = 'wEwMw3y8Zr1ippRq7ytY' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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")  (3.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.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.0ms) 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)   (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.8ms) SELECT version FROM "schema_migrations"  (1.8ms) 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.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (2.8ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.8ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (10.2ms) ROLLBACK  (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  (20.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.1ms) 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.4ms) BEGIN  (0.9ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.4ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) ROLLBACK  (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.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  (0.1ms) BEGIN  (0.5ms) ROLLBACK  (0.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.1ms) 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.1ms) BEGIN  (7.0ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:13:09 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$L2xnqDx3kuUH4rKU1UzS1utlplP0ysbu9beFioERhZBdZR6IVjiZW"], ["updated_at", Mon, 15 Jul 2013 18:13: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" = 'test11' 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", Mon, 15 Jul 2013 18:13:09 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 18:13:09 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yQVzTzmCb5y4nta2J9Nn' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-15 18:13:09.382111', "updated_at" = '2013-07-15 18:13:09.382111', "authentication_token" = 'yQVzTzmCb5y4nta2J9Nn' WHERE "public"."cadenero_accounts"."id" = 1  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:13:09 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:13:09 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" = 'GeeX7EAAQcrxacQkHPzh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:13:09.390791', "updated_at" = '2013-07-15 18:13:09.390791', "auth_token" = 'GeeX7EAAQcrxacQkHPzh' WHERE "public"."cadenero_members"."id" = 1  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (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.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.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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.1ms) 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.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:13:09 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:13:09 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$o5Q4KzDynh9BsiFrDNAe1uOCvi09FPvdR0O3FTsPfVcuqcDWn2NZq"], ["updated_at", Mon, 15 Jul 2013 18:13:09 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:13:09 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:13:09 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YREoTyJ2a2JpK6xXQyTJ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:13:09.562877', "updated_at" = '2013-07-15 18:13:09.562877', "auth_token" = 'YREoTyJ2a2JpK6xXQyTJ' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 117ms (Views: 7.1ms | ActiveRecord: 5.1ms) Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:13:09 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 13ms (Views: 7.7ms | ActiveRecord: 1.9ms)  (13.8ms) ROLLBACK  (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  (18.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  (0.3ms) BEGIN  (0.6ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:13:09 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$LYgAMddIYpXKq8C/zeU9H.yskhBjY7egoGuuIvwNZeHgU7IV1AANm"], ["updated_at", Mon, 15 Jul 2013 18:13:09 UTC +00:00]]  (0.9ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (7.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (5.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", Mon, 15 Jul 2013 18:13:09 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1], ["subdomain", "test12"], ["updated_at", Mon, 15 Jul 2013 18:13:09 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Rsxz3bmeyVWFbkJgp7pF' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 1, "created_at" = '2013-07-15 18:13:09.822673', "updated_at" = '2013-07-15 18:13:09.822673', "authentication_token" = 'Rsxz3bmeyVWFbkJgp7pF' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:13:09 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:13:09 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" = 'NyxwZwRky2fPsZBoCPDh' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:13:09.834220', "updated_at" = '2013-07-15 18:13:09.834220', "auth_token" = 'NyxwZwRky2fPsZBoCPDh' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test12"  (9.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" ("authentication_token")  (1.1ms) 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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.9ms) 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.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:13:09 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' 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:13:10 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$k2iOsCEQMi5LzI63AR0rveBdT6G6UMUI.vQOZBVPVfYNdt0eZiHOq"], ["updated_at", Mon, 15 Jul 2013 18:13:10 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:13:10 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:13:10 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ihvt6u6ArsN5R4qxepsp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:13:10.028509', "updated_at" = '2013-07-15 18:13:10.028509', "auth_token" = 'ihvt6u6ArsN5R4qxepsp' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 141ms (Views: 6.6ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:13:10 -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" = 'test12' LIMIT 1 Cadenero::User Load (7.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 19ms (Views: 6.2ms | ActiveRecord: 8.8ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' 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", Mon, 15 Jul 2013 18:13:10 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 2], ["subdomain", "test13"], ["updated_at", Mon, 15 Jul 2013 18:13:10 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2fViu4zHJschmgHbDuMz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 2, "created_at" = '2013-07-15 18:13:10.077326', "updated_at" = '2013-07-15 18:13:10.077326', "authentication_token" = '2fViu4zHJschmgHbDuMz' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:13:10 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:13:10 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nFcXFyPq4vvNTzgtcYts' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 2, "created_at" = '2013-07-15 18:13:10.083487', "updated_at" = '2013-07-15 18:13:10.083487', "auth_token" = 'nFcXFyPq4vvNTzgtcYts' WHERE "public"."cadenero_members"."id" = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test13"  (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)  (0.8ms) 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.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" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.8ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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.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.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 13:13:10 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) 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", Mon, 15 Jul 2013 18:13:10 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$YQnBt4hLIDJqtSOzAHMQ4eo7et4ja7DYvvFZJ.L9w9U53hhFC9ih2"], ["updated_at", Mon, 15 Jul 2013 18:13:10 UTC +00:00]] 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", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:13:10 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:13:10 UTC +00:00], ["user_id", 3]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xmgnt7Dumvn2gycq9qzp' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 3, "created_at" = '2013-07-15 18:13:10.295118', "updated_at" = '2013-07-15 18:13:10.295118', "auth_token" = 'xmgnt7Dumvn2gycq9qzp' WHERE "public"."cadenero_members"."id" = 4  (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" = 3 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 3 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 137ms (Views: 10.6ms | ActiveRecord: 4.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/3" for 127.0.0.1 at 2013-07-15 13:13:10 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"3"} 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.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" = 2 AND "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 3 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 200 OK in 92ms (Views: 7.7ms | ActiveRecord: 2.2ms) Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:13:10 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (12.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (16.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (25.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 144ms (Views: 81.1ms | ActiveRecord: 59.2ms)  (11.9ms) ROLLBACK  (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  (23.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (5.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 Connecting to database specified by database.yml  (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.4ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (15.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  (1.0ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (49.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 18:14:10 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$nj0go7rkNQizgyZNKxZHa.ukE1nnXl4nPJl0mF8iitMCprrFeEuDK"], ["updated_at", Mon, 15 Jul 2013 18:14:10 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" = 'test1' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 18:14:10 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 18:14:10 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'bWYnFRBQH355RG4qU19x' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 18:14:10.510762', "updated_at" = '2013-07-15 18:14:10.510762', "authentication_token" = 'bWYnFRBQH355RG4qU19x' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:10 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:10 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" = '1s7syezDQ23aLnFxFkdL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:14:10.618352', "updated_at" = '2013-07-15 18:14:10.618352', "auth_token" = '1s7syezDQ23aLnFxFkdL' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test1"  (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.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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")  (2.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.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.3ms) 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 POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:14:10 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:14:10 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$PGeihlD9w6obSDWMGAlwMedvuKWoGPbc8t6Jt4Txzf.i/xaJimWzy"], ["updated_at", Mon, 15 Jul 2013 18:14:10 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:10 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:10 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pKhaVrzqEpJXmscfNC7d' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:14:10.882712', "updated_at" = '2013-07-15 18:14:10.882712', "auth_token" = 'pKhaVrzqEpJXmscfNC7d' WHERE "public"."cadenero_members"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 156ms (Views: 39.4ms | 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/2" for 127.0.0.1 at 2013-07-15 13:14:10 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 13ms (Views: 6.7ms | ActiveRecord: 1.8ms)  (7.4ms) ROLLBACK  (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  (17.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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.9ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (7.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:14:11 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$Dsxi9vhKu3uy/S.Q0JKGM.PczyuR7mAgPFWmlsUkaCZg3OXITPLZ6"], ["updated_at", Mon, 15 Jul 2013 18:14:11 UTC +00:00]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (5.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' 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", Mon, 15 Jul 2013 18:14:11 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 18:14:11 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '13oNPz5JVKV9wVTyG7FC' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 18:14:11.143143', "updated_at" = '2013-07-15 18:14:11.143143', "authentication_token" = '13oNPz5JVKV9wVTyG7FC' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:11 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:11 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '5Nu8jtNSp8sjtrnmhtWJ' LIMIT 1  (1.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:14:11.151358', "updated_at" = '2013-07-15 18:14:11.151358', "auth_token" = '5Nu8jtNSp8sjtrnmhtWJ' WHERE "public"."cadenero_members"."id" = 1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.7ms) CREATE SCHEMA "test2"  (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)  (0.9ms) 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.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.4ms) 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")  (2.2ms) 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)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.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 13:14:11 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:14:11 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$Sjf5oMJU9yy1o6iUwkFr0OIkYLtZi8SZAXVzsojodlNs/f7pMpn9O"], ["updated_at", Mon, 15 Jul 2013 18:14:11 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:11 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:11 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kZKXGvs9ynQZkMubpzMF' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:14:11.326259', "updated_at" = '2013-07-15 18:14:11.326259', "auth_token" = 'kZKXGvs9ynQZkMubpzMF' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 120ms (Views: 6.0ms | 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/2" for 127.0.0.1 at 2013-07-15 13:14:11 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 12ms (Views: 7.0ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Mon, 15 Jul 2013 18:14:11 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 18:14:11 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'FVeCyhpAyP2iCtZ9JYxx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 2, "created_at" = '2013-07-15 18:14:11.359730', "updated_at" = '2013-07-15 18:14:11.359730', "authentication_token" = 'FVeCyhpAyP2iCtZ9JYxx' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:11 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:11 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'J56U3NmXGZkCTuop5nhC' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 2, "created_at" = '2013-07-15 18:14:11.367061', "updated_at" = '2013-07-15 18:14:11.367061', "auth_token" = 'J56U3NmXGZkCTuop5nhC' WHERE "public"."cadenero_members"."id" = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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)  (1.4ms) 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")  (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))   (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.5ms) 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)   (1.0ms) 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 13:14:11 -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" = 'test3' LIMIT 1  (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", Mon, 15 Jul 2013 18:14:11 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$KSKnEuLA4MOuo0uGyaC8gOt/Vywmfw16ZCqGu74hnTiR2blqMwb8i"], ["updated_at", Mon, 15 Jul 2013 18:14:11 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", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:11 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:11 UTC +00:00], ["user_id", 3]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RxMss8J4KFrpWKqcVZf9' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 3, "created_at" = '2013-07-15 18:14:11.530945', "updated_at" = '2013-07-15 18:14:11.530945', "auth_token" = 'RxMss8J4KFrpWKqcVZf9' WHERE "public"."cadenero_members"."id" = 4  (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" = 3 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 3 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 116ms (Views: 7.1ms | ActiveRecord: 4.6ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/3" for 127.0.0.1 at 2013-07-15 13:14:11 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"3"} 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" = 2 AND "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 3 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 1.5ms) Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:14:11 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 Cadenero::User Load (0.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 12ms (Views: 6.6ms | ActiveRecord: 2.1ms)  (8.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  (14.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) 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.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:11 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:11 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" = '4NkCNJedrhvdazPBBKNg' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-15 18:14:11.736003', "updated_at" = '2013-07-15 18:14:11.736003', "auth_token" = '4NkCNJedrhvdazPBBKNg' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (0.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  (33.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.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", Mon, 15 Jul 2013 18:14:11 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$V.QCPBaFe6tdk4WcDX8iTeYYitHATNSWOGbCOE3WuOSxRP.fTIRSK"], ["updated_at", Mon, 15 Jul 2013 18:14:11 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 (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", Mon, 15 Jul 2013 18:14:11 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 18:14:11 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8TJNNDyZXogkfzPn9xui' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 18:14:11.920999', "updated_at" = '2013-07-15 18:14:11.920999', "authentication_token" = '8TJNNDyZXogkfzPn9xui' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:11 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:11 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" = '22NLK8KzTuzsDhY8J7tv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:14:11.929015', "updated_at" = '2013-07-15 18:14:11.929015', "auth_token" = '22NLK8KzTuzsDhY8J7tv' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (1.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.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")  (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.8ms) 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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:14:11 -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 (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" = 'user3@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 109ms (Views: 5.4ms | ActiveRecord: 2.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:14:12 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:14:12 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (11.7ms) ROLLBACK  (0.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  (30.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (6.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  (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", Mon, 15 Jul 2013 18:14:12 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$r8R3dbOqtxj/qy5saLQst.6IyIFJ8UG6iZTlkEdPE8zyLUPa7kljq"], ["updated_at", Mon, 15 Jul 2013 18:14:12 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.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", Mon, 15 Jul 2013 18:14:12 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 18:14:12 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9CbpwixTXJhbRE2DiEdi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 18:14:12.424985', "updated_at" = '2013-07-15 18:14:12.424985', "authentication_token" = '9CbpwixTXJhbRE2DiEdi' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:12 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:12 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" = '74RnyW8WeZquB8iKUYBY' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:14:12.431191', "updated_at" = '2013-07-15 18:14:12.431191', "auth_token" = '74RnyW8WeZquB8iKUYBY' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (7.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" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (2.5ms) 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)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.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 13:14:12 -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:14:12 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:14:12 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$VlB2QSvAnQwLl6NA1zkbzuOParGThvhjKgNHAtcCDMJBNlKYHxOYa"], ["updated_at", Mon, 15 Jul 2013 18:14:12 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:12 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:12 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TKsNBBP2Vsz2jvzxEJ9v' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:14:12.598434', "updated_at" = '2013-07-15 18:14:12.598434', "auth_token" = 'TKsNBBP2Vsz2jvzxEJ9v' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 114ms (Views: 6.1ms | ActiveRecord: 4.1ms) 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/2" for 127.0.0.1 at 2013-07-15 13:14:12 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.6ms | 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 13:14:12 -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" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 10ms (Views: 7.8ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:14:12 -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" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (3.8ms) ROLLBACK  (0.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  (16.1ms) 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.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", Mon, 15 Jul 2013 18:14:12 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$0zn1fLKA2SIROjx2tVKHKuJLztmbmXYRH.jBH3ntqsC1n3Rh0DxrK"], ["updated_at", Mon, 15 Jul 2013 18:14:12 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.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", Mon, 15 Jul 2013 18:14:12 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 18:14:12 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'niropMb3CpBFxvvFH5vJ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 18:14:12.784861', "updated_at" = '2013-07-15 18:14:12.784861', "authentication_token" = 'niropMb3CpBFxvvFH5vJ' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:12 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:12 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (2.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'P6pUEiUxeMxGpbS3wqhU' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:14:12.791071', "updated_at" = '2013-07-15 18:14:12.791071', "auth_token" = 'P6pUEiUxeMxGpbS3wqhU' WHERE "public"."cadenero_members"."id" = 1  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test6"  (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" ("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))  (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) 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.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:14:12 -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:14:12 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 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" = 1 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 107ms (Views: 5.4ms | ActiveRecord: 2.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:14:12 -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" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (5.5ms) ROLLBACK  (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  (14.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  (0.4ms) 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 18:14:13 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$lwnQfeU1JX9Cr7cIJIbZ1uTchiKWEuibotPIB.oERYT9JenCj3JaC"], ["updated_at", Mon, 15 Jul 2013 18:14:13 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 (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", Mon, 15 Jul 2013 18:14:13 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 18:14:13 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GSLnSjNh5FTLw94wM5pd' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 18:14:13.112584', "updated_at" = '2013-07-15 18:14:13.112584', "authentication_token" = 'GSLnSjNh5FTLw94wM5pd' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:13 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:13 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" = 'oa4pN9L2mss62oqeJuzq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:14:13.118695', "updated_at" = '2013-07-15 18:14:13.118695', "auth_token" = 'oa4pN9L2mss62oqeJuzq' WHERE "public"."cadenero_members"."id" = 1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.3ms) 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)   (1.2ms) 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")  (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))  (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.4ms) 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)  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.3ms) 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.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:14:13 -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.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" = 'user6@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 108ms (Views: 5.4ms | ActiveRecord: 2.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 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user6@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:14:13 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.4ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:14:13 -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 13:14:13 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:14:13 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$gu98oiUrEpn7l81HgHJ3EOQhJvmMJM8QLwn9jvu/xlXNz06xXI8BO"], ["updated_at", Mon, 15 Jul 2013 18:14:13 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:13 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:13 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qmySrqvKiUUYGLJS7Zqp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:14:13.407723', "updated_at" = '2013-07-15 18:14:13.407723', "auth_token" = 'qmySrqvKiUUYGLJS7Zqp' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 111ms (Views: 5.3ms | ActiveRecord: 3.4ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:14:13 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.5ms | 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 13:14:13 -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" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 7ms (Views: 4.9ms | 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  (5.6ms) ROLLBACK  (0.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.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  (0.1ms) 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 18:14:13 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$WXOLZSv.OSidE0WBPmGVU.e6KMDm2k9ugFGW7r15U5Ws8ncjxpkD."], ["updated_at", Mon, 15 Jul 2013 18:14:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Mon, 15 Jul 2013 18:14:13 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 18:14:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'bsCse1XcDNKxxu8NVinR' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 18:14:13.596860', "updated_at" = '2013-07-15 18:14:13.596860', "authentication_token" = 'bsCse1XcDNKxxu8NVinR' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:13 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:13 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'owTfqtybULroa1q5h3Bi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:14:13.603083', "updated_at" = '2013-07-15 18:14:13.603083', "auth_token" = 'owTfqtybULroa1q5h3Bi' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (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)  (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")  (4.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" ("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.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.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')  (1.8ms) 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", Mon, 15 Jul 2013 18:14:13 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$FUa26f9uokXuUy67UiNNCO2Ku8g2M4Cx21qibnJ4ruMASD/8GFB6W"], ["updated_at", Mon, 15 Jul 2013 18:14:13 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", Mon, 15 Jul 2013 18:14:13 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 2], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 18:14:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gDzRzYtPUw2zzRS7PN11' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 2, "created_at" = '2013-07-15 18:14:13.792210', "updated_at" = '2013-07-15 18:14:13.792210', "authentication_token" = 'gDzRzYtPUw2zzRS7PN11' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:13 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:13 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '4YeBoVM5p9WszcJvoQHd' LIMIT 1  (1.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 2, "created_at" = '2013-07-15 18:14:13.797695', "updated_at" = '2013-07-15 18:14:13.797695', "auth_token" = '4YeBoVM5p9WszcJvoQHd' WHERE "public"."cadenero_members"."id" = 2  (0.2ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:14:13 -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 13:14:13 -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.5ms) 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" = 1 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.4ms | ActiveRecord: 1.0ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.3ms) ROLLBACK  (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  (15.8ms) 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.7ms) 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 18:14:13 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$M7jhtyND4.kXQZnjurTBQeHnaYaf8MNH8xecspBf85UxV2L5q1LbK"], ["updated_at", Mon, 15 Jul 2013 18:14:13 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" = 'test10' 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", Mon, 15 Jul 2013 18:14:13 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 18:14:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7i8s5ANq1CSyYgV9sBy6' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-15 18:14:13.969145', "updated_at" = '2013-07-15 18:14:13.969145', "authentication_token" = '7i8s5ANq1CSyYgV9sBy6' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:13 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:13 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" = '3wqb2qmSD96ezdzzmFaJ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:14:13.976429', "updated_at" = '2013-07-15 18:14:13.976429', "auth_token" = '3wqb2qmSD96ezdzzmFaJ' WHERE "public"."cadenero_members"."id" = 1  (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.6ms) 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.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.0ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:14:14 -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.9ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:14:14 -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 ('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" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 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' LIMIT 1  (3.6ms) ROLLBACK  (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  (17.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  (0.3ms) 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 18:14:14 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$B0BCz5vsWZ8plrc0qpG0OOt1uuju45vdLaXjsFHV.48R3NXYqRPw."], ["updated_at", Mon, 15 Jul 2013 18:14:14 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" = 'test11' 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", Mon, 15 Jul 2013 18:14:14 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 18:14:14 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'spU8ZhMcqMsPxvX3FPuz' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-15 18:14:14.196574', "updated_at" = '2013-07-15 18:14:14.196574', "authentication_token" = 'spU8ZhMcqMsPxvX3FPuz' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:14 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:14 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" = 'NJZvyQvUv7m4mgY7UTeH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:14:14.202932', "updated_at" = '2013-07-15 18:14:14.202932', "auth_token" = 'NJZvyQvUv7m4mgY7UTeH' WHERE "public"."cadenero_members"."id" = 1  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (5.7ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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")  (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))   (1.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:14:14 -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:14:14 -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.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | 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  (3.7ms) ROLLBACK  (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  (24.2ms) 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.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", Mon, 15 Jul 2013 18:14:14 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$L3BzciCFcNQgxvL9yGxWFuq0qEmw82JIrmECT5.iCCoqwEJzzF.Le"], ["updated_at", Mon, 15 Jul 2013 18:14:14 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" = 'test12' 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", Mon, 15 Jul 2013 18:14:14 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1], ["subdomain", "test12"], ["updated_at", Mon, 15 Jul 2013 18:14:14 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zXwVwnsh5ZUCm1C6vqzx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 1, "created_at" = '2013-07-15 18:14:14.434430', "updated_at" = '2013-07-15 18:14:14.434430', "authentication_token" = 'zXwVwnsh5ZUCm1C6vqzx' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:14 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:14 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'kht4AcWgQ9MpsLjp9xqn' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:14:14.440912', "updated_at" = '2013-07-15 18:14:14.440912', "auth_token" = 'kht4AcWgQ9MpsLjp9xqn' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (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" ("authentication_token")  (1.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (1.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)   (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.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:14:14 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.6ms) ROLLBACK  (0.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.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.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.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.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  (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.2ms) ROLLBACK  (0.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.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  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (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  (17.0ms) 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.1ms) BEGIN 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" = 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.2ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (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.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  (0.1ms) BEGIN  (0.2ms) ROLLBACK  (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.8ms) 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.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) 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 18:14:18 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$OqVsDgSgGE4REryoSuG.Ku15e9Aq/5k8Ym7v5rQVYOoprInWpt7me"], ["updated_at", Mon, 15 Jul 2013 18:14:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' LIMIT 1 SQL (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", Mon, 15 Jul 2013 18:14:18 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1], ["subdomain", "test13"], ["updated_at", Mon, 15 Jul 2013 18:14:18 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'pKPMpAQz4WQAzszHaUAh' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 1, "created_at" = '2013-07-15 18:14:18.092923', "updated_at" = '2013-07-15 18:14:18.092923', "authentication_token" = 'pKPMpAQz4WQAzszHaUAh' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:18 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:18 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7KwPnxqGJrssujyzNy3M' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:14:18.100968', "updated_at" = '2013-07-15 18:14:18.100968', "auth_token" = '7KwPnxqGJrssujyzNy3M' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_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", Mon, 15 Jul 2013 18:14:18 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$OQv31smxQ.e/kptQcTrrueP9fsbn/I/wic5ZiDXB.PEuOhbm/mH6u"], ["updated_at", Mon, 15 Jul 2013 18:14:18 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", Mon, 15 Jul 2013 18:14:18 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$mvb2tN4a9WOzqsBdadE34OggpxZuKxBYlWl/ZHNPhDO63cBk4hj0C"], ["updated_at", Mon, 15 Jul 2013 18:14:18 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", Mon, 15 Jul 2013 18:14:18 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 18:14:18 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '2wvfoztWGgPdnsARk7qy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-15 18:14:18.305073', "updated_at" = '2013-07-15 18:14:18.305073', "authentication_token" = '2wvfoztWGgPdnsARk7qy' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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" ("authentication_token")  (1.7ms) 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.0ms) 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.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.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')  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (5.0ms) ROLLBACK  (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.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  (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.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.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.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.3ms) ROLLBACK  (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.0ms) 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.1ms) BEGIN  (0.1ms) ROLLBACK  (0.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  (14.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  (0.1ms) BEGIN Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.2ms) ROLLBACK  (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  (13.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  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (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.3ms) 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.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.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.8ms) 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.1ms) BEGIN  (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 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:14:22 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$2NoSUWcl8tdxNWFQ4p90V.FVYCnDOwW/iObQe1fBST3zwONtKGsMG"], ["updated_at", Mon, 15 Jul 2013 18:14:22 UTC +00:00]] 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", Mon, 15 Jul 2013 18:14:22 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:14:22 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '9stayF2yoKDkYF9Ku75s' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:14:22.436930', "updated_at" = '2013-07-15 18:14:22.436930', "authentication_token" = '9stayF2yoKDkYF9Ku75s' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:22 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:22 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'E4YFKipRqLzqYbcyqDCB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:14:22.443746', "updated_at" = '2013-07-15 18:14:22.443746', "auth_token" = 'E4YFKipRqLzqYbcyqDCB' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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)   (0.9ms) 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")  (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.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.6ms) 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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') 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 LIMIT 1  (6.4ms) ROLLBACK  (0.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  (22.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  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 3ms (Views: 2.0ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (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  (13.0ms) 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  (1.7ms) 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.2ms) ROLLBACK  (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  (16.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  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:14:22 -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.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (5.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 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", Mon, 15 Jul 2013 18:14:22 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$H9UfhRFovpgklFX9itOk9eSvfAdSk2390booJp3SglK2CB/NXwwRy"], ["updated_at", Mon, 15 Jul 2013 18:14:22 UTC +00:00]] 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", Mon, 15 Jul 2013 18:14:22 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:14:22 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Bt9rqqMvxL118JxQQ9Jx' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:14:22.946677', "updated_at" = '2013-07-15 18:14:22.946677', "authentication_token" = 'Bt9rqqMvxL118JxQQ9Jx' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:14:22 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:14:22 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LhzQiyzu5BiV5say4UzR' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:14:22.954399', "updated_at" = '2013-07-15 18:14:22.954399', "auth_token" = 'LhzQiyzu5BiV5say4UzR' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test"  (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)   (3.3ms) 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.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.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1 Completed 201 Created in 246ms (Views: 1.8ms | ActiveRecord: 52.3ms) Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (2.5ms) ROLLBACK  (0.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  (13.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (12.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' 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", Mon, 15 Jul 2013 18:14:23 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$R9.9YZmbrBp5S5aSNcxDe.NaTEdf74JPp60qfd5Fj6Ru.NBgmTmv6"], ["updated_at", Mon, 15 Jul 2013 18:14:23 UTC +00:00]] 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", Mon, 15 Jul 2013 18:14:23 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:14:23 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zvwHchpceNk8ZeMUeYfH' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:14:23.189459', "updated_at" = '2013-07-15 18:14:23.189459', "authentication_token" = 'zvwHchpceNk8ZeMUeYfH' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:14: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}  (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 325ms (Views: 0.3ms | ActiveRecord: 0.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.6ms) ROLLBACK  (0.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  (25.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 Connecting to database specified by database.yml  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (18.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  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.2ms) ROLLBACK  (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.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (4.9ms) 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.1ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.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  (14.8ms) 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  (0.2ms) BEGIN Cadenero::V1::Account Exists (4.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.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.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.1ms) BEGIN  (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 (3.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 18:15:07 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$CMkPXUcscHygBAERfA1Rb.IcNdKrz6kGsF005pLZp6IZfOgWE/5O6"], ["updated_at", Mon, 15 Jul 2013 18:15:07 UTC +00:00]] 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", Mon, 15 Jul 2013 18:15:07 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:15:07 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8S22Q45ay81Fyz768ZNQ' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:15:07.771657', "updated_at" = '2013-07-15 18:15:07.771657', "authentication_token" = '8S22Q45ay81Fyz768ZNQ' WHERE "public"."cadenero_accounts"."id" = 1  (2.2ms) RELEASE SAVEPOINT active_record_1  (3.0ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:07 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:07 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JBSJFLvtLLzbGNbo9pWu' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:07.811246', "updated_at" = '2013-07-15 18:15:07.811246', "auth_token" = 'JBSJFLvtLLzbGNbo9pWu' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test"  (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.0ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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" ("account_id")  (1.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.8ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) 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') 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 LIMIT 1  (27.1ms) ROLLBACK  (0.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  (24.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.8ms) 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.7ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:15:08 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$zgP1LvqcjeVHNEkc/vX97uDM9WPuwG9BjEPPi4/Jf0aUSYBVEeQKi"], ["updated_at", Mon, 15 Jul 2013 18:15:08 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (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", Mon, 15 Jul 2013 18:15:08 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 18:15:08 UTC +00:00]] Cadenero::V1::Account Load (2.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zq67pViBNJy6F2faBn18' LIMIT 1  (6.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 18:15:08.236598', "updated_at" = '2013-07-15 18:15:08.236598', "authentication_token" = 'zq67pViBNJy6F2faBn18' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:08 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:08 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'fSFpB2DexmH6yKVsv8eM' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:08.251912', "updated_at" = '2013-07-15 18:15:08.251912', "auth_token" = 'fSFpB2DexmH6yKVsv8eM' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test1"  (6.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)   (4.8ms) 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")  (5.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.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (6.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (3.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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (4.5ms) SELECT version FROM "schema_migrations"  (4.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.5ms) 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:15:08 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:15:08 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$G8uBhZl.0SkRO6yAAn2R1u6zU15JpMFhZJkwCYic7vewS7Kk.4XpW"], ["updated_at", Mon, 15 Jul 2013 18:15: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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:08 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:08 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Vkz2axMJBVMWwWKaUPqr' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:15:08.524888', "updated_at" = '2013-07-15 18:15:08.524888', "auth_token" = 'Vkz2axMJBVMWwWKaUPqr' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 148ms (Views: 32.0ms | ActiveRecord: 4.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:15:08 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 12ms (Views: 6.4ms | ActiveRecord: 1.8ms)  (6.6ms) 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.2ms) 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  (1.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 18:15:08 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$.mWeKDhuWV6R.xAIC9QLUOFNVoKiNmB0L8L6.s4deEjRh4/teEcP2"], ["updated_at", Mon, 15 Jul 2013 18:15: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" = 'test2' 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", Mon, 15 Jul 2013 18:15:08 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 18:15:08 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rWsVpzhqsHk1HDEcPzSA' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 18:15:08.770339', "updated_at" = '2013-07-15 18:15:08.770339', "authentication_token" = 'rWsVpzhqsHk1HDEcPzSA' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:08 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:08 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dGuV66ZArFoHpFSjz2pB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:08.776966', "updated_at" = '2013-07-15 18:15:08.776966', "auth_token" = 'dGuV66ZArFoHpFSjz2pB' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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" ("authentication_token")  (1.3ms) 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.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.3ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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")  (1.5ms) 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')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:15:08 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (1.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:15:08 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ot0F5N9f12te9U/bAW8O/.z1ci2D2sKLUKldGuSUE7yvg9uIGlrQy"], ["updated_at", Mon, 15 Jul 2013 18:15:08 UTC +00:00]] 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:08 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:08 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nTqqqfXRViNpU8HW49ss' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:15:08.945591', "updated_at" = '2013-07-15 18:15:08.945591', "auth_token" = 'nTqqqfXRViNpU8HW49ss' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 124ms (Views: 8.5ms | ActiveRecord: 5.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/2" for 127.0.0.1 at 2013-07-15 13:15:08 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (1.0ms) 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 16ms (Views: 6.1ms | ActiveRecord: 2.4ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:08 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 2], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 18:15:08 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'DZ78yahyj12P2tCnUoRR' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 2, "created_at" = '2013-07-15 18:15:08.991887', "updated_at" = '2013-07-15 18:15:08.991887', "authentication_token" = 'DZ78yahyj12P2tCnUoRR' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:08 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:08 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zsxEqxpyZBZpeNwpd4hy' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 2, "created_at" = '2013-07-15 18:15:08.998414', "updated_at" = '2013-07-15 18:15:08.998414', "auth_token" = 'zsxEqxpyZBZpeNwpd4hy' WHERE "public"."cadenero_members"."id" = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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" ("authentication_token")  (6.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (2.7ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))   (20.4ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.2ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.5ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)   (0.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.8ms) SELECT version FROM "schema_migrations"  (1.2ms) 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') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:15:09 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:15:09 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$aVfYqb29RO03hmFZsfe2L.qKQVZfcF6vESt1Tg.nL7pfxzDc/c1B2"], ["updated_at", Mon, 15 Jul 2013 18:15:09 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:09 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:09 UTC +00:00], ["user_id", 3]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'vq9LU4gDycgyuvkyNjyG' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 3, "created_at" = '2013-07-15 18:15:09.182408', "updated_at" = '2013-07-15 18:15:09.182408', "auth_token" = 'vq9LU4gDycgyuvkyNjyG' WHERE "public"."cadenero_members"."id" = 4  (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" = 3 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 3 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 112ms (Views: 5.7ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/3" for 127.0.0.1 at 2013-07-15 13:15:09 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"3"} 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" = 2 AND "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 3 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.8ms) Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:15:09 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.7ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 13:15:09 -0500 Processing by Cadenero::V1::Account::UsersController#index as HTML Parameters: {"default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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" = 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Cadenero::Member Load (1.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 200 OK in 18ms (Views: 12.0ms | ActiveRecord: 4.2ms)  (13.3ms) ROLLBACK  (0.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  (48.0ms) 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  (1.7ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:09 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:09 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" = 'uZMkrysWxnQCXPxD1Ffu' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-15 18:15:09.465575', "updated_at" = '2013-07-15 18:15:09.465575', "auth_token" = 'uZMkrysWxnQCXPxD1Ffu' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) ROLLBACK  (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  (18.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  (0.2ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.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  (17.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) 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.4ms) 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.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  (17.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.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.3ms) ROLLBACK  (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  (17.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.4ms) 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.2ms) ROLLBACK  (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  (22.8ms) 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  (15.4ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.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.2ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (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.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.1ms) BEGIN 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" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 1.4ms)  (0.1ms) ROLLBACK  (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  (16.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  (0.3ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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 18:15:13 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$gId9LQxrk0WhIVmQMtspkO/5UrG7mL76ROppRpA75Bay6.L4TO.4O"], ["updated_at", Mon, 15 Jul 2013 18:15:13 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1 SQL (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", Mon, 15 Jul 2013 18:15:13 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 18:15:13 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'W6xGTGA6DssyZXcMPYH3' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 18:15:13.052222', "updated_at" = '2013-07-15 18:15:13.052222', "authentication_token" = 'W6xGTGA6DssyZXcMPYH3' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:13 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:13 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ATxSQhd3mzzHUb8MokRp' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:13.059251', "updated_at" = '2013-07-15 18:15:13.059251', "auth_token" = 'ATxSQhd3mzzHUb8MokRp' WHERE "public"."cadenero_members"."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", Mon, 15 Jul 2013 18:15:13 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$ZOHEQHQfVmPclZy3.mJCWu3NzRTN0oLWM71ufhrjnhwrwAHYihfT6"], ["updated_at", Mon, 15 Jul 2013 18:15:13 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", Mon, 15 Jul 2013 18:15:13 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$D9.6x5/ecxmvzut79v5H8eSdMwM86Vh.LFE92udVvw/GNLhiDw9/y"], ["updated_at", Mon, 15 Jul 2013 18:15:13 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 (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", Mon, 15 Jul 2013 18:15:13 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 18:15:13 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'NintM8pdpsSJiqtJyr2T' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-15 18:15:13.264451', "updated_at" = '2013-07-15 18:15:13.264451', "authentication_token" = 'NintM8pdpsSJiqtJyr2T' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.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.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.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.7ms) 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.8ms) ROLLBACK  (1.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  (25.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (0.9ms) BEGIN  (1.0ms) ROLLBACK  (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  (42.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (0.1ms) BEGIN Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.2ms) ROLLBACK  (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.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.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (1.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) ROLLBACK  (0.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  (45.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  (0.3ms) BEGIN  (0.1ms) ROLLBACK  (0.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.8ms) 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.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:15:17 -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 (0.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (2.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 18:15:17 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$9GchOHdHMQt5e0l1ir6hC.eIwC5Tw3gWHi2kQVpYC.liOs80C22S2"], ["updated_at", Mon, 15 Jul 2013 18:15:17 UTC +00:00]] SQL (1.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", Mon, 15 Jul 2013 18:15:17 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:15:17 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'XgvZhQ2NnrqrWsBGCKk9' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:15:17.512662', "updated_at" = '2013-07-15 18:15:17.512662', "authentication_token" = 'XgvZhQ2NnrqrWsBGCKk9' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:17 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:17 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" = 'PeQxh5EpDQQK3NLjpbCY' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:17.522751', "updated_at" = '2013-07-15 18:15:17.522751', "auth_token" = 'PeQxh5EpDQQK3NLjpbCY' WHERE "public"."cadenero_members"."id" = 1  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (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)   (3.4ms) 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.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.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.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.2ms) 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') Cadenero::V1::Account Exists (1.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1 Completed 201 Created in 200ms (Views: 2.2ms | ActiveRecord: 55.1ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (4.2ms) ROLLBACK  (0.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  (18.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.3ms) 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.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:15:17 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$mB8pnCSsIvKwZkOg6.Ly6OFUAZvgYr3xRnd7VI6rN6K0ALqPhqsQq"], ["updated_at", Mon, 15 Jul 2013 18:15:17 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", Mon, 15 Jul 2013 18:15:17 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:15:17 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6JLNReodGN3Ex3BJNP7w' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:15:17.737863', "updated_at" = '2013-07-15 18:15:17.737863', "authentication_token" = '6JLNReodGN3Ex3BJNP7w' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:15:17 -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 106ms (Views: 0.4ms | ActiveRecord: 0.5ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.4ms) ROLLBACK  (0.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  (16.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  (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", Mon, 15 Jul 2013 18:15:17 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$/pMW.A.mjSSvZgaG5wamAeQtCi7E18WyYhxdP0dIEuAUqxdyPukmS"], ["updated_at", Mon, 15 Jul 2013 18:15:17 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.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", Mon, 15 Jul 2013 18:15:17 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 18:15:17 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yvoqn5KTPKC1NAYTuszB' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 18:15:17.996490', "updated_at" = '2013-07-15 18:15:17.996490', "authentication_token" = 'yvoqn5KTPKC1NAYTuszB' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:18 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:18 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'y1q79484NyNvd1xYUZAU' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:18.003931', "updated_at" = '2013-07-15 18:15:18.003931', "auth_token" = 'y1q79484NyNvd1xYUZAU' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test5"  (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.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")  (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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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"  (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 13:15: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/sessions" for 127.0.0.1 at 2013-07-15 13:15:18 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test5') LIMIT 1 Cadenero::User Load (0.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" = 'user5@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 109ms (Views: 5.7ms | ActiveRecord: 2.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:15:18 -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" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.1ms) ROLLBACK  (0.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  (16.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.1ms) BEGIN  (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", Mon, 15 Jul 2013 18:15:18 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$aUNcRMvVxHjDQRTSno5dH.Wq/kB3nmT8jVOj/wBnLQXiGJ7aGYlb6"], ["updated_at", Mon, 15 Jul 2013 18:15:18 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (11.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 18:15:18 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 18:15:18 UTC +00:00]] Cadenero::V1::Account Load (11.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EtEqccNPwEhQ6JVgnL84' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 18:15:18.435085', "updated_at" = '2013-07-15 18:15:18.435085', "authentication_token" = 'EtEqccNPwEhQ6JVgnL84' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:18 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:18 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (14.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Q6cmxxbsfN3yKEXQkeJk' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:18.454052', "updated_at" = '2013-07-15 18:15:18.454052', "auth_token" = 'Q6cmxxbsfN3yKEXQkeJk' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (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)   (0.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (12.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (7.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" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (17.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (21.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)  (91.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.5ms) SELECT version FROM "schema_migrations"  (9.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:15: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 13:15: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 (6.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1  (5.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:15:18 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$9T3hMtFzoSOleStr7.xv5uv.KHhY12t.qFAtmipiKNB9kYTd6WAbu"], ["updated_at", Mon, 15 Jul 2013 18:15:18 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:18 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:18 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pN8bbquQ2BFyJQemtsB1' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:15:18.885371', "updated_at" = '2013-07-15 18:15:18.885371', "auth_token" = 'pN8bbquQ2BFyJQemtsB1' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (10.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (6.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (10.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" = 2 Completed 201 Created in 180ms (Views: 7.0ms | ActiveRecord: 41.3ms) Cadenero::V1::Account Load (5.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:15:18 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (6.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 27ms (Views: 6.5ms | ActiveRecord: 8.0ms) Cadenero::User Load (2.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 13:15: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 (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 7ms (Views: 4.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 13:15:18 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (13.6ms) ROLLBACK  (9.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  (41.9ms) 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  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:15:19 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$c7gTBk02RP1aRr5zMeWID.aSH2PfyW0oeKax6/ThjIZQaPDz3Byb."], ["updated_at", Mon, 15 Jul 2013 18:15:19 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 (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", Mon, 15 Jul 2013 18:15:19 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 18:15:19 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VYeE63LVCoWHmVuC1KsK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 18:15:19.221502', "updated_at" = '2013-07-15 18:15:19.221502', "authentication_token" = 'VYeE63LVCoWHmVuC1KsK' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:19 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:19 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" = 'unpAXKADLcXMzsJRy6yt' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:19.228001', "updated_at" = '2013-07-15 18:15:19.228001', "auth_token" = 'unpAXKADLcXMzsJRy6yt' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (13.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)   (11.5ms) 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")  (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))  (4.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.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (8.6ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:15:19 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user7@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 'user7@example.com' LIMIT 1 Cadenero::User Load (5.8ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 173ms (Views: 5.4ms | ActiveRecord: 9.4ms) Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:15:19 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:15: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)  (13.1ms) ROLLBACK  (0.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  (26.3ms) 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  (0.1ms) BEGIN  (14.7ms) SAVEPOINT active_record_1 SQL (14.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 18:15:19 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$HpQ.LHBzk5vvM66ECcMDjuLzz8AJQrq6FRnZ5ScBD/3QTyDdgfVju"], ["updated_at", Mon, 15 Jul 2013 18:15:19 UTC +00:00]]  (10.8ms) RELEASE SAVEPOINT active_record_1  (20.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (10.8ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1 SQL (10.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", Mon, 15 Jul 2013 18:15:19 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 18:15:19 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6JuqkRXLHdpWy9eYpnyx' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 18:15:19.852004', "updated_at" = '2013-07-15 18:15:19.852004', "authentication_token" = '6JuqkRXLHdpWy9eYpnyx' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (2.3ms) 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:19 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:19 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'WvppJrXk3nfDttmKpXkG' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:19.870360', "updated_at" = '2013-07-15 18:15:19.870360', "auth_token" = 'WvppJrXk3nfDttmKpXkG' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (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)   (5.2ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.1ms) 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))  (3.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:15:19 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 Cadenero::User Load (4.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" = 1 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 144ms (Views: 5.2ms | ActiveRecord: 6.7ms) Cadenero::V1::Account Load (0.8ms) 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" = 1 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 13:15:20 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:15: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.4ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:15:20 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (2.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:15:20 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$RhnUKKqgBPuRUXjmr3hKeO6u1tbq.Z7U7uTIkAB5hlsu./3XWj7wO"], ["updated_at", Mon, 15 Jul 2013 18:15:20 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:20 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:20 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" = '1zQN7NP1uztcZRtUvw7d' LIMIT 1  (3.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:15:20.297260', "updated_at" = '2013-07-15 18:15:20.297260', "auth_token" = '1zQN7NP1uztcZRtUvw7d' WHERE "public"."cadenero_members"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Cadenero::User Load (2.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 202ms (Views: 7.7ms | ActiveRecord: 12.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/2" for 127.0.0.1 at 2013-07-15 13:15:20 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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 (10.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" = 2 LIMIT 1 Cadenero::User Load (10.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (8.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" = 2 Completed 200 OK in 49ms (Views: 8.1ms | ActiveRecord: 31.3ms) Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:15:20 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.9ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 11ms (Views: 7.3ms | ActiveRecord: 1.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  (168.0ms) ROLLBACK  (3.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  (31.7ms) 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  (1.0ms) BEGIN  (8.6ms) 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 18:15:20 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$VEmsBv3pY6aPXMjiSIuzc.txws1Iymr6BqviW6AgbtleKnDMJ3H/u"], ["updated_at", Mon, 15 Jul 2013 18:15:20 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.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", Mon, 15 Jul 2013 18:15:20 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 18:15:20 UTC +00:00]] Cadenero::V1::Account Load (4.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qoCp3Hy1HChXxgDBKTbt' LIMIT 1  (4.0ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 18:15:20.824562', "updated_at" = '2013-07-15 18:15:20.824562', "authentication_token" = 'qoCp3Hy1HChXxgDBKTbt' WHERE "public"."cadenero_accounts"."id" = 1  (3.1ms) RELEASE SAVEPOINT active_record_1  (9.0ms) SAVEPOINT active_record_1 SQL (8.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:20 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:20 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (1.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '92MmrWo86kcJPH8o2b9A' LIMIT 1  (1.0ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:20.852458', "updated_at" = '2013-07-15 18:15:20.852458', "auth_token" = '92MmrWo86kcJPH8o2b9A' WHERE "public"."cadenero_members"."id" = 1  (6.6ms) RELEASE SAVEPOINT active_record_1  (10.1ms) CREATE SCHEMA "test9"  (7.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" ("authentication_token")  (2.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (9.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))   (2.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (5.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (9.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.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:15: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 13:15:20 -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 ('test9') 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" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 2.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  (4.2ms) ROLLBACK  (0.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  (29.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  (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", Mon, 15 Jul 2013 18:15:21 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$eMhH8/DkdtEmE67MjdK1O.sWO8I9IpP44gCnTJH1oqh0obMQNqFai"], ["updated_at", Mon, 15 Jul 2013 18:15:21 UTC +00:00]]  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' 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", Mon, 15 Jul 2013 18:15:21 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 18:15:21 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'LKux6d5m3f8nQTVikiEW' LIMIT 1  (0.8ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-15 18:15:21.159251', "updated_at" = '2013-07-15 18:15:21.159251', "authentication_token" = 'LKux6d5m3f8nQTVikiEW' WHERE "public"."cadenero_accounts"."id" = 1  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:21 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:21 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (1.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pGi5xzgrWVRDxmCU5Bhm' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:21.168499', "updated_at" = '2013-07-15 18:15:21.168499', "auth_token" = 'pGi5xzgrWVRDxmCU5Bhm' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test10"  (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.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")  (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.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("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)   (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (5.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 GET "/v1" for 127.0.0.1 at 2013-07-15 13:15: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 13:15: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.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test10') 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" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 1.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  (3.4ms) ROLLBACK  (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  (23.6ms) 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.8ms) BEGIN  (3.3ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:15:21 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$Ozhq55lkY7OKNDPBvL8KzeAScLxMYDmojxdC.IAqhUZcl2Jsw/g36"], ["updated_at", Mon, 15 Jul 2013 18:15:21 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" = 'test11' 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", Mon, 15 Jul 2013 18:15:21 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 18:15:21 UTC +00:00]] Cadenero::V1::Account Load (2.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '5ioRvDbafvyuL7nSYoWy' LIMIT 1  (1.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-15 18:15:21.423591', "updated_at" = '2013-07-15 18:15:21.423591', "authentication_token" = '5ioRvDbafvyuL7nSYoWy' WHERE "public"."cadenero_accounts"."id" = 1  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:21 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:21 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (1.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3B39Z8s6sfNKdgwcSSCt' LIMIT 1  (1.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:21.433741', "updated_at" = '2013-07-15 18:15:21.433741', "auth_token" = '3B39Z8s6sfNKdgwcSSCt' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (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.4ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.3ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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" ("account_id")  (5.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (7.0ms) 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)   (1.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.7ms) SELECT version FROM "schema_migrations"  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709')  (0.2ms) SAVEPOINT active_record_1 SQL (9.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:15:21 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$rUlWPdRxTycaufq4fWBmeukMe5ZNhSyTU3PR8zIjzk5MLCdyDeSe2"], ["updated_at", Mon, 15 Jul 2013 18:15:21 UTC +00:00]]  (4.9ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) 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", Mon, 15 Jul 2013 18:15:21 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 2], ["subdomain", "test12"], ["updated_at", Mon, 15 Jul 2013 18:15:21 UTC +00:00]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SJKDDsDcvpNAMdUJDe9s' LIMIT 1  (6.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 2, "created_at" = '2013-07-15 18:15:21.730502', "updated_at" = '2013-07-15 18:15:21.730502', "authentication_token" = 'SJKDDsDcvpNAMdUJDe9s' WHERE "public"."cadenero_accounts"."id" = 2  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:21 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:21 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zcLDWjfKzZstFGq4Vt2y' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 2, "created_at" = '2013-07-15 18:15:21.743900', "updated_at" = '2013-07-15 18:15:21.743900', "auth_token" = 'zcLDWjfKzZstFGq4Vt2y' WHERE "public"."cadenero_members"."id" = 2  (3.0ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:15: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 13:15:21 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user12@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::User Load (2.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" = 'user12@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 9ms (Views: 0.4ms | 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  (8.8ms) ROLLBACK  (1.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  (19.7ms) 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  (11.8ms) BEGIN  (10.0ms) 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 18:15:22 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$XgPzQCOFACD8Li3ZhKdgW.R/0cJStbtsgV6Lkrr62eHsyV6IKGOJe"], ["updated_at", Mon, 15 Jul 2013 18:15:22 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" = 'test13' LIMIT 1 SQL (2.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", Mon, 15 Jul 2013 18:15:22 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1], ["subdomain", "test13"], ["updated_at", Mon, 15 Jul 2013 18:15:22 UTC +00:00]] Cadenero::V1::Account Load (3.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 's5ZanyxTzQfXpXxzoppp' LIMIT 1  (1.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 1, "created_at" = '2013-07-15 18:15:22.008538', "updated_at" = '2013-07-15 18:15:22.008538', "authentication_token" = 's5ZanyxTzQfXpXxzoppp' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:22 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:22 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" = 'Qfz2Vsyh3HDRYGVFYqja' LIMIT 1  (5.9ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:22.023896', "updated_at" = '2013-07-15 18:15:22.023896', "auth_token" = 'Qfz2Vsyh3HDRYGVFYqja' WHERE "public"."cadenero_members"."id" = 1  (1.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test13"  (10.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.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (3.9ms) 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, "auth_token" character varying(255))   (1.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (38.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)   (3.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (1.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.1ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:15:22 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (10.6ms) ROLLBACK  (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  (17.8ms) 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 Connecting to database specified by database.yml  (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.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (27.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (0.1ms) 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.2ms) ROLLBACK  (0.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  (13.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  (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.1ms) ROLLBACK  (0.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  (31.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  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1 SQL (3.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:15:53 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$e81lg.uuHS/y9YlWMUBsjucy9rK5h2rrcEtbbFRk7HV0tGMA4WZ5G"], ["updated_at", Mon, 15 Jul 2013 18:15:53 UTC +00:00]] SQL (1.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", Mon, 15 Jul 2013 18:15:53 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:15:53 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'PAQ9hKhmzHGyCxsnsdZY' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:15:53.303013', "updated_at" = '2013-07-15 18:15:53.303013', "authentication_token" = 'PAQ9hKhmzHGyCxsnsdZY' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:53 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:53 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'n9VJ4pbmRWcz1CabDJWJ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:53.340969', "updated_at" = '2013-07-15 18:15:53.340969', "auth_token" = 'n9VJ4pbmRWcz1CabDJWJ' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "test"  (8.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.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.4ms) 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.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (6.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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') 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 LIMIT 1  (11.2ms) ROLLBACK  (0.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  (17.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.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  (24.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  (0.1ms) BEGIN  (2.2ms) SAVEPOINT active_record_1 SQL (2.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1001], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:53 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:53 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'e77p64SNjNbySrPdYHGv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-15 18:15:53.846129', "updated_at" = '2013-07-15 18:15:53.846129', "auth_token" = 'e77p64SNjNbySrPdYHGv' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) ROLLBACK  (0.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  (23.3ms) 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 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" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.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 27ms (Views: 25.3ms | ActiveRecord: 1.4ms)  (0.3ms) ROLLBACK  (0.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  (17.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 Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.4ms) 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: 5.4ms | ActiveRecord: 1.5ms)  (0.1ms) ROLLBACK  (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  (16.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  (0.4ms) 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.2ms) ROLLBACK  (0.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  (63.8ms) 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.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.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  (17.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  (0.9ms) BEGIN  (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 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:15:54 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$2HhGQiM7.ef1I8KISN1tau0PlfrPB4a7rtf6c06Dt//2exeKHceRi"], ["updated_at", Mon, 15 Jul 2013 18:15:54 UTC +00:00]] 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", Mon, 15 Jul 2013 18:15:54 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:15:54 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'm6AppDUCXLbNhqzqz8xZ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:15:54.864295', "updated_at" = '2013-07-15 18:15:54.864295', "authentication_token" = 'm6AppDUCXLbNhqzqz8xZ' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:15:54 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (0.2ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 1  (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 114ms (Views: 0.3ms | ActiveRecord: 0.6ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (0.2ms) ROLLBACK  (0.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  (16.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  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:15: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.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 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:15:55 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$ylMsBO02Tmc6mDjf4Hq1XOfqe/rSRDueKuZ7um/aqF1GaU9rHAUYe"], ["updated_at", Mon, 15 Jul 2013 18:15:55 UTC +00:00]] 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", Mon, 15 Jul 2013 18:15:55 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:15:55 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'znB7hXSa4zYxB3y7MtUg' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:15:55.149902', "updated_at" = '2013-07-15 18:15:55.149902', "authentication_token" = 'znB7hXSa4zYxB3y7MtUg' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:55 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:55 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '6yTexLrwNregkrq7spLU' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:55.156133', "updated_at" = '2013-07-15 18:15:55.156133', "auth_token" = '6yTexLrwNregkrq7spLU' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test"  (8.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.6ms) 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")  (2.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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)  (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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (1.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1 Completed 201 Created in 203ms (Views: 1.9ms | ActiveRecord: 56.0ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (5.5ms) ROLLBACK  (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  (18.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  (0.6ms) 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.6ms) ROLLBACK  (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  (16.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.1ms) 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.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.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  (20.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:15:55 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$HvROd/PB994U9vqDnYq0zu8IH6ini2gtR5nxnf6bv6J.wK3kqVLtK"], ["updated_at", Mon, 15 Jul 2013 18:15:55 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (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", Mon, 15 Jul 2013 18:15:55 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 18:15:55 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Yv5N4jyBSuzUWu6DwyK8' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 18:15:55.464599', "updated_at" = '2013-07-15 18:15:55.464599', "authentication_token" = 'Yv5N4jyBSuzUWu6DwyK8' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (1.9ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:55 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:55 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xy8YdjjB8NCWz4avymYJ' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:55.474463', "updated_at" = '2013-07-15 18:15:55.474463', "auth_token" = 'xy8YdjjB8NCWz4avymYJ' WHERE "public"."cadenero_members"."id" = 1  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test1"  (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.5ms) 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.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" ("account_id")  (1.4ms) 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")  (6.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.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.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 GET "/v1" for 127.0.0.1 at 2013-07-15 13:15:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:15:55 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:15:55 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$V87Vk4GgKP0nQmnwEQjT..2kcLpIbiTzkBgdPD/pjBMvyMc5DHTCe"], ["updated_at", Mon, 15 Jul 2013 18:15:55 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:55 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:55 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'YVrStrAZx2zTJn11B33G' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:15:55.719102', "updated_at" = '2013-07-15 18:15:55.719102', "auth_token" = 'YVrStrAZx2zTJn11B33G' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 123ms (Views: 6.7ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:15:55 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:15:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 8ms (Views: 5.3ms | 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 13:15:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (6.3ms) ROLLBACK  (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  (18.3ms) 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  (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 18:15:55 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$2K7Gg4rUff9lIZdkFl7XdO8E7/Rfa5GOX2.qh.DyDPU93/LlF5deG"], ["updated_at", Mon, 15 Jul 2013 18:15:55 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" = 'test2' 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", Mon, 15 Jul 2013 18:15:55 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 18:15:55 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zBuZwZpAuz6ZNeS7XpAi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 18:15:55.914637', "updated_at" = '2013-07-15 18:15:55.914637', "authentication_token" = 'zBuZwZpAuz6ZNeS7XpAi' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:55 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:55 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" = 'zEEnP6MVXqJxCV62pqU7' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:55.920747', "updated_at" = '2013-07-15 18:15:55.920747', "auth_token" = 'zEEnP6MVXqJxCV62pqU7' WHERE "public"."cadenero_members"."id" = 1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.5ms) CREATE SCHEMA "test2"  (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" ("authentication_token")  (1.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.4ms) 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.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.6ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:15:55 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:15:55 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user2@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test2') LIMIT 1 Cadenero::User Load (0.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" = 'user2@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 110ms (Views: 5.9ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:15: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" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 1.2ms | ActiveRecord: 0.3ms)  (7.8ms) ROLLBACK  (0.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.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (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 18:15:56 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$uYQ5ikZABPWPru4nCZT.muK87fhOLheBFpJ7gaIP3AcTQitWoSXJK"], ["updated_at", Mon, 15 Jul 2013 18:15: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" = 'test3' 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", Mon, 15 Jul 2013 18:15:56 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 18:15:56 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'iRqogvmt6Zhy8Yy2CFaA' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 18:15:56.267152', "updated_at" = '2013-07-15 18:15:56.267152', "authentication_token" = 'iRqogvmt6Zhy8Yy2CFaA' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:56 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'jPMypXPksrDxsA73bpjn' LIMIT 1  (1.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:56.275247', "updated_at" = '2013-07-15 18:15:56.275247', "auth_token" = 'jPMypXPksrDxsA73bpjn' WHERE "public"."cadenero_members"."id" = 1  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (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.8ms) 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")  (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.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.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.9ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (1.8ms) 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.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 13:15: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.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" = 'user3@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 106ms (Views: 5.4ms | ActiveRecord: 2.3ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1 Cadenero::User Load (0.2ms) 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 13:15:56 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:15: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 13:15: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' 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:15:56 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$EFmamPnoVxZPi.mAG2247ecBXZqWgg7kSp02m0ZJHw/8SjGJUURGO"], ["updated_at", Mon, 15 Jul 2013 18:15:56 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:56 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'dfqxqQ9EaJhyB4HxUsMS' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:15:56.565446', "updated_at" = '2013-07-15 18:15:56.565446', "auth_token" = 'dfqxqQ9EaJhyB4HxUsMS' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 111ms (Views: 5.5ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:15:56 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 10ms (Views: 5.7ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:15: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" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 7ms (Views: 4.7ms | ActiveRecord: 1.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.6ms) ROLLBACK  (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  (18.3ms) 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.5ms) BEGIN  (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", Mon, 15 Jul 2013 18:15:56 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$HcstgnpvKGYxg0kw0Hcse.dO1s48FMl4KPwDTidITv3xRc1z2uD1y"], ["updated_at", Mon, 15 Jul 2013 18:15:56 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.0ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Mon, 15 Jul 2013 18:15:56 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 18:15:56 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'SAxXGPpc6v3Tp9s8Wwo1' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 18:15:56.776731', "updated_at" = '2013-07-15 18:15:56.776731', "authentication_token" = 'SAxXGPpc6v3Tp9s8Wwo1' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:56 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:56 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SQdEREHSJQNFQxQY2ZPH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:56.794204', "updated_at" = '2013-07-15 18:15:56.794204', "auth_token" = 'SQdEREHSJQNFQxQY2ZPH' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (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.3ms) 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")  (4.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))   (4.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.6ms) 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)   (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.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 13:15: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.8ms) 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" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 124ms (Views: 5.4ms | ActiveRecord: 3.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:15:57 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:15: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)  (9.4ms) ROLLBACK  (0.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.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  (3.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", Mon, 15 Jul 2013 18:15:57 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$Kgjj2HYT24EF3qCvW5nNpu9U9JsWjJQ7gr9LdtyB19Ietnb3v2JwC"], ["updated_at", Mon, 15 Jul 2013 18:15:57 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.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", Mon, 15 Jul 2013 18:15:57 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 18:15:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'E9XifNdUQYAzGVsHmg6i' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 18:15:57.266041', "updated_at" = '2013-07-15 18:15:57.266041', "authentication_token" = 'E9XifNdUQYAzGVsHmg6i' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:57 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MsDiGRn4NaFF4Xu5xEgM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:57.272515', "updated_at" = '2013-07-15 18:15:57.272515', "auth_token" = 'MsDiGRn4NaFF4Xu5xEgM' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test5"  (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)  (1.8ms) 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")  (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))   (0.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.0ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) 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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:15: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) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:15: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 ('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" = 1 AND "public"."cadenero_users"."email" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.3ms) ROLLBACK  (0.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  (16.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  (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:15:57 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$pDzpK65gOjy8wz2uOr0IS.pYtNFsjSKz.RngTNY5ULVsPuqN0SE92"], ["updated_at", Mon, 15 Jul 2013 18:15:57 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 (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", Mon, 15 Jul 2013 18:15:57 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 18:15:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'fn7yqXMTdb6qyUj6msJw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 18:15:57.484226', "updated_at" = '2013-07-15 18:15:57.484226', "authentication_token" = 'fn7yqXMTdb6qyUj6msJw' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:57 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'SdSXNrVCaycWYWKXjpny' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:57.491992', "updated_at" = '2013-07-15 18:15:57.491992', "auth_token" = 'SdSXNrVCaycWYWKXjpny' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test6"  (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.3ms) 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.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.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.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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:15: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) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:15:57 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test6') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.8ms) ROLLBACK  (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.0ms) 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.1ms) 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 18:15:57 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$BY8qltkLPbneJCjQUENxkeo0mD3bO7hrMe183SaWo6SkiqGts/1Te"], ["updated_at", Mon, 15 Jul 2013 18:15:57 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 (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", Mon, 15 Jul 2013 18:15:57 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 18:15:57 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'zgxosjPrqxstdYYTWf9L' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 18:15:57.696674', "updated_at" = '2013-07-15 18:15:57.696674', "authentication_token" = 'zgxosjPrqxstdYYTWf9L' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:57 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Qb3TvNbUdzvsfjZk7zLs' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:57.703984', "updated_at" = '2013-07-15 18:15:57.703984', "auth_token" = 'Qb3TvNbUdzvsfjZk7zLs' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test7"  (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.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")  (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.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.7ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:15:57 -0500 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.3ms) ROLLBACK  (0.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  (18.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  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:15:57 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$2f7E/T6mLfrzvvYMhCmlQOEQF13N.QZcBxoVa8vyJQNgQLEk9mwN."], ["updated_at", Mon, 15 Jul 2013 18:15:57 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" = 'test8' 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", Mon, 15 Jul 2013 18:15:57 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 18:15:57 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'UDczEiF1zTXW9YN2xFc2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 18:15:57.984564', "updated_at" = '2013-07-15 18:15:57.984564', "authentication_token" = 'UDczEiF1zTXW9YN2xFc2' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15: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" = '1dPtptKDcJGwuCPqG7G2' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:57.992396', "updated_at" = '2013-07-15 18:15:57.992396', "auth_token" = '1dPtptKDcJGwuCPqG7G2' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test8"  (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.3ms) 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.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")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (0.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.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')  (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", Mon, 15 Jul 2013 18:15:58 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$PBXu71qQBktigyJ/yitOGebx4KDdRyZR0uj5onqqtUCe/./I0M2bS"], ["updated_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Mon, 15 Jul 2013 18:15:58 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 2], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rRKuu1YGsH9C3v8LLyPN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 2, "created_at" = '2013-07-15 18:15:58.141838', "updated_at" = '2013-07-15 18:15:58.141838', "authentication_token" = 'rRKuu1YGsH9C3v8LLyPN' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3Gq5JsxPeYQnW6oZJVsE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 2, "created_at" = '2013-07-15 18:15:58.147033', "updated_at" = '2013-07-15 18:15:58.147033', "auth_token" = '3Gq5JsxPeYQnW6oZJVsE' WHERE "public"."cadenero_members"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:15: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) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:15:58 -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.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 5ms (Views: 0.3ms | ActiveRecord: 0.9ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.7ms) ROLLBACK  (0.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  (14.2ms) 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.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$1uFyRHVLYoYPHS94ywiciOmGnUziPoe31Y/Dxp/PmaOm4J2SPrkmu"], ["updated_at", Mon, 15 Jul 2013 18:15:58 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" = 'test10' 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", Mon, 15 Jul 2013 18:15:58 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mQhyge5sC1QVPtt8zDyV' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-15 18:15:58.297416', "updated_at" = '2013-07-15 18:15:58.297416', "authentication_token" = 'mQhyge5sC1QVPtt8zDyV' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '2Gw88cQMEMx7W9SmoWLs' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:58.304495', "updated_at" = '2013-07-15 18:15:58.304495', "auth_token" = '2Gw88cQMEMx7W9SmoWLs' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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)  (1.4ms) 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.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.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.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"  (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 13:15:58 -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" = 'test10' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$ipgtKfNp7eWNwb4IBjvCr.ty2cgaDTSWItdzpwrwqjNmm/VyPtW/m"], ["updated_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'qUhpFrdtg4MSb1xESszi' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:15:58.454071', "updated_at" = '2013-07-15 18:15:58.454071', "auth_token" = 'qUhpFrdtg4MSb1xESszi' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 112ms (Views: 5.5ms | 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/2" for 127.0.0.1 at 2013-07-15 13:15:58 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 2.2ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' 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", Mon, 15 Jul 2013 18:15:58 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 2], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'CwjGyexV2t68r97eYqri' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 2, "created_at" = '2013-07-15 18:15:58.485334', "updated_at" = '2013-07-15 18:15:58.485334', "authentication_token" = 'CwjGyexV2t68r97eYqri' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'JVMfYpUsFmTbzPALvnp8' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 2, "created_at" = '2013-07-15 18:15:58.491309', "updated_at" = '2013-07-15 18:15:58.491309', "auth_token" = 'JVMfYpUsFmTbzPALvnp8' WHERE "public"."cadenero_members"."id" = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.5ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.7ms) 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")  (68.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.5ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (4.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:15:58 -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_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:15:58 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$o1xoKsbn8Iep8noWPFH2jOidgtv7.UDHb6je9kvOJ8Bc66ETWvGUy"], ["updated_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00], ["user_id", 3]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'yPupz2xmysNKsUfuycyj' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 3, "created_at" = '2013-07-15 18:15:58.716036', "updated_at" = '2013-07-15 18:15:58.716036', "auth_token" = 'yPupz2xmysNKsUfuycyj' WHERE "public"."cadenero_members"."id" = 4  (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" = 3 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 3 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 112ms (Views: 5.6ms | 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/users/3" for 127.0.0.1 at 2013-07-15 13:15:58 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"3"} 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" = 2 AND "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 3 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 200 OK in 10ms (Views: 5.6ms | ActiveRecord: 1.8ms) Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:15:58 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test10' LIMIT 1 Cadenero::User Load (0.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 1.8ms)  (6.2ms) ROLLBACK  (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.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  (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", Mon, 15 Jul 2013 18:15:58 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$bNDUqE0.oLtpL24ZGr7iRumKDNPpXhOj6RVAwSaZKvgn6WmYwkf1O"], ["updated_at", Mon, 15 Jul 2013 18:15: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" = 'test12' 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", Mon, 15 Jul 2013 18:15:58 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 1], ["subdomain", "test12"], ["updated_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '46fNf68sq3jqkJrajh7s' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 1, "created_at" = '2013-07-15 18:15:58.888537', "updated_at" = '2013-07-15 18:15:58.888537', "authentication_token" = '46fNf68sq3jqkJrajh7s' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:58 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RyNyqpByAty2Qxa9qtBT' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:15:58.895154', "updated_at" = '2013-07-15 18:15:58.895154', "auth_token" = 'RyNyqpByAty2Qxa9qtBT' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test12"  (7.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.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")  (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))  (1.2ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.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.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/users" for 127.0.0.1 at 2013-07-15 13:15:58 -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", Mon, 15 Jul 2013 18:15:59 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$8LYeYQ5c4npBRLyG7D5OU.MJ2QwaR.d.Mm2pI3WlHFmfhvjXEWdme"], ["updated_at", Mon, 15 Jul 2013 18:15:59 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:15:59 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:15:59 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'DukaXXiLzMy74G4DSypy' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:15:59.047516', "updated_at" = '2013-07-15 18:15:59.047516', "auth_token" = 'DukaXXiLzMy74G4DSypy' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 112ms (Views: 5.6ms | 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/users/2" for 127.0.0.1 at 2013-07-15 13:15:59 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.7ms | ActiveRecord: 1.7ms)  (5.8ms) ROLLBACK  (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  (17.8ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (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  (16.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.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.2ms) SAVEPOINT active_record_1 SQL (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 18:16:02 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$TZX9k62Qmv9b6i6wt3EfC.1Q9aLkCE3D8KqZBD/B7QHwZXGKIachC"], ["updated_at", Mon, 15 Jul 2013 18:16:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' 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", Mon, 15 Jul 2013 18:16:02 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1], ["subdomain", "test13"], ["updated_at", Mon, 15 Jul 2013 18:16:02 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'QJN2uE7c8uDfYVP7XHiP' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 1, "created_at" = '2013-07-15 18:16:02.154222', "updated_at" = '2013-07-15 18:16:02.154222', "authentication_token" = 'QJN2uE7c8uDfYVP7XHiP' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:16:02 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:16:02 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'TstqqLppRqpfwZaoFmLM' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:16:02.161732', "updated_at" = '2013-07-15 18:16:02.161732', "auth_token" = 'TstqqLppRqpfwZaoFmLM' WHERE "public"."cadenero_members"."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", Mon, 15 Jul 2013 18:16:02 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$edPR7iqYIwtp8GWDB41D4edEZWTK7xPNBm1CKiDMAConn7SayKQSW"], ["updated_at", Mon, 15 Jul 2013 18:16:02 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", Mon, 15 Jul 2013 18:16:02 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$l/V3C5cLbAMCpPc1Gkt21uug49ffHaXboS5O8l/duQxG79MtKUDJS"], ["updated_at", Mon, 15 Jul 2013 18:16:02 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Mon, 15 Jul 2013 18:16:02 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 18:16:02 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'A8s1r9wsjNQcKYrjwzzC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-15 18:16:02.365533', "updated_at" = '2013-07-15 18:16:02.365533', "authentication_token" = 'A8s1r9wsjNQcKYrjwzzC' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (6.2ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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.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.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.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.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"   (3.5ms) ROLLBACK  (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  (13.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.1ms) BEGIN Connecting to database specified by database.yml  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.4ms) ROLLBACK  (0.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.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.1ms) BEGIN  (0.1ms) ROLLBACK  (0.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  (17.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) 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.5ms) BEGIN  (1.7ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.1ms) ROLLBACK  (0.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  (28.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 Connecting to database specified by database.yml  (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  (1.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (16.0ms) 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  (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.2ms) ROLLBACK  (0.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  (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  (0.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 19ms (Views: 4.9ms | ActiveRecord: 0.0ms)  (0.3ms) ROLLBACK  (0.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  (28.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  (0.1ms) BEGIN  (0.7ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (2.6ms) 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", Mon, 15 Jul 2013 18:19:53 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$mNkp0CnZWlietmguYJxKNO99XT2WKuOzmwMcMunJ7QhEGULUfKMjO"], ["updated_at", Mon, 15 Jul 2013 18:19:53 UTC +00:00]] 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", Mon, 15 Jul 2013 18:19:53 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:19:53 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JzNs9y1haY4G4tjzZrv6' LIMIT 1  (1.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:19:53.154963', "updated_at" = '2013-07-15 18:19:53.154963', "authentication_token" = 'JzNs9y1haY4G4tjzZrv6' WHERE "public"."cadenero_accounts"."id" = 1  (2.6ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:19:53 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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 122ms (Views: 0.3ms | ActiveRecord: 0.6ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (1.7ms) ROLLBACK  (0.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  (14.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  (0.1ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:19:53 -0500 Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"Testy", "subdomain"=>"test", "owner_attributes"=>{"email"=>"testy@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}}, "default"=>:json}  (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.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:19:53 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$Vd8qF5Ofkgz7sQSMU2mTKOqVbhClcZbWVN0kJ.psnf1c67CQVb0x."], ["updated_at", Mon, 15 Jul 2013 18:19:53 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", Mon, 15 Jul 2013 18:19:53 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:19:53 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'biYofiAza1j8tsy996bX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:19:53.464257', "updated_at" = '2013-07-15 18:19:53.464257', "authentication_token" = 'biYofiAza1j8tsy996bX' WHERE "public"."cadenero_accounts"."id" = 1  (0.3ms) RELEASE SAVEPOINT active_record_1  (1.2ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:19:53 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:19:53 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (9.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uTSYpveYunzPySM1yqqe' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:19:53.582694', "updated_at" = '2013-07-15 18:19:53.582694', "auth_token" = 'uTSYpveYunzPySM1yqqe' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test"  (11.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.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.3ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (2.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (3.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (4.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::V1::Account Exists (1.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE ("public"."cadenero_accounts"."subdomain" = 'test' AND "public"."cadenero_accounts"."id" != 1) LIMIT 1 Completed 201 Created in 387ms (Views: 1.9ms | ActiveRecord: 100.4ms) Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (8.4ms) ROLLBACK  (0.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  (20.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.2ms) 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  (5.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:19:53 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$U8knbzIuvaKbwocWvkeikuAwG87rg.ldSpSdQCqokGozANbbi8Coe"], ["updated_at", Mon, 15 Jul 2013 18:19:53 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (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", Mon, 15 Jul 2013 18:19:53 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 18:19:53 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'dSspytrMT8xnMA9QSFXZ' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 18:19:53.917262', "updated_at" = '2013-07-15 18:19:53.917262', "authentication_token" = 'dSspytrMT8xnMA9QSFXZ' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:19:53 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:19:53 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '3zwuEuvxn11mMnK4umSz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:19:53.926666', "updated_at" = '2013-07-15 18:19:53.926666', "auth_token" = '3zwuEuvxn11mMnK4umSz' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test1"  (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.6ms) 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")  (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.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")  (7.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (13.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.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:19:54 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1  (1.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:19:54 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$0nwknwIbINoVEH/o.H82be5HfsiSlH5QOrXWnMG6KdCURJVQpUqTi"], ["updated_at", Mon, 15 Jul 2013 18:19:54 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:19:54 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:19:54 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'QVNp5fzqtV96W39XpkwL' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:19:54.112581', "updated_at" = '2013-07-15 18:19:54.112581', "auth_token" = 'QVNp5fzqtV96W39XpkwL' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 152ms (Views: 37.5ms | ActiveRecord: 5.9ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:19:54 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 12ms (Views: 6.3ms | ActiveRecord: 1.6ms) 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_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1 SQL (0.6ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Mon, 15 Jul 2013 18:19:54 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 2], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 18:19:54 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '7QiaXnzTWjdDxdzUNawK' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 2, "created_at" = '2013-07-15 18:19:54.182428', "updated_at" = '2013-07-15 18:19:54.182428', "authentication_token" = '7QiaXnzTWjdDxdzUNawK' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:19:54 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:19:54 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'pCbxKDtMYwM3DbH5L6Lr' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 2, "created_at" = '2013-07-15 18:19:54.188842', "updated_at" = '2013-07-15 18:19:54.188842', "auth_token" = 'pCbxKDtMYwM3DbH5L6Lr' WHERE "public"."cadenero_members"."id" = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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")  (0.7ms) 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.9ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.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)  (10.5ms) 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.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.8ms) 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:19:54 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:19:54 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$PdyQ7JBvKtOvfRwF.qBONeWzTBMF7WdVTINOCV8onv792tjPK/M7O"], ["updated_at", Mon, 15 Jul 2013 18:19:54 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:19:54 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:19:54 UTC +00:00], ["user_id", 3]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'cywZdpNDyWqqsWByfk7t' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 3, "created_at" = '2013-07-15 18:19:54.415952', "updated_at" = '2013-07-15 18:19:54.415952', "auth_token" = 'cywZdpNDyWqqsWByfk7t' WHERE "public"."cadenero_members"."id" = 4  (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" = 3 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 3 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 117ms (Views: 6.5ms | ActiveRecord: 3.5ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/3" for 127.0.0.1 at 2013-07-15 13:19:54 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"3"} 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" = 2 AND "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 3 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 200 OK in 12ms (Views: 5.8ms | ActiveRecord: 1.6ms) Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:19:54 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) 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" 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 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 12ms (Views: 7.0ms | ActiveRecord: 1.6ms)  (9.8ms) ROLLBACK  (1.0ms) 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.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.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  (0.1ms) BEGIN  (0.4ms) 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 18:19:54 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$feXC4TWbhSq4SOi5NszW/OytqOoBmqmAA/eSA2scfaRMAEFo90XP2"], ["updated_at", Mon, 15 Jul 2013 18:19:54 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' 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", Mon, 15 Jul 2013 18:19:54 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 18:19:54 UTC +00:00]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'VHowSCHSeb2HnZBFAskM' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 18:19:54.609793', "updated_at" = '2013-07-15 18:19:54.609793', "authentication_token" = 'VHowSCHSeb2HnZBFAskM' WHERE "public"."cadenero_accounts"."id" = 1  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:19:54 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:19:54 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'er35xUGZcj9Q8Abpwf6y' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:19:54.619378', "updated_at" = '2013-07-15 18:19:54.619378', "auth_token" = 'er35xUGZcj9Q8Abpwf6y' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (5.1ms) CREATE TABLE "cadenero_accounts" ("id" serial primary key, "name" character varying(255), "subdomain" character varying(255), "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" ("authentication_token")  (5.0ms) 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")  (6.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (31.3ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.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)   (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (7.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.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 13:19:54 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test3' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:19:54 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$MU8kx90oV1p2rOzSYpYveONUwej948z9xK3K6R8XMYdgvqoapkwPK"], ["updated_at", Mon, 15 Jul 2013 18:19:54 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:19:54 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:19:54 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'e5wzsVPFRt1Pb8392vpP' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:19:54.857730', "updated_at" = '2013-07-15 18:19:54.857730', "auth_token" = 'e5wzsVPFRt1Pb8392vpP' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 114ms (Views: 5.9ms | 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/2" for 127.0.0.1 at 2013-07-15 13:19:54 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 2 LIMIT 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.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 5.8ms | ActiveRecord: 2.0ms)  (4.4ms) ROLLBACK  (0.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.6ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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  (0.8ms) ROLLBACK  (0.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  (33.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  (0.1ms) BEGIN  (0.6ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (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", Mon, 15 Jul 2013 18:19:57 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$zN9K8SfG90qKRcuxdEzC0ONy9V9znmRW3vvNTsmyTQgn5J5WLM/vG"], ["updated_at", Mon, 15 Jul 2013 18:19:57 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Mon, 15 Jul 2013 18:19:57 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 18:19:57 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qGbDxHEq9mq56gN25q2o' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 18:19:57.950664', "updated_at" = '2013-07-15 18:19:57.950664', "authentication_token" = 'qGbDxHEq9mq56gN25q2o' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:19:57 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:19:57 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'RQcvzhRYHHk6zr28zqhe' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:19:57.957651', "updated_at" = '2013-07-15 18:19:57.957651', "auth_token" = 'RQcvzhRYHHk6zr28zqhe' WHERE "public"."cadenero_members"."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", Mon, 15 Jul 2013 18:19:58 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$NHVKR.7aLdhrnKPZdJ83r.XMbT8ooGTu02DvoZ64Tfs2i.nqJ.GEq"], ["updated_at", Mon, 15 Jul 2013 18:19:58 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", Mon, 15 Jul 2013 18:19:58 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$pKEW4FI8THBUaIRraSK92uY6hh0UgO9xDIsH3nZss1ihr3YPAW3cW"], ["updated_at", Mon, 15 Jul 2013 18:19:58 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'www' LIMIT 1 SQL (0.4ms) INSERT INTO "public"."cadenero_accounts" ("authentication_token", "created_at", "name", "owner_id", "subdomain", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["authentication_token", nil], ["created_at", Mon, 15 Jul 2013 18:19:58 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 18:19:58 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3rjNzmhpuQPtfxqthzDE' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-15 18:19:58.162827', "updated_at" = '2013-07-15 18:19:58.162827', "authentication_token" = '3rjNzmhpuQPtfxqthzDE' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "www"  (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.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.8ms) 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.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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.6ms) 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"  (6.4ms) ROLLBACK  (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.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  (0.7ms) 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.3ms) ROLLBACK  (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.3ms) 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.1ms) BEGIN  (0.2ms) ROLLBACK  (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  (17.3ms) 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.1ms) BEGIN  (17.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.3ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) ROLLBACK  (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  (14.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  (0.1ms) BEGIN  (0.9ms) SAVEPOINT active_record_1 SQL (3.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", 1001], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:20:02 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:20:02 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (1.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ysPSKgsEE4CSKqWkcyjr' LIMIT 1  (1.0ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-15 18:20:02.067254', "updated_at" = '2013-07-15 18:20:02.067254', "auth_token" = 'ysPSKgsEE4CSKqWkcyjr' WHERE "public"."cadenero_members"."id" = 1  (0.5ms) RELEASE SAVEPOINT active_record_1  (1.3ms) ROLLBACK  (1.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  (13.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (0.3ms) BEGIN  (0.8ms) SAVEPOINT active_record_1 SQL (3.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:20:02 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$lDit91PTOrCb32a2jwJygen0.O8/8JQbBBidIhkRaGxG7po..hoLu"], ["updated_at", Mon, 15 Jul 2013 18:20:02 UTC +00:00]]  (1.3ms) RELEASE SAVEPOINT active_record_1  (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" = 'test5' 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", Mon, 15 Jul 2013 18:20:02 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 18:20:02 UTC +00:00]] Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'gEYCfPh9KR6mmdy2BhWr' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 18:20:02.226408', "updated_at" = '2013-07-15 18:20:02.226408', "authentication_token" = 'gEYCfPh9KR6mmdy2BhWr' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:20:02 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:20:02 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" = 'kzxLZPD2KJD2Hxg372PR' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:20:02.236051', "updated_at" = '2013-07-15 18:20:02.236051', "auth_token" = 'kzxLZPD2KJD2Hxg372PR' WHERE "public"."cadenero_members"."id" = 1  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test5"  (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)  (2.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.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.2ms) 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")  (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)  (5.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.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.5ms) 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:20:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:20:02 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:20:02 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$ntPANgkM2/XvCIXf/0/5Ou1xU08caCaWfydY.oWkFpl2unO8yr0mi"], ["updated_at", Mon, 15 Jul 2013 18:20:02 UTC +00:00]] SQL (0.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:20:02 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:20:02 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'LnPyNtMkGy1VrppHzvuW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:20:02.425184', "updated_at" = '2013-07-15 18:20:02.425184', "auth_token" = 'LnPyNtMkGy1VrppHzvuW' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 118ms (Views: 6.8ms | ActiveRecord: 4.0ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:20:02 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.8ms) Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:20:02 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 54ms (Views: 45.7ms | ActiveRecord: 1.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" for 127.0.0.1 at 2013-07-15 13:20:02 -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" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.4ms)  (7.3ms) ROLLBACK  (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  (15.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  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:20:02 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$U8zQ.LP8rLPoVri3RdSyxuWQJ.XQa8OxxgcolnMT4MHHK9baFJnpW"], ["updated_at", Mon, 15 Jul 2013 18:20:02 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.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", Mon, 15 Jul 2013 18:20:02 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 18:20:02 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'aquAFhsCVXFhpqdTNr3z' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 18:20:02.747286', "updated_at" = '2013-07-15 18:20:02.747286', "authentication_token" = 'aquAFhsCVXFhpqdTNr3z' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:20:02 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:20:02 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = '7BHqjKqJj8JsDBkKqJQv' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:20:02.755037', "updated_at" = '2013-07-15 18:20:02.755037', "auth_token" = '7BHqjKqJj8JsDBkKqJQv' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test6"  (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)  (1.5ms) 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")  (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.3ms) 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.0ms) 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.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (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 13:20:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:20:02 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user6@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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"."email" = 'user6@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 110ms (Views: 6.3ms | ActiveRecord: 2.1ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:20:02 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (4.5ms) ROLLBACK  (0.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  (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  (0.1ms) BEGIN  (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", Mon, 15 Jul 2013 18:20:03 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$em2mFuGPx4gn8Kj3p5CFZeG7P/XN7TyYF/rRY39YLnL07bS/TxJfy"], ["updated_at", Mon, 15 Jul 2013 18:20:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test7' LIMIT 1 SQL (6.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", Mon, 15 Jul 2013 18:20:03 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 18:20:03 UTC +00:00]] Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'HNkHQ9ETQYqU3inySrNs' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 18:20:03.093861', "updated_at" = '2013-07-15 18:20:03.093861', "authentication_token" = 'HNkHQ9ETQYqU3inySrNs' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (32.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:20:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:20:03 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" = 'XwnqFcysM1qg44qGfrkV' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:20:03.107403', "updated_at" = '2013-07-15 18:20:03.107403', "auth_token" = 'XwnqFcysM1qg44qGfrkV' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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)  (2.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.2ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (5.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.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")  (0.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (13.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)   (1.0ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.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 13:20:03 -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.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" = 'user7@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 243ms (Views: 5.5ms | ActiveRecord: 2.3ms) Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (14.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:20:03 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (5.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 8ms (Views: 0.2ms | ActiveRecord: 5.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:20:03 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (18.3ms) ROLLBACK  (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  (30.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  (5.6ms) BEGIN  (7.9ms) SAVEPOINT active_record_1 SQL (9.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 18:20:03 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$oQg/9FBpcNDsq7mKCmMUZekscKXwVrepldCr3Srwyf2EKwEBI9ywK"], ["updated_at", Mon, 15 Jul 2013 18:20:03 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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", Mon, 15 Jul 2013 18:20:03 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 18:20:03 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3BYPLLU3ypF7Z5ksqyDb' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 18:20:03.770336', "updated_at" = '2013-07-15 18:20:03.770336', "authentication_token" = '3BYPLLU3ypF7Z5ksqyDb' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:20:03 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:20:03 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uC6Xd6nKF42iGFFynTQA' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:20:03.776989', "updated_at" = '2013-07-15 18:20:03.776989', "auth_token" = 'uC6Xd6nKF42iGFFynTQA' WHERE "public"."cadenero_members"."id" = 1  (7.7ms) RELEASE SAVEPOINT active_record_1  (4.7ms) CREATE SCHEMA "test8"  (13.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)  (4.3ms) 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")  (13.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))   (5.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (5.8ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.5ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) 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:20:03 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user8@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test8') LIMIT 1 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 AND "public"."cadenero_users"."email" = 'user8@example.com' LIMIT 1 Cadenero::User Load (13.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 156ms (Views: 5.6ms | ActiveRecord: 17.5ms) Cadenero::V1::Account Load (3.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (8.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1 Cadenero::User Load (4.8ms) 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 13:20:04 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (1.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 1.2ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:20:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:20:04 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (1.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' LIMIT 1  (1.0ms) SAVEPOINT active_record_1 SQL (7.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:20:04 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$2U77UhqUddNnBBZKQy3E5eX1/w9GH3nnCf7TlZ6s/SmFwx1Sotude"], ["updated_at", Mon, 15 Jul 2013 18:20:04 UTC +00:00]] SQL (0.8ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:20:04 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:20:04 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ZJ8GBLNc3Rxc2bcTMFqz' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:20:04.337386', "updated_at" = '2013-07-15 18:20:04.337386', "auth_token" = 'ZJ8GBLNc3Rxc2bcTMFqz' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 225ms (Views: 5.4ms | ActiveRecord: 12.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/2" for 127.0.0.1 at 2013-07-15 13:20:04 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test8' 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 6.0ms | ActiveRecord: 1.5ms) Cadenero::User Load (9.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 13:20:04 -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" = 2 LIMIT 1 Cadenero::Member Load (1.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (2.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 17ms (Views: 10.2ms | ActiveRecord: 5.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  (4.2ms) ROLLBACK  (0.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  (26.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  (3.6ms) BEGIN  (4.9ms) SAVEPOINT active_record_1 SQL (15.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:20:04 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$TrAn4CP3g9sFgXyfP1jZDekzsZRNx9BW28qiprFgXB/6XSjEV2Jaq"], ["updated_at", Mon, 15 Jul 2013 18:20:04 UTC +00:00]]  (13.3ms) RELEASE SAVEPOINT active_record_1  (1.0ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (10.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test9' LIMIT 1 SQL (11.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", Mon, 15 Jul 2013 18:20:04 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 18:20:04 UTC +00:00]] Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'EuzPTgR635BQDzynSwLX' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 18:20:04.708734', "updated_at" = '2013-07-15 18:20:04.708734', "authentication_token" = 'EuzPTgR635BQDzynSwLX' WHERE "public"."cadenero_accounts"."id" = 1  (0.3ms) RELEASE SAVEPOINT active_record_1  (3.0ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:20:04 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:20:04 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" = 'QzjLtVHGpYQLXZ7eTx4k' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:20:04.731386', "updated_at" = '2013-07-15 18:20:04.731386', "auth_token" = 'QzjLtVHGpYQLXZ7eTx4k' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (43.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")  (10.3ms) 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.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.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.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:20:04 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:20:04 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test9') LIMIT 1 Cadenero::User Load (2.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" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 7ms (Views: 0.4ms | ActiveRecord: 3.2ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (4.9ms) ROLLBACK  (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  (20.5ms) 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  (0.1ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (12.2ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:20:05 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$NTkAwZrE.h1Kr1TRChyOYuXEjKZUz.UHo4SHbMLGlTqL6vg4wq9VK"], ["updated_at", Mon, 15 Jul 2013 18:20:05 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" = 'test10' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 18:20:05 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 1], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 18:20:05 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'rCe94GFoYTqexCmhM5wJ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 1, "created_at" = '2013-07-15 18:20:05.030418', "updated_at" = '2013-07-15 18:20:05.030418', "authentication_token" = 'rCe94GFoYTqexCmhM5wJ' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.4ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:20:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:20:05 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'MaJyLuMJ6yyCh3Mpc5nq' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:20:05.037133', "updated_at" = '2013-07-15 18:20:05.037133', "auth_token" = 'MaJyLuMJ6yyCh3Mpc5nq' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test10"  (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")  (0.8ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.2ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "auth_token" character varying(255))  (6.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")  (4.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)  (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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (3.2ms) 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 13:20:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:20:05 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.9ms) 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" = 1 AND "public"."cadenero_users"."email" = 'user@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.3ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.7ms) ROLLBACK  (1.1ms) 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  (35.7ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.9ms) 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.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (4.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:20:05 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$WUq3byylIrhdOzBRrJYmD.0aocbuuw96/2u9GRj.v9KZOvodjhhr."], ["updated_at", Mon, 15 Jul 2013 18:20:05 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" = 'test11' 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", Mon, 15 Jul 2013 18:20:05 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 18:20:05 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'G7cZBTcj6zjwzpcZ8Xyt' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-15 18:20:05.333850', "updated_at" = '2013-07-15 18:20:05.333850', "authentication_token" = 'G7cZBTcj6zjwzpcZ8Xyt' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:20:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:20:05 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (1.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xdzrH8ppcvptJPtuHsbK' LIMIT 1  (1.0ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:20:05.340365', "updated_at" = '2013-07-15 18:20:05.340365', "auth_token" = 'xdzrH8ppcvptJPtuHsbK' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test11"  (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)   (3.3ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (11.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))  (4.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")  (2.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.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.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (1.8ms) 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')  (2.2ms) 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:20:05 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$4AXQhrEMa5I4EptWYeIdaujpRPLTeZcLSxWtTkT46lWMW2eC4Via2"], ["updated_at", Mon, 15 Jul 2013 18:20:05 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.2ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1 SQL (10.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", Mon, 15 Jul 2013 18:20:05 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 2], ["subdomain", "test12"], ["updated_at", Mon, 15 Jul 2013 18:20:05 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8X5LhDwdB3CXzKs26wfZ' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 2, "created_at" = '2013-07-15 18:20:05.555794', "updated_at" = '2013-07-15 18:20:05.555794', "authentication_token" = '8X5LhDwdB3CXzKs26wfZ' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:20:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:20:05 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'rCzzkpnLzoBK8Qzw1wm1' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 2, "created_at" = '2013-07-15 18:20:05.572738', "updated_at" = '2013-07-15 18:20:05.572738', "auth_token" = 'rCzzkpnLzoBK8Qzw1wm1' WHERE "public"."cadenero_members"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:20:05 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:20:05 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user12@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('test11') LIMIT 1 Cadenero::User Load (0.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_users"."id" = "public"."cadenero_members"."user_id" WHERE "public"."cadenero_members"."account_id" = 1 AND "public"."cadenero_users"."email" = 'user12@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  (11.3ms) ROLLBACK  (7.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  (40.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (4.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  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:20:05 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$oElNdnsme7Buztd73Ixe8.Cs33hmh8O2Z2xOTndLU4Qsm1whfcp3e"], ["updated_at", Mon, 15 Jul 2013 18:20:05 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" = '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", Mon, 15 Jul 2013 18:20:05 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1], ["subdomain", "test13"], ["updated_at", Mon, 15 Jul 2013 18:20:05 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '8VxJsSvK4ZstL16SrqgH' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 1, "created_at" = '2013-07-15 18:20:05.814818', "updated_at" = '2013-07-15 18:20:05.814818', "authentication_token" = '8VxJsSvK4ZstL16SrqgH' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.8ms) SAVEPOINT active_record_1 SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:20:05 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:20:05 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'gaPqzq5okrVfp2yx5h8i' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:20:05.826127', "updated_at" = '2013-07-15 18:20:05.826127', "auth_token" = 'gaPqzq5okrVfp2yx5h8i' WHERE "public"."cadenero_members"."id" = 1  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test13"  (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)   (0.8ms) 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")  (9.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))  (6.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (10.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.5ms) 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:20:05 -0500 Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.9ms) ROLLBACK  (0.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  (24.7ms) 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  (0.1ms) BEGIN Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.5ms) ROLLBACK  (0.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  (49.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  (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.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  (46.5ms) 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  (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  (8.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  (51.1ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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  (10.6ms) BEGIN  (1.0ms) 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.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:20:06 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$CYJg3s4GjX0BsHZ6K7m7V.eFSq/USK2vZhCXM96KqHT61hFhgbI2q"], ["updated_at", Mon, 15 Jul 2013 18:20:06 UTC +00:00]] SQL (1.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", Mon, 15 Jul 2013 18:20:06 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:20:06 UTC +00:00]] Cadenero::V1::Account Load (1.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Z5q3cop7DDupEeWLGm1F' LIMIT 1  (2.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:20:06.667811', "updated_at" = '2013-07-15 18:20:06.667811', "authentication_token" = 'Z5q3cop7DDupEeWLGm1F' WHERE "public"."cadenero_accounts"."id" = 1  (1.7ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:20:06 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:20:06 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (1.0ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'efMmQJd6pNXed3nZcnAJ' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:20:06.681638', "updated_at" = '2013-07-15 18:20:06.681638', "auth_token" = 'efMmQJd6pNXed3nZcnAJ' WHERE "public"."cadenero_members"."id" = 1  (0.2ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test"  (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.6ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (13.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")  (10.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.0ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)   (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Cadenero::User Load (0.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 LIMIT 1  (8.0ms) ROLLBACK  (0.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  (77.9ms) 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  (0.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#index as JSON Cadenero::Member Load (1.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 1.8ms)  (0.1ms) ROLLBACK  (0.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  (14.5ms) 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  (0.2ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.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.4ms | ActiveRecord: 1.3ms)  (0.2ms) ROLLBACK  (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  (19.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  (2.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.2ms) ROLLBACK  (0.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  (417.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (21.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  (2.6ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)  (0.2ms) ROLLBACK  (0.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.6ms) 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 Connecting to database specified by database.yml  (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.9ms) select table_name from information_schema.views where table_schema = 'cadenero_test'  (49.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  (0.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 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", 1001], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:21 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:21 UTC +00:00], ["user_id", 101]] Cadenero::Member Load (0.7ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'zCQeisszubuxPNM8wM2M' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_members" SET "account_id" = 1001, "user_id" = 101, "created_at" = '2013-07-15 18:21:21.105292', "updated_at" = '2013-07-15 18:21:21.105292', "auth_token" = 'zCQeisszubuxPNM8wM2M' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) ROLLBACK  (0.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  (13.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  (0.1ms) BEGIN 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" = 101 Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.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 115ms (Views: 113.0ms | ActiveRecord: 1.6ms)  (0.2ms) ROLLBACK  (0.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  (35.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.1ms) BEGIN Processing by Cadenero::V1::Account::UsersController#show as JSON Parameters: {"id"=>101} Cadenero::Member Load (0.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 101 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 101 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 101 Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 1.3ms)  (0.1ms) ROLLBACK  (0.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  (18.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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.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.7ms | ActiveRecord: 0.0ms)  (0.1ms) ROLLBACK  (0.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  (20.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.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.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  (21.0ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (10.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  (0.2ms) BEGIN  (0.2ms) ROLLBACK  (0.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  (45.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (3.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.1ms) BEGIN  (0.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (0.2ms) SAVEPOINT active_record_1 SQL (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:21:25 UTC +00:00], ["email", "user1@example.com"], ["password_digest", "$2a$10$PmG64seQnmnXVru6PnSyt.lByI9JV5r566TBRpAmvwg4bcFBVBfoO"], ["updated_at", Mon, 15 Jul 2013 18:21:25 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.4ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test1' LIMIT 1 SQL (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", Mon, 15 Jul 2013 18:21:25 UTC +00:00], ["name", "Test Account #1"], ["owner_id", 1], ["subdomain", "test1"], ["updated_at", Mon, 15 Jul 2013 18:21:25 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'JGii8XPn1sS2CH9oGEYN' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #1', "subdomain" = 'test1', "owner_id" = 1, "created_at" = '2013-07-15 18:21:25.104851', "updated_at" = '2013-07-15 18:21:25.104851', "authentication_token" = 'JGii8XPn1sS2CH9oGEYN' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) SAVEPOINT active_record_1 SQL (1.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:25 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:25 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mdcpgcKpS6vDxQhYFz6Y' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:21:25.125489', "updated_at" = '2013-07-15 18:21:25.125489', "auth_token" = 'mdcpgcKpS6vDxQhYFz6Y' WHERE "public"."cadenero_members"."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", Mon, 15 Jul 2013 18:21:25 UTC +00:00], ["email", "user2@example.com"], ["password_digest", "$2a$10$l3JeCdHQ5EXtxc/3.VamUeA6gN3Gok6d5lorCqsrkB9Lk4x1pg.Sq"], ["updated_at", Mon, 15 Jul 2013 18:21:25 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", Mon, 15 Jul 2013 18:21:25 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$XUyFcgd6hV3PnyLTuMho9OdMsit68MuWfSHEo9xcGHom8okji4x82"], ["updated_at", Mon, 15 Jul 2013 18:21:25 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", Mon, 15 Jul 2013 18:21:25 UTC +00:00], ["name", "Root"], ["owner_id", 3], ["subdomain", "www"], ["updated_at", Mon, 15 Jul 2013 18:21:25 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'NvyYxgEwroxNNybcmk7q' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Root', "subdomain" = 'www', "owner_id" = 3, "created_at" = '2013-07-15 18:21:25.329555', "updated_at" = '2013-07-15 18:21:25.329555', "authentication_token" = 'NvyYxgEwroxNNybcmk7q' WHERE "public"."cadenero_accounts"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) CREATE SCHEMA "www"  (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" ("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.0ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (1.1ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (3.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")  (1.1ms) SELECT version FROM "schema_migrations"  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.7ms) 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.5ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"   (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"  (9.5ms) ROLLBACK  (0.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.2ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "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 Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  (0.3ms) 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  (29.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  (0.3ms) ROLLBACK  (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  (22.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  (0.3ms) BEGIN  (1.2ms) SELECT COUNT(*) FROM "public"."cadenero_accounts"  (0.2ms) SELECT COUNT(*) FROM "public"."cadenero_users"   (0.1ms) ROLLBACK  (0.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.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  (0.3ms) BEGIN  (1.3ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.6ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test' LIMIT 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 18:21:30 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$QHO7MyoIiKKiIpyZFQsy4ONRD7nGDYh4oo3pqAzi3w3la3tnKxc4W"], ["updated_at", Mon, 15 Jul 2013 18:21:30 UTC +00:00]] SQL (1.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", Mon, 15 Jul 2013 18:21:30 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:21:30 UTC +00:00]] Cadenero::V1::Account Load (2.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '4C1P9gMmzdo9Chywjd4x' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:21:30.165020', "updated_at" = '2013-07-15 18:21:30.165020', "authentication_token" = '4C1P9gMmzdo9Chywjd4x' WHERE "public"."cadenero_accounts"."id" = 1  (0.6ms) RELEASE SAVEPOINT active_record_1 Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:21:30 -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.8ms) 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  (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 214ms (Views: 0.5ms | ActiveRecord: 1.5ms) Cadenero::V1::Account Load (13.5ms) 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_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (18.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  (0.4ms) BEGIN Started POST "/v1/accounts" for 127.0.0.1 at 2013-07-15 13:21:30 -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 (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:21:30 UTC +00:00], ["email", "testy@example.com"], ["password_digest", "$2a$10$1glaXHAery6XrNzZUdBaQe63.DFYQV5Ok7c2WE7zGIW2m5sRiIWLa"], ["updated_at", Mon, 15 Jul 2013 18:21:30 UTC +00:00]] 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", Mon, 15 Jul 2013 18:21:30 UTC +00:00], ["name", "Testy"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:21:30 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'G1zDQf2nV6wrpkymGXtP' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Testy', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:21:30.595453', "updated_at" = '2013-07-15 18:21:30.595453', "authentication_token" = 'G1zDQf2nV6wrpkymGXtP' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:30 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:30 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (1.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'ggoDGzDXA3UjTNrLpyWu' LIMIT 1  (1.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:21:30.602217', "updated_at" = '2013-07-15 18:21:30.602217', "auth_token" = 'ggoDGzDXA3UjTNrLpyWu' WHERE "public"."cadenero_members"."id" = 1  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.8ms) CREATE SCHEMA "test"  (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")  (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.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.0ms) 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)  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (1.0ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') 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 Completed 201 Created in 229ms (Views: 2.0ms | ActiveRecord: 53.2ms) Cadenero::V1::Account Load (0.9ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'Testy' LIMIT 1  (5.4ms) ROLLBACK  (0.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  (11.8ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.1ms) 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.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 18:21:30 UTC +00:00], ["email", "user3@example.com"], ["password_digest", "$2a$10$jKE0gqPJ4lLvS.EJ6HbJHO1i0WzSOusCivHb0M7OLwnSPvLOT1Nru"], ["updated_at", Mon, 15 Jul 2013 18:21:30 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" = 'test2' 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", Mon, 15 Jul 2013 18:21:30 UTC +00:00], ["name", "Test Account #2"], ["owner_id", 1], ["subdomain", "test2"], ["updated_at", Mon, 15 Jul 2013 18:21:30 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'Pq3xjmfYX486MqAzndxq' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #2', "subdomain" = 'test2', "owner_id" = 1, "created_at" = '2013-07-15 18:21:30.841343', "updated_at" = '2013-07-15 18:21:30.841343', "authentication_token" = 'Pq3xjmfYX486MqAzndxq' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.2ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:30 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:30 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NhNXHB56KGiVYxTKscBX' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:21:30.849098', "updated_at" = '2013-07-15 18:21:30.849098', "auth_token" = 'NhNXHB56KGiVYxTKscBX' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test2"  (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)  (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.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.5ms) 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")  (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.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.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 13:21:30 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:21:30 -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" = 'test2' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:21:31 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$8U5ZYSDWt4kFqeZdpSY0k.4sk3ycxe1JDxZoHEQwj9Nt/j0c1iTQG"], ["updated_at", Mon, 15 Jul 2013 18:21:31 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:31 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:31 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'hiUcXzsoqkCRqjRPuCCP' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:21:31.034444', "updated_at" = '2013-07-15 18:21:31.034444', "auth_token" = 'hiUcXzsoqkCRqjRPuCCP' WHERE "public"."cadenero_members"."id" = 2  (0.5ms) RELEASE SAVEPOINT active_record_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.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 123ms (Views: 7.6ms | ActiveRecord: 4.1ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:21:31 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 12ms (Views: 6.4ms | ActiveRecord: 2.0ms) Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user_second@example.com' LIMIT 1 Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:21:31 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user_second@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 9ms (Views: 5.9ms | ActiveRecord: 1.2ms) Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:21:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Cadenero::User Load (0.3ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms)  (12.0ms) ROLLBACK  (0.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  (16.3ms) 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.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", Mon, 15 Jul 2013 18:21:31 UTC +00:00], ["email", "user4@example.com"], ["password_digest", "$2a$10$Me6mXtJFcw0IKvF3G0uOn.oYCEAAU8EJ3mk1iq/SpXWwj6cIhDvBK"], ["updated_at", Mon, 15 Jul 2013 18:21:31 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 (1.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", Mon, 15 Jul 2013 18:21:31 UTC +00:00], ["name", "Test Account #3"], ["owner_id", 1], ["subdomain", "test3"], ["updated_at", Mon, 15 Jul 2013 18:21:31 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'GCvphMABSyQTzq756Vqn' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #3', "subdomain" = 'test3', "owner_id" = 1, "created_at" = '2013-07-15 18:21:31.245056', "updated_at" = '2013-07-15 18:21:31.245056', "authentication_token" = 'GCvphMABSyQTzq756Vqn' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:31 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:31 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (2.1ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xrbSqPEQRcjo66pdctCm' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:21:31.251950', "updated_at" = '2013-07-15 18:21:31.251950', "auth_token" = 'xrbSqPEQRcjo66pdctCm' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test3"  (8.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")  (1.7ms) 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))   (2.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.5ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (2.9ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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.3ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:21:31 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:21:31 -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 (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 AND "public"."cadenero_users"."email" = 'user4@example.com' LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::Member Load (1.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (4.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 161ms (Views: 6.9ms | ActiveRecord: 9.2ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:21:31 -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" = 1 LIMIT 1 Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.5ms)  (17.6ms) ROLLBACK  (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  (18.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.1ms) BEGIN  (0.1ms) SAVEPOINT active_record_1 SQL (1.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:21:31 UTC +00:00], ["email", "user5@example.com"], ["password_digest", "$2a$10$LsoxsCcxiKJgrZhpB/o6R.TG2IkJq2klhwin4UW7GF8YCyVdDiG/y"], ["updated_at", Mon, 15 Jul 2013 18:21:31 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (3.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' 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", Mon, 15 Jul 2013 18:21:31 UTC +00:00], ["name", "Test Account #4"], ["owner_id", 1], ["subdomain", "test4"], ["updated_at", Mon, 15 Jul 2013 18:21:31 UTC +00:00]] Cadenero::V1::Account Load (5.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'xMR6dXZrdy3TWeLiG9xH' LIMIT 1  (0.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #4', "subdomain" = 'test4', "owner_id" = 1, "created_at" = '2013-07-15 18:21:31.877120', "updated_at" = '2013-07-15 18:21:31.877120', "authentication_token" = 'xMR6dXZrdy3TWeLiG9xH' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:31 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:31 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (2.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'VYJkQtbMPdAJgHpo1iHL' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:21:31.898002', "updated_at" = '2013-07-15 18:21:31.898002', "auth_token" = 'VYJkQtbMPdAJgHpo1iHL' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test4"  (7.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" ("authentication_token")  (5.1ms) 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))   (6.7ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (9.4ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.7ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (5.1ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.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 13:21:31 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"user5@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 1 AND "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Cadenero::User Load (1.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::Member Load (11.6ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (10.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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" = 1 Completed 201 Created in 202ms (Views: 7.4ms | ActiveRecord: 25.5ms) Cadenero::V1::Account Load (8.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (1.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1 Cadenero::User Load (2.0ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."email" = 'user5@example.com' LIMIT 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:21:32 -0500 Processing by Cadenero::V1::Account::SessionsController#delete as HTML Parameters: {"id"=>"1", "default"=>:json} Cadenero::User Load (2.5ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 2.5ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:21:32 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:21:32 -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.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test4' LIMIT 1  (2.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 18:21:32 UTC +00:00], ["email", "user_second@example.com"], ["password_digest", "$2a$10$Fr0SPS/j6gIQOoH4OnTLcu4DMXZK3pqKxfsVvT5XqK/6fHrfhdrqu"], ["updated_at", Mon, 15 Jul 2013 18:21:32 UTC +00:00]] SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:32 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:32 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'M3VC4tUvNHCMwmKssRzu' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:21:32.491382', "updated_at" = '2013-07-15 18:21:32.491382', "auth_token" = 'M3VC4tUvNHCMwmKssRzu' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 260ms (Views: 6.1ms | ActiveRecord: 9.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/2" for 127.0.0.1 at 2013-07-15 13:21:32 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.4ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 Cadenero::V1::Account Load (7.1ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" INNER JOIN "public"."cadenero_members" ON "public"."cadenero_accounts"."id" = "public"."cadenero_members"."account_id" WHERE "public"."cadenero_members"."user_id" = 2 Completed 200 OK in 98ms (Views: 6.8ms | ActiveRecord: 8.6ms) Cadenero::User Load (2.6ms) 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 13:21:32 -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" = 2 LIMIT 1 Cadenero::Member Load (12.8ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 22ms (Views: 6.6ms | ActiveRecord: 14.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  (3.7ms) ROLLBACK  (0.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  (27.4ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (4.1ms) 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.1ms) BEGIN  (10.4ms) SAVEPOINT active_record_1 SQL (5.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 18:21:32 UTC +00:00], ["email", "user6@example.com"], ["password_digest", "$2a$10$5kpTjR0IwcGQA3HWs6ydb.jhii31/mU68VGc7K2SMJFsKjF3lFvq2"], ["updated_at", Mon, 15 Jul 2013 18:21:32 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.9ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test5' 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", Mon, 15 Jul 2013 18:21:32 UTC +00:00], ["name", "Test Account #5"], ["owner_id", 1], ["subdomain", "test5"], ["updated_at", Mon, 15 Jul 2013 18:21:32 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3pEQ7FdPeWtDtMCEXh1w' LIMIT 1  (8.4ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #5', "subdomain" = 'test5', "owner_id" = 1, "created_at" = '2013-07-15 18:21:32.879148', "updated_at" = '2013-07-15 18:21:32.879148', "authentication_token" = '3pEQ7FdPeWtDtMCEXh1w' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (4.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:32 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:32 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" = 'pjsmG6tt5LdMP3Emss9C' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:21:32.894438', "updated_at" = '2013-07-15 18:21:32.894438', "auth_token" = 'pjsmG6tt5LdMP3Emss9C' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (5.7ms) CREATE SCHEMA "test5"  (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.8ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (17.9ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (21.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))  (26.1ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (4.3ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) 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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (4.6ms) 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.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:21:33 -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 (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 Cadenero::User Load (1.7ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 1 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 201 Created in 191ms (Views: 11.7ms | ActiveRecord: 4.5ms) Cadenero::V1::Account Load (0.8ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Cadenero::Member Load (0.5ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."account_id" = 1 Started DELETE "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:21:33 -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 2ms (Views: 0.2ms | ActiveRecord: 0.4ms) Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:21:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)  (6.9ms) ROLLBACK  (0.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  (20.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (5.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  (0.1ms) BEGIN  (0.5ms) 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", Mon, 15 Jul 2013 18:21:33 UTC +00:00], ["email", "user7@example.com"], ["password_digest", "$2a$10$U1UJDVtaGoWZ8qLXzg86ROVoNb0E.6YaMWNweOXwTue.qBDvBDlhW"], ["updated_at", Mon, 15 Jul 2013 18:21:33 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (1.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test6' LIMIT 1 SQL (2.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", Mon, 15 Jul 2013 18:21:33 UTC +00:00], ["name", "Test Account #6"], ["owner_id", 1], ["subdomain", "test6"], ["updated_at", Mon, 15 Jul 2013 18:21:33 UTC +00:00]] Cadenero::V1::Account Load (1.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'N3QCDW9oxAQvbKWtZ2FC' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #6', "subdomain" = 'test6', "owner_id" = 1, "created_at" = '2013-07-15 18:21:33.644201', "updated_at" = '2013-07-15 18:21:33.644201', "authentication_token" = 'N3QCDW9oxAQvbKWtZ2FC' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:33 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:33 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (7.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'Uqzutq6spGDRPGzUpq72' LIMIT 1  (7.1ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:21:33.658718', "updated_at" = '2013-07-15 18:21:33.658718', "auth_token" = 'Uqzutq6spGDRPGzUpq72' WHERE "public"."cadenero_members"."id" = 1  (0.7ms) RELEASE SAVEPOINT active_record_1  (0.6ms) CREATE SCHEMA "test6"  (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)   (2.7ms) 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")  (6.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))  (2.6ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (0.9ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.6ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.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.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (2.2ms) SELECT version FROM "schema_migrations"  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:21:33 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:21:33 -0500 Processing by Cadenero::V1::Account::SessionsController#create as JSON Parameters: {"user"=>{"email"=>"foo@example.com", "password"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (3.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IN ('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" = 'foo@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 10ms (Views: 0.4ms | ActiveRecord: 4.5ms) Cadenero::V1::Account Load (8.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (6.9ms) ROLLBACK  (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  (17.9ms) 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  (0.1ms) BEGIN  (4.7ms) SAVEPOINT active_record_1 SQL (4.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:21:33 UTC +00:00], ["email", "user8@example.com"], ["password_digest", "$2a$10$cZAqbtzLrUtO3rjFFKNemOj02y/Yw89sqn6XWg2XXyN2O5uRQu.v."], ["updated_at", Mon, 15 Jul 2013 18:21:33 UTC +00:00]]  (0.3ms) 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", Mon, 15 Jul 2013 18:21:33 UTC +00:00], ["name", "Test Account #7"], ["owner_id", 1], ["subdomain", "test7"], ["updated_at", Mon, 15 Jul 2013 18:21:33 UTC +00:00]] Cadenero::V1::Account Load (1.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'oe1qr5R6Y1CFHTu1cKwP' LIMIT 1  (0.7ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #7', "subdomain" = 'test7', "owner_id" = 1, "created_at" = '2013-07-15 18:21:33.964637', "updated_at" = '2013-07-15 18:21:33.964637', "authentication_token" = 'oe1qr5R6Y1CFHTu1cKwP' WHERE "public"."cadenero_accounts"."id" = 1  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.6ms) SAVEPOINT active_record_1 SQL (2.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:33 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:33 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" = '4w3RT3bGroYxUuXzRAop' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:21:33.974445', "updated_at" = '2013-07-15 18:21:33.974445', "auth_token" = '4w3RT3bGroYxUuXzRAop' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test7"  (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)   (8.6ms) 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")  (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.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)  (1.1ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.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 13:21:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:21:34 -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 ('test7') 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 Completed 422 Unprocessable Entity in 8ms (Views: 0.4ms | ActiveRecord: 1.4ms) Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (7.4ms) ROLLBACK  (0.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  (16.3ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (0.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  (1.2ms) BEGIN  (0.9ms) 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:21:34 UTC +00:00], ["email", "user9@example.com"], ["password_digest", "$2a$10$8.OFVA4d7ywG5trfgYb2UuzGv5tk/S/.E37fYxSr7np0WP6c/JVj6"], ["updated_at", Mon, 15 Jul 2013 18:21:34 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" = 'test8' LIMIT 1 SQL (1.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", Mon, 15 Jul 2013 18:21:34 UTC +00:00], ["name", "Test Account #8"], ["owner_id", 1], ["subdomain", "test8"], ["updated_at", Mon, 15 Jul 2013 18:21:34 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'qFW6aotxFkk3UpJgmvGq' LIMIT 1  (2.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #8', "subdomain" = 'test8', "owner_id" = 1, "created_at" = '2013-07-15 18:21:34.237297', "updated_at" = '2013-07-15 18:21:34.237297', "authentication_token" = 'qFW6aotxFkk3UpJgmvGq' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.5ms) SAVEPOINT active_record_1 SQL (2.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:34 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:34 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'sRPd96b5KMhppQxtEz8b' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:21:34.247419', "updated_at" = '2013-07-15 18:21:34.247419', "auth_token" = 'sRPd96b5KMhppQxtEz8b' WHERE "public"."cadenero_members"."id" = 1  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test8"  (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.2ms) 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.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.3ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (2.6ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.1ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (12.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)   (1.2ms) 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.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:21:34 -0500 Cadenero::V1::Account Load (4.4ms) 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_accounts" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_users" DISABLE TRIGGER ALL;ALTER TABLE "cadenero_members" DISABLE TRIGGER ALL  (21.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.5ms) BEGIN  (5.4ms) SAVEPOINT active_record_1 SQL (7.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:21:34 UTC +00:00], ["email", "user10@example.com"], ["password_digest", "$2a$10$A25ExVyViCN6dXdBp0dsCOVHi/f1Fl79O8s7yLgXhsp4xIOag.6KO"], ["updated_at", Mon, 15 Jul 2013 18:21:34 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" = 'test9' 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", Mon, 15 Jul 2013 18:21:34 UTC +00:00], ["name", "Test Account #9"], ["owner_id", 1], ["subdomain", "test9"], ["updated_at", Mon, 15 Jul 2013 18:21:34 UTC +00:00]] Cadenero::V1::Account Load (0.5ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'mxz7VJ9MT9aTjpLCSEiS' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #9', "subdomain" = 'test9', "owner_id" = 1, "created_at" = '2013-07-15 18:21:34.551381', "updated_at" = '2013-07-15 18:21:34.551381', "authentication_token" = 'mxz7VJ9MT9aTjpLCSEiS' WHERE "public"."cadenero_accounts"."id" = 1  (1.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (3.7ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:34 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:34 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'uTqiz5ick4HzQadyA1M5' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:21:34.565933', "updated_at" = '2013-07-15 18:21:34.565933', "auth_token" = 'uTqiz5ick4HzQadyA1M5' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) CREATE SCHEMA "test9"  (10.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)   (3.6ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.4ms) 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")  (1.7ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.4ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (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)  (0.9ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (3.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) SELECT version FROM "schema_migrations"  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (1.4ms) 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')  (1.1ms) 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", Mon, 15 Jul 2013 18:21:34 UTC +00:00], ["email", "user11@example.com"], ["password_digest", "$2a$10$FNd.fqSizWLCzCxk.fnyJu1fSUakHj0mwoOLHLhN.i.sIdeylciA6"], ["updated_at", Mon, 15 Jul 2013 18:21:34 UTC +00:00]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.7ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = '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", Mon, 15 Jul 2013 18:21:34 UTC +00:00], ["name", "Test Account #10"], ["owner_id", 2], ["subdomain", "test10"], ["updated_at", Mon, 15 Jul 2013 18:21:34 UTC +00:00]] Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'yNq88wsBY6XT1pRw9i6y' LIMIT 1  (2.1ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #10', "subdomain" = 'test10', "owner_id" = 2, "created_at" = '2013-07-15 18:21:34.818120', "updated_at" = '2013-07-15 18:21:34.818120', "authentication_token" = 'yNq88wsBY6XT1pRw9i6y' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:34 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:34 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'nqiKJ4CZkFq7FnuWqzpu' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 2, "created_at" = '2013-07-15 18:21:34.827185', "updated_at" = '2013-07-15 18:21:34.827185', "auth_token" = 'nqiKJ4CZkFq7FnuWqzpu' WHERE "public"."cadenero_members"."id" = 2  (0.1ms) RELEASE SAVEPOINT active_record_1 Started GET "/v1" for 127.0.0.1 at 2013-07-15 13:21:34 -0500 Processing by Cadenero::V1::Account::DashboardController#index as HTML Parameters: {"default"=>:json} Filter chain halted as :authenticate_user! rendered or redirected Completed 422 Unprocessable Entity in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms) Started POST "/v1/sessions" for 127.0.0.1 at 2013-07-15 13:21:34 -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 ('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" = 1 AND "public"."cadenero_users"."email" = 'user11@example.com' LIMIT 1 Completed 422 Unprocessable Entity in 6ms (Views: 0.4ms | ActiveRecord: 0.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1  (5.7ms) ROLLBACK  (0.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.5ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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  (1.0ms) BEGIN Cadenero::V1::Account Exists (4.1ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" IS NULL LIMIT 1  (0.1ms) ROLLBACK  (0.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  (169.1ms) 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.6ms) BEGIN Cadenero::V1::Account Exists (1.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.1ms) ROLLBACK  (0.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  (17.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  (0.8ms) 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 (1.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:21:35 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$cQxLc29RmPYj54BIYQRFZuLhSHkTRc0OPlT93VKhN3yePlVJ2Et4."], ["updated_at", Mon, 15 Jul 2013 18:21:35 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", Mon, 15 Jul 2013 18:21:35 UTC +00:00], ["name", "Test Account"], ["owner_id", 1], ["subdomain", "test"], ["updated_at", Mon, 15 Jul 2013 18:21:35 UTC +00:00]] Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '3vd5pSnxoxJZxN6mf37x' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account', "subdomain" = 'test', "owner_id" = 1, "created_at" = '2013-07-15 18:21:35.576737', "updated_at" = '2013-07-15 18:21:35.576737', "authentication_token" = '3vd5pSnxoxJZxN6mf37x' WHERE "public"."cadenero_accounts"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:35 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:35 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.4ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'z3H6xThCButiZyFiGfS4' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:21:35.584744', "updated_at" = '2013-07-15 18:21:35.584744', "auth_token" = 'z3H6xThCButiZyFiGfS4' WHERE "public"."cadenero_members"."id" = 1  (0.5ms) 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)   (6.3ms) 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.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.8ms) CREATE INDEX "index_cadenero_members_on_account_id" ON "cadenero_members" ("account_id")  (3.2ms) CREATE INDEX "index_cadenero_members_on_auth_token" ON "cadenero_members" ("auth_token")  (1.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (6.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp 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.2ms) SELECT version FROM "schema_migrations"  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') 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 LIMIT 1  (4.5ms) ROLLBACK  (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  (15.0ms) 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 Cadenero::V1::Account Exists (2.3ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'subdomain' LIMIT 1  (0.8ms) ROLLBACK  (0.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  (17.2ms) 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  (0.5ms) BEGIN  (0.2ms) SAVEPOINT active_record_1 SQL (1.6ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:21:35 UTC +00:00], ["email", "user12@example.com"], ["password_digest", "$2a$10$agd.irth5lSp4zxydWXMb.q3RHzNz6ZvGxblKrBkU2F/Eu6gM9uti"], ["updated_at", Mon, 15 Jul 2013 18:21:35 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" = 'test11' 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", Mon, 15 Jul 2013 18:21:35 UTC +00:00], ["name", "Test Account #11"], ["owner_id", 1], ["subdomain", "test11"], ["updated_at", Mon, 15 Jul 2013 18:21:35 UTC +00:00]] Cadenero::V1::Account Load (0.7ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'q8vqw4avcrwpY4sS7Vvv' LIMIT 1  (0.9ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #11', "subdomain" = 'test11', "owner_id" = 1, "created_at" = '2013-07-15 18:21:35.962251', "updated_at" = '2013-07-15 18:21:35.962251', "authentication_token" = 'q8vqw4avcrwpY4sS7Vvv' WHERE "public"."cadenero_accounts"."id" = 1  (0.4ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (5.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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:35 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:35 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (5.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'mCXbr3d9pV18yvxBGJbL' LIMIT 1  (1.0ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:21:35.971908', "updated_at" = '2013-07-15 18:21:35.971908', "auth_token" = 'mCXbr3d9pV18yvxBGJbL' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) CREATE SCHEMA "test11"  (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.7ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (4.1ms) 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))  (0.9ms) 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")  (31.5ms) CREATE INDEX "index_cadenero_members_on_user_id" ON "cadenero_members" ("user_id")  (4.2ms) CREATE TABLE "cadenero_users" ("id" serial primary key, "email" character varying(255), "password_digest" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)  (0.7ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (15.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (6.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (1.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:21:36 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.4ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test11' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:21:36 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$vBfqziwm6Hya8oquX6RRW.yX/QtHwVEDIf.pCZcJcxv1lEH8wU6eu"], ["updated_at", Mon, 15 Jul 2013 18:21:36 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:36 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:36 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'NtqNshVvp2mjxLxcaYaq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:21:36.330673', "updated_at" = '2013-07-15 18:21:36.330673', "auth_token" = 'NtqNshVvp2mjxLxcaYaq' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 165ms (Views: 6.7ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:21:36 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 13ms (Views: 7.3ms | ActiveRecord: 2.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" = 'test12' 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", Mon, 15 Jul 2013 18:21:36 UTC +00:00], ["name", "Test Account #12"], ["owner_id", 2], ["subdomain", "test12"], ["updated_at", Mon, 15 Jul 2013 18:21:36 UTC +00:00]] Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = 'vx6FcgTQmGeT7BRECeqW' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #12', "subdomain" = 'test12', "owner_id" = 2, "created_at" = '2013-07-15 18:21:36.366738', "updated_at" = '2013-07-15 18:21:36.366738', "authentication_token" = 'vx6FcgTQmGeT7BRECeqW' WHERE "public"."cadenero_accounts"."id" = 2  (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", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:36 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:36 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'z5SLjpWuUUAuMa1qrKhg' LIMIT 1  (0.2ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 2, "created_at" = '2013-07-15 18:21:36.373374', "updated_at" = '2013-07-15 18:21:36.373374', "auth_token" = 'z5SLjpWuUUAuMa1qrKhg' WHERE "public"."cadenero_members"."id" = 3  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.2ms) 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.1ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (3.1ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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.1ms) 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.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.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.4ms) 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:21:36 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (0.6ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test12' LIMIT 1  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "public"."cadenero_users" ("created_at", "email", "password_digest", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 15 Jul 2013 18:21:36 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$9HxHwIJHD6qh1pAx6YVDf.ubICAH9O5CFmHvWTPeUn7h8wFK4tBHK"], ["updated_at", Mon, 15 Jul 2013 18:21:36 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", 2], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:36 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:36 UTC +00:00], ["user_id", 3]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'xYsQyN1mmrx2LdkHmGjw' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 2, "user_id" = 3, "created_at" = '2013-07-15 18:21:36.536870', "updated_at" = '2013-07-15 18:21:36.536870', "auth_token" = 'xYsQyN1mmrx2LdkHmGjw' WHERE "public"."cadenero_members"."id" = 4  (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" = 3 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 3 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 201 Created in 123ms (Views: 7.3ms | ActiveRecord: 4.1ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/3" for 127.0.0.1 at 2013-07-15 13:21:36 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"3"} 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" = 2 AND "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 3 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 3 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 3 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" = 3 Completed 200 OK in 13ms (Views: 6.7ms | ActiveRecord: 2.1ms) Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:21:36 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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" = 1 AND "public"."cadenero_users"."id" = 2 LIMIT 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.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 13ms (Views: 7.3ms | ActiveRecord: 2.0ms) Started GET "/v1/users" for 127.0.0.1 at 2013-07-15 13:21:36 -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" = '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" = 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 1 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 1 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 Completed 200 OK in 19ms (Views: 14.1ms | ActiveRecord: 2.8ms)  (11.2ms) ROLLBACK  (3.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  (19.1ms) 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  (0.1ms) BEGIN  (0.3ms) SAVEPOINT active_record_1 SQL (2.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 18:21:36 UTC +00:00], ["email", "user13@example.com"], ["password_digest", "$2a$10$3SwwFLGwD.SbKlhZVT35d.fsuLeoMqyDkJVzH7qAhCF5SBMxO9.A2"], ["updated_at", Mon, 15 Jul 2013 18:21:36 UTC +00:00]]  (0.5ms) RELEASE SAVEPOINT active_record_1  (0.4ms) SAVEPOINT active_record_1 Cadenero::V1::Account Exists (0.5ms) SELECT 1 AS one FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."subdomain" = 'test13' 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", Mon, 15 Jul 2013 18:21:36 UTC +00:00], ["name", "Test Account #13"], ["owner_id", 1], ["subdomain", "test13"], ["updated_at", Mon, 15 Jul 2013 18:21:36 UTC +00:00]] Cadenero::V1::Account Load (1.0ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."authentication_token" = '6GgNnzwpM25uyVRpk31x' LIMIT 1  (0.5ms) UPDATE "public"."cadenero_accounts" SET "name" = 'Test Account #13', "subdomain" = 'test13', "owner_id" = 1, "created_at" = '2013-07-15 18:21:36.774497', "updated_at" = '2013-07-15 18:21:36.774497', "authentication_token" = '6GgNnzwpM25uyVRpk31x' WHERE "public"."cadenero_accounts"."id" = 1  (0.3ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.5ms) INSERT INTO "public"."cadenero_members" ("account_id", "auth_token", "created_at", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["account_id", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:36 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:36 UTC +00:00], ["user_id", 1]] Cadenero::Member Load (0.9ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'PyxgAsD2MtwrqpJnUVeq' LIMIT 1  (0.6ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 1, "created_at" = '2013-07-15 18:21:36.784306', "updated_at" = '2013-07-15 18:21:36.784306', "auth_token" = 'PyxgAsD2MtwrqpJnUVeq' WHERE "public"."cadenero_members"."id" = 1  (0.1ms) RELEASE SAVEPOINT active_record_1  (7.4ms) CREATE SCHEMA "test13"  (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.9ms) CREATE INDEX "index_cadenero_accounts_on_authentication_token" ON "cadenero_accounts" ("authentication_token")  (2.4ms) CREATE INDEX "index_cadenero_accounts_on_owner_id" ON "cadenero_accounts" ("owner_id")  (4.4ms) CREATE TABLE "cadenero_members" ("id" serial primary key, "account_id" integer, "user_id" integer, "created_at" timestamp 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")  (1.7ms) 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)  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)   (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")  (0.2ms) SELECT version FROM "schema_migrations"  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20130715174857')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612061604')  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612064652')  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130612073709') Started POST "//v1/users" for 127.0.0.1 at 2013-07-15 13:21:36 -0500 Processing by Cadenero::V1::Account::UsersController#create as JSON Parameters: {"user"=>{"email"=>"user@example.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "default"=>:json} Cadenero::V1::Account Load (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.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:21:37 UTC +00:00], ["email", "user@example.com"], ["password_digest", "$2a$10$tqQJq8bnM.0p./aDksk2/upq4flV04H9TUUdOeF8hKLBRnkKcuFzK"], ["updated_at", Mon, 15 Jul 2013 18:21:37 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", 1], ["auth_token", nil], ["created_at", Mon, 15 Jul 2013 18:21:37 UTC +00:00], ["updated_at", Mon, 15 Jul 2013 18:21:37 UTC +00:00], ["user_id", 2]] Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."auth_token" = 'HmaT93ty1pzq4EzzcJiq' LIMIT 1  (0.3ms) UPDATE "public"."cadenero_members" SET "account_id" = 1, "user_id" = 2, "created_at" = '2013-07-15 18:21:37.018855', "updated_at" = '2013-07-15 18:21:37.018855', "auth_token" = 'HmaT93ty1pzq4EzzcJiq' WHERE "public"."cadenero_members"."id" = 2  (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" = 2 LIMIT 1 Cadenero::Member Load (0.3ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.2ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 201 Created in 113ms (Views: 5.9ms | ActiveRecord: 3.8ms) Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."name" = 'user@example.com' LIMIT 1 Started GET "/v1/users/2" for 127.0.0.1 at 2013-07-15 13:21:37 -0500 Processing by Cadenero::V1::Account::UsersController#show as HTML Parameters: {"default"=>:json, "id"=>"2"} 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.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 AND "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::User Load (0.2ms) SELECT "public"."cadenero_users".* FROM "public"."cadenero_users" WHERE "public"."cadenero_users"."id" = 2 LIMIT 1 Cadenero::Member Load (0.2ms) SELECT "public"."cadenero_members".* FROM "public"."cadenero_members" WHERE "public"."cadenero_members"."user_id" = 2 Cadenero::V1::Account Load (0.3ms) SELECT "public"."cadenero_accounts".* FROM "public"."cadenero_accounts" WHERE "public"."cadenero_accounts"."owner_id" = 2 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" = 2 Completed 200 OK in 11ms (Views: 6.2ms | ActiveRecord: 1.9ms)  (4.0ms) ROLLBACK  (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  (17.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.6ms) 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.8ms) ROLLBACK  (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  (34.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (2.1ms) 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.1ms) BEGIN Processing by Cadenero::V1::AccountsController#create as JSON Parameters: {"account"=>{"name"=>"First Account", "subdomain"=>"first"}} Completed 201 Created in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)  (1.0ms) ROLLBACK  (5.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  (30.9ms) TRUNCATE TABLE "cadenero_accounts", "cadenero_users", "cadenero_members" RESTART IDENTITY CASCADE;  (1.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 Connecting to database specified by database.yml  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"  Migrating to CreateCadeneroV1Accounts (20130612061604) Migrating to CreateCadeneroV1Users (20130612064652) Migrating to CreateCadeneroV1Members (20130612073709) Migrating to AddAuthTokenToCadeneroMembers (20130715174857)  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"